CosmicRayPostDiffTask#

class lsst.pipe.tasks.cosmicRayPostDiff.CosmicRayPostDiffTask(**kwargs)#

Bases: PipelineTask

Detect and repair cosmic rays on an image difference. Given an output image from image differencing:

  • detect and repair cosmic rays

  • At the moment this task does NOT recompute the PSF or re-do source detection.

To invoke the task, Call the run method.

Methods Summary

run(exposure)

Run cosmic ray detection and repair on imageDifference outputs

runQuantum(butlerQC, inputRefs, outputRefs)

Do butler IO and transform to provide in memory objects for tasks run method.

Methods Documentation

run(exposure)#

Run cosmic ray detection and repair on imageDifference outputs

Parameters#

exposure lsst.afw.image.Exposure:

The following changes are made to the exposure, - Blank cosmic ray mask planes, run CR detection and repair, update CR mask plane

Returns#

lsst.pipe.base.Struct:

Struct containing the input image with the CR mask plane first blanked, and then cosmic rays detected, and the mask is updated accordingly. The PSF model is NOT changed.

runQuantum(butlerQC, inputRefs, outputRefs)#

Do butler IO and transform to provide in memory objects for tasks run method.

Parameters#

butlerQCQuantumContext

A butler which is specialized to operate in the context of a lsst.daf.butler.Quantum.

inputRefsInputQuantizedConnection

Datastructure whose attribute names are the names that identify connections defined in corresponding PipelineTaskConnections class. The values of these attributes are the lsst.daf.butler.DatasetRef objects associated with the defined input/prerequisite connections.

outputRefsOutputQuantizedConnection

Datastructure whose attribute names are the names that identify connections defined in corresponding PipelineTaskConnections class. The values of these attributes are the lsst.daf.butler.DatasetRef objects associated with the defined output connections.