DetectCoaddSourcesConfig#
- class lsst.pipe.tasks.multiBand.DetectCoaddSourcesConfig(*args, **kw)#
Bases:
PipelineTaskConfigConfiguration parameters for the DetectCoaddSourcesTask
Attributes Summary
Description of the subtracted background, to be stored with the image when the input and output images are lsst.images.cells.CellCoadd.
Name of the subtracted background, to be stored with the image when the input and output images are lsst.images.cells.CellCoadd.
Name of coadd (
str, default'deep')Field which refers to a dynamically added configuration class which is based on a PipelineTaskConnections class.
Source detection (
ConfigurableInstance, default<class 'lsst.meas.algorithms.dynamicDetection.DynamicDetectionConfig'>)Scale variance plane using empirical noise? (
bool, defaultTrue)Check that the background bin size evenly divides the patch inner region, and crop the outer region to an integer number of bins.
Should be set to True if fake sources have been inserted into the input data.
Configuration for how to generate catalog IDs from data IDs.
Which image type to use for the input and output coadd.
Flag to enable/disable saving of log output for a task, enabled by default.
Variance rescaling (
ConfigurableInstance, default<class 'lsst.meas.algorithms.scaleVariance.ScaleVarianceConfig'>)Whether to use cell coadds? (
bool, defaultFalse)If true, save a placeholder background with NaNs in all bins (but the right geometry) when there are no pixels to compute a background from.
If true, only save the background models.
Methods Summary
Subclass hook for computing defaults.
validate()Validate the Config, raising an exception if invalid.
Attributes Documentation
- backgroundDescription#
Description of the subtracted background, to be stored with the image when the input and output images are lsst.images.cells.CellCoadd. (
str, default'Background subtracted from the image when generating the Object catalog. This intentionally oversubtracts the background to reduce blending and ensure scattered light is subtracted. Restoring this background does not restore all original backgrounds, as the coadd was built from background-subtracted visit images; in most cases this background term is actually quite small ')
- backgroundName#
Name of the subtracted background, to be stored with the image when the input and output images are lsst.images.cells.CellCoadd. (
str, default'object')
- coaddName#
Name of coadd (
str, default'deep')
- connections: pexConfig.ConfigField#
Field which refers to a dynamically added configuration class which is based on a PipelineTaskConnections class.
- detection#
Source detection (
ConfigurableInstance, default<class 'lsst.meas.algorithms.dynamicDetection.DynamicDetectionConfig'>)
- doScaleVariance#
Scale variance plane using empirical noise? (
bool, defaultTrue)
- forceExactBinning#
Check that the background bin size evenly divides the patch inner region, and crop the outer region to an integer number of bins. (
bool, defaultFalse)
- hasFakes#
Should be set to True if fake sources have been inserted into the input data. (
bool, defaultFalse)
- idGenerator#
Configuration for how to generate catalog IDs from data IDs. (
SkyMapIdGeneratorConfig, default<class 'lsst.meas.base._id_generator.SkyMapIdGeneratorConfig'>)
- imageType#
Which image type to use for the input and output coadd. This option only directly affects connection storage classes and hence ‘runQuantum’; the ‘run’ method behavior is determined by which type is actually passed in. (
str, default'legacy')Allowed values:
'legacy'Read a lsst.cell_coadds.MultipleCellCoadd (if useCellCoadd) or lsst.afw.image.Exposure (if not useCellCoadd) and write an lsst.afw.image.Exposure.
'future'Read and write lsst.images.cells.CellCoadd (useCellCoadd just sets which of ‘exposure’ or ‘exposure_cells’ will be used for inputs). The ‘outputBackground’ is deleted, writeEmptyBackgrounds is ignored, and writeOnlyBackgrounds=True is invalid.
- saveLogOutput#
Flag to enable/disable saving of log output for a task, enabled by default. (
bool, defaultTrue)
- scaleVariance#
Variance rescaling (
ConfigurableInstance, default<class 'lsst.meas.algorithms.scaleVariance.ScaleVarianceConfig'>)
- useCellCoadds#
Whether to use cell coadds? (
bool, defaultFalse)
- writeEmptyBackgrounds#
If true, save a placeholder background with NaNs in all bins (but the right geometry) when there are no pixels to compute a background from. This can be useful if a later task combines backgrounds from multiple patches as input. (
bool, defaultTrue)
- writeOnlyBackgrounds#
If true, only save the background models. (
bool, defaultFalse)
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.