MeasureDefectsTask¶
MeasureCrosstalkTask
is a task to identify detector defects by looking for pixels that are significantly different than the image mean.
Processing summary¶
MeasureDefectsTask
runs these operations in a loop over amplifiers:
- Measures the clipped mean to estimate the background level.
- Subtracts that background from the image.
- Identifies pixels that are either above or below the configured sigma thresholds.
- Constructs a
Defects
object from the footprint set of those pixels.
Python API summary¶
from lsst.cp.pipe.defects import MeasureDefectsTask
-
class
(*, config=None, log=None, initInputs=None, **kwargs)MeasureDefectsTask
Measure the defects from one exposure
...
-
attribute
config
Access configuration fields and retargetable subtasks.
See also
See the MeasureDefectsTask
API reference for complete details.
Retargetable subtasks¶
No subtasks.
Configuration fields¶
badOnAndOffPixelColumnThreshold¶
If BPC is the set of all the bad pixels in a given column (not necessarily consecutive) and the size of BPC is at least ‘badOnAndOffPixelColumnThreshold’, all the pixels between the pixels that satisfy minY (BPC) and maxY (BPC) will be marked as bad, with ‘Y’ being the long axis of the amplifier (and ‘X’ the other axis, which for a column is a constant for all pixels in the set BPC). If there are more than ‘goodPixelColumnGapThreshold’ consecutive non-bad pixels in BPC, an exception to the above is made and those consecutive ‘goodPixelColumnGapThreshold’ are not marked as bad.
connections¶
- Data type
lsst.pipe.base.config.Connections
- Field type
ConfigField
Configurations describing the connections of the PipelineTask to datatypes
goodPixelColumnGapThreshold¶
Size, in pixels, of usable consecutive pixels in a column with on and off bad pixels (see ‘badOnAndOffPixelColumnThreshold’).
nPixBorderLeftRight¶
Number of pixels to exclude from left & right of image when looking for defects.
nPixBorderUpDown¶
Number of pixels to exclude from top & bottom of image when looking for defects.
nSigmaBright¶
Number of sigma above mean for bright pixel detection. The default value was found to be appropriate for some LSST sensors in DM-17490.
nSigmaDark¶
Number of sigma below mean for dark pixel detection. The default value was found to be appropriate for some LSST sensors in DM-17490.
saveLogOutput¶
Flag to enable/disable saving of log output for a task, enabled by default.