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: PipelineTask

Measure 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#

inputBkgslist [lsst.pipe.tasks.background.FocalPlaneBackground]

A list of all of the partial focal plane backgrounds, one from each detector in this exposure.

cameralsst.afw.cameraGeom.Camera, optional

The camera geometry for this exposure. This is needed to create the background model.

inputDimslist [dict], optional

The data IDs for each of the input backgrounds. This is used to set provenance information on the output background.

Returns#

resultslsst.pipe.base.Struct

The results struct containing:

outputBkglsst.pipe.tasks.background.FocalPlaneBackground

The full merged background for the entire focal plane.

outputScalelsst.daf.base.PropertyList

A metadata containing the median level of the background, stored in the key ‘scale’.

runQuantum(butlerQC, inputRefs, outputRefs)#

Ensure that the input and output dimensions are passed along.

Parameters#

butlerQClsst.daf.butler.QuantumContext

Butler to operate on.

inputRefslsst.pipe.base.InputQuantizedConnection

Input data refs to load.

outputRefslsst.pipe.base.OutputQuantizedConnection

Output data refs to persist.