PhotoCalConfig#
- class lsst.pipe.tasks.photoCal.PhotoCalConfig(*args, **kw)#
Bases:
ConfigConfig for PhotoCal.
Attributes Summary
Apply photometric color terms to reference stars?
True: attempt to apply color terms; fail if color term data is not available for the specified reference catalog and filter.Library of photometric reference catalog name: color term dict (see also applyColorTerms).
Name of the source instFlux field to use.
Additional magnitude uncertainty to be added in quadrature with measurement errors.
Match to reference catalog (
DirectMatchConfigWithoutLoader, default<class 'lsst.meas.astrom.directMatch.DirectMatchConfigWithoutLoader'>)number of iterations (
int, default20)clip at nSigma (
float, default3.0)Name of photometric reference catalog; used to select a color term dict in colorterms.
Reserve sources from fitting (
ConfigurableInstance, default<class 'lsst.meas.algorithms.reserveSourcesTask.ReserveSourcesConfig'>)maximum sigma to use when clipping (
float, default0.25)use median instead of mean to compute zeropoint (
bool, defaultTrue)Methods Summary
Subclass hook for computing defaults.
validate()Validate the Config, raising an exception if invalid.
Attributes Documentation
- applyColorTerms#
Apply photometric color terms to reference stars?
True: attempt to apply color terms; fail if color term data is not available for the specified reference catalog and filter.False: do not apply color terms. (bool, defaultFalse)
- colorterms#
Library of photometric reference catalog name: color term dict (see also applyColorTerms). (
ColortermLibrary, default<class 'lsst.pipe.tasks.colorterms.ColortermLibrary'>)
- fluxField#
Name of the source instFlux field to use. The associated flag field (‘<name>_flags’) will be implicitly included in badFlags. (
str, default'slot_CalibFlux_instFlux')
- magErrFloor#
Additional magnitude uncertainty to be added in quadrature with measurement errors. (
float, default0.0)Valid Range = [0.0,inf)
- match#
Match to reference catalog (
DirectMatchConfigWithoutLoader, default<class 'lsst.meas.astrom.directMatch.DirectMatchConfigWithoutLoader'>)
- nIter#
number of iterations (
int, default20)
- nSigma#
clip at nSigma (
float, default3.0)
- photoCatName#
Name of photometric reference catalog; used to select a color term dict in colorterms. See also applyColorTerms. (
str, defaultNone)
- reserve#
Reserve sources from fitting (
ConfigurableInstance, default<class 'lsst.meas.algorithms.reserveSourcesTask.ReserveSourcesConfig'>)
- sigmaMax#
maximum sigma to use when clipping (
float, default0.25)
- useMedian#
use median instead of mean to compute zeropoint (
bool, defaultTrue)
Methods Documentation
- setDefaults()#
Subclass hook for computing defaults.
Notes#
Derived
Configclasses that must compute defaults rather than using theFieldinstances’s defaults should do so here. To correctly use inherited defaults, implementations ofsetDefaultsmust call their base class’ssetDefaults.
- validate()#
Validate the Config, raising an exception if invalid.
Raises#
- lsst.pex.config.FieldValidationError
Raised if verification fails.
Notes#
The base class implementation performs type checks on all fields by calling their
validatemethods.Complex single-field validation can be defined by deriving new Field types. For convenience, some derived
lsst.pex.config.Field-types (ConfigFieldandConfigChoiceField) are defined inlsst.pex.configthat handle recursing into subconfigs.Inter-field relationships should only be checked in derived
Configclasses after calling this method, and base validation is complete.