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:
PipelineTaskConstruct 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
runmethod.Methods Documentation
- run(dummyExpRef, inputFlat, inputPtc, inputMD)#
Create spectro flat from an input flat and PTC.
Parameters#
- dummyExpRef
lsst.daf.butler.DeferredDatasetHandle Exposure used to ensure the correct flat is chosen.
- inputFlat
lsst.afw.image.Exposure Input flat to convert to spectro-flat.
- inputPtc
lsst.ip.isr.PhotoTransferCurveDataset Input PTC containing the gains to apply to spectro-flat.
- inputMD
lsst.daf.base.PropertyList Provenance metadata derived from the butler references.
Returns#
- results
lsst.pipe.base.Struct The results struct containing:
outputDataFinal modified flat generated from the inputs (
lsst.afw.image.Exposure).
- dummyExpRef
- runQuantum(butlerQC, inputRefs, outputRefs)#
Do butler IO and transform to provide in memory objects for tasks
runmethod.Parameters#
- butlerQC
QuantumContext A butler which is specialized to operate in the context of a
lsst.daf.butler.Quantum.- inputRefs
InputQuantizedConnection Datastructure whose attribute names are the names that identify connections defined in corresponding
PipelineTaskConnectionsclass. The values of these attributes are thelsst.daf.butler.DatasetRefobjects associated with the defined input/prerequisite connections.- outputRefs
OutputQuantizedConnection Datastructure whose attribute names are the names that identify connections defined in corresponding
PipelineTaskConnectionsclass. The values of these attributes are thelsst.daf.butler.DatasetRefobjects associated with the defined output connections.
- butlerQC