CpSkyImageTask

CpSkyImageTask preprocesses exposures after IsrTask to mask detections so a cleaner background estimate can be measured.

Processing summary

CpSkyImageTask runs these operations:

  1. Run MaskObjectsTask to identify and mask sources in the image.

  2. Construct a single-detector FocalPlaneBackground model from the detection clean image.

Python API summary

from lsst.cp.pipe.cpSkyTask import CpSkyImageTask
classCpSkyImageTask(**kwargs)

Mask the detections on the postISRCCD...

attributeconfig

Access configuration fields and retargetable subtasks.

methodrun(inputExp, camera)

Mask the detections on the postISRCCD...

See also

See the CpSkyImageTask API reference for complete details.

Retargetable subtasks

maskTask

Default

lsst.pipe.tasks.background.MaskObjectsTask

Field type

ConfigurableField

Object masker to use.

Configuration fields

connections

Data type

lsst.pipe.base.config.CpSkyImageConfigConnections

Field type

ConfigField

Configurations describing the connections of the PipelineTask to datatypes

largeScaleBackground

Data type

lsst.pipe.tasks.background.FocalPlaneBackgroundConfig

Field type

ConfigField

Large-scale background configuration.

maskList

Default
['DETECTED', 'BAD', 'NO_DATA', 'SAT']
Field type

str ListField

Mask planes to reject.

maskThresh

Default
3.0
Field type

float Field

k-sigma threshold for masking pixels.

saveLogOutput

Default
True
Field type

bool Field

Flag to enable/disable saving of log output for a task, enabled by default.

saveMetadata

Default
True
Field type

bool Field

Flag to enable/disable metadata saving for a task, enabled by default. Deprecated: This field is deprecated and will be removed after v26.