CpSkyScaleMeasureTask#
- class lsst.cp.pipe.CpSkyScaleMeasureTask(*, config: PipelineTaskConfig | None = None, log: logging.Logger | LsstLogAdapter | None = None, initInputs: dict[str, Any] | None = None, **kwargs: Any)#
Bases:
PipelineTaskMeasure per-exposure scale factors and merge focal plane backgrounds.
Merge all the per-detector partial backgrounds to a full focal plane background for each exposure, and measure the scale factor from that full background.
Methods Summary
run(inputBkgs[, camera, inputDims])Merge focal plane backgrounds and measure the scale factor.
runQuantum(butlerQC, inputRefs, outputRefs)Ensure that the input and output dimensions are passed along.
Methods Documentation
- run(inputBkgs, camera=None, inputDims=None)#
Merge focal plane backgrounds and measure the scale factor.
Parameters#
- inputBkgs
list[lsst.pipe.tasks.background.FocalPlaneBackground] A list of all of the partial focal plane backgrounds, one from each detector in this exposure.
- camera
lsst.afw.cameraGeom.Camera, optional The camera geometry for this exposure. This is needed to create the background model.
- inputDims
list[dict], optional The data IDs for each of the input backgrounds. This is used to set provenance information on the output background.
Returns#
- results
lsst.pipe.base.Struct The results struct containing:
outputBkglsst.pipe.tasks.background.FocalPlaneBackgroundThe full merged background for the entire focal plane.
outputScalelsst.daf.base.PropertyListA metadata containing the median level of the background, stored in the key ‘scale’.
- inputBkgs
- runQuantum(butlerQC, inputRefs, outputRefs)#
Ensure that the input and output dimensions are passed along.
Parameters#
- butlerQC
lsst.daf.butler.QuantumContext Butler to operate on.
- inputRefs
lsst.pipe.base.InputQuantizedConnection Input data refs to load.
- outputRefs
lsst.pipe.base.OutputQuantizedConnection Output data refs to persist.
- butlerQC