SimplifiedSubtractConfig#
- class lsst.ip.diffim.SimplifiedSubtractConfig(*args, **kw)#
Bases:
AlardLuptonSubtractBaseConfig,PipelineTaskConfigAttributes Summary
Re-run source detection for kernel candidates if an error is encountered while calculating the matching kernel.
Mask planes to interpolate over.
Field which refers to a dynamically added configuration class which is based on a PipelineTaskConnections class.
Task to decorrelate the image difference.
Minimum signal to noise ratio of detected sources to use for calculating the PSF matching kernel.
Maximum signal to noise ratio of detected sources to use for calculating the PSF matching kernel.
Replace science Exposure's calibration objects with those in visitSummary.
Perform diffim decorrelation to undo pixel correlation due to A&L kernel convolution? If True, also update the diffim PSF.
Scale variance of the image difference? (
bool, defaultTrue)Subtract the background fit when solving the kernel? It is generally better to instead subtract the background in detectAndMeasure.
Template mask planes to exclude when selecting sources for PSF matching.
Task to select sources to be used for PSF matching.Used only if the kernel calculation fails and`allowKernelSourceDetection` is set.
Task to construct a matching kernel for convolution.
Maximum number of sources to use for calculating the PSF matching kernel.Set to -1 to disable.
Minimum number of sources needed for calculating the PSF matching kernel.
Raise NoWorkFound if PSF-matching fails and template covers less than this fraction of pixels.
Choose which image to convolve at runtime, or require that a specific image is convolved.
Mask planes from the template to propagate to the image difference.
Mask planes from the template to propagate to the image differencewith '_TEMPLATE' appended to the name.
Raise NoWorkFound and do not attempt image subtraction if template covers less than this fraction of pixels.
Exclude sources close to the edge from the kernel calculation? (
bool, defaultTrue)Flag to enable/disable saving of log output for a task, enabled by default.
Subtask to rescale the variance of the template to the statistically expected level.
Task to select sources to be used for PSF matching.
Use a pre-existing PSF matching kernel?If False, source detection and measurement will be run.
Attributes Documentation
- allowKernelSourceDetection#
Re-run source detection for kernel candidates if an error is encountered while calculating the matching kernel. (
bool, defaultFalse)
- badMaskPlanes#
Mask planes to interpolate over. (
List, default('NO_DATA', 'BAD', 'SAT', 'EDGE'))
- connections: pexConfig.ConfigField#
Field which refers to a dynamically added configuration class which is based on a PipelineTaskConnections class.
- decorrelate#
Task to decorrelate the image difference. (
ConfigurableInstance, default<class 'lsst.ip.diffim.imageDecorrelation.DecorrelateALKernelConfig'>)
- detectionThreshold#
Minimum signal to noise ratio of detected sources to use for calculating the PSF matching kernel. Deprecated: No longer used. Will be removed after v30 (
float, default10)
- detectionThresholdMax#
Maximum signal to noise ratio of detected sources to use for calculating the PSF matching kernel. Deprecated: No longer used. Will be removed after v30 (
float, default500)
- doApplyExternalCalibrations#
Replace science Exposure’s calibration objects with those in visitSummary. Ignored if
doApplyFinalizedPsf is True. (`bool, defaultFalse)
- doDecorrelation#
Perform diffim decorrelation to undo pixel correlation due to A&L kernel convolution? If True, also update the diffim PSF. (
bool, defaultTrue)
- doScaleVariance#
Scale variance of the image difference? (
bool, defaultTrue)
- doSubtractBackground#
Subtract the background fit when solving the kernel? It is generally better to instead subtract the background in detectAndMeasure. (
bool, defaultFalse)
- excludeMaskPlanes#
Template mask planes to exclude when selecting sources for PSF matching. (
List, default('NO_DATA', 'BAD', 'SAT', 'EDGE', 'FAKE', 'HIGH_VARIANCE'))
- fallbackSourceSelector#
Task to select sources to be used for PSF matching.Used only if the kernel calculation fails and`allowKernelSourceDetection` is set. The fallback source detection will not include all of the same plugins as the original source detection, so not all of the same flags can be used. (
ConfigurableInstance, default<class 'lsst.meas.algorithms.sourceSelector.ScienceSourceSelectorConfig'>)
- makeKernel#
Task to construct a matching kernel for convolution. (
ConfigurableInstance, default<class 'lsst.ip.diffim.makeKernel.MakeKernelConfig'>)
- maxKernelSources#
Maximum number of sources to use for calculating the PSF matching kernel.Set to -1 to disable. (
int, default1000)
- minKernelSources#
Minimum number of sources needed for calculating the PSF matching kernel. (
int, default3)
- minTemplateFractionForExpectedSuccess#
Raise NoWorkFound if PSF-matching fails and template covers less than this fraction of pixels. If the fraction of pixels covered by the template is less than this value (and greater than requiredTemplateFraction) this task is attempted but failure is anticipated and tolerated. (
float, default0.2)
- mode#
Choose which image to convolve at runtime, or require that a specific image is convolved. (
str, default'convolveTemplate')Allowed values:
'auto'Choose which image to convolve at runtime.
'convolveScience'Only convolve the science image.
'convolveTemplate'Only convolve the template image.
'None'Field is optional
- preserveTemplateMask#
Mask planes from the template to propagate to the image difference. (
List, default('NO_DATA', 'BAD', 'HIGH_VARIANCE'))
- renameTemplateMask#
Mask planes from the template to propagate to the image differencewith ‘_TEMPLATE’ appended to the name. (
List, default('SAT', 'INJECTED', 'INJECTED_CORE'))
- requiredTemplateFraction#
Raise NoWorkFound and do not attempt image subtraction if template covers less than this fraction of pixels. Setting to 0 will always attempt image subtraction. (
float, default0.1)
- restrictKernelEdgeSources#
Exclude sources close to the edge from the kernel calculation? (
bool, defaultTrue)
- saveLogOutput#
Flag to enable/disable saving of log output for a task, enabled by default. (
bool, defaultTrue)
- scaleVariance#
Subtask to rescale the variance of the template to the statistically expected level. (
ConfigurableInstance, default<class 'lsst.meas.algorithms.scaleVariance.ScaleVarianceConfig'>)
- sourceSelector#
Task to select sources to be used for PSF matching. (
ConfigurableInstance, default<class 'lsst.meas.algorithms.sourceSelector.ScienceSourceSelectorConfig'>)
- useExistingKernel#
Use a pre-existing PSF matching kernel?If False, source detection and measurement will be run. (
bool, defaultTrue)