CpSpectroFlatTask#

class lsst.cp.pipe.CpSpectroFlatTask(*, config: PipelineTaskConfig | None = None, log: logging.Logger | LsstLogAdapter | None = None, initInputs: dict[str, Any] | None = None, **kwargs: Any)#

Bases: PipelineTask

Construct a spectro-flat from a white-band flat.

Methods Summary

run(dummyExpRef, inputFlat, inputPtc, inputMD)

Create spectro flat from an input flat and PTC.

runQuantum(butlerQC, inputRefs, outputRefs)

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

Methods Documentation

run(dummyExpRef, inputFlat, inputPtc, inputMD)#

Create spectro flat from an input flat and PTC.

Parameters#

dummyExpReflsst.daf.butler.DeferredDatasetHandle

Exposure used to ensure the correct flat is chosen.

inputFlatlsst.afw.image.Exposure

Input flat to convert to spectro-flat.

inputPtclsst.ip.isr.PhotoTransferCurveDataset

Input PTC containing the gains to apply to spectro-flat.

inputMDlsst.daf.base.PropertyList

Provenance metadata derived from the butler references.

Returns#

resultslsst.pipe.base.Struct

The results struct containing:

outputData

Final modified flat generated from the inputs (lsst.afw.image.Exposure).

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.