CpFlatApplyGradientsTask#

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

Bases: PipelineTask

Task to apply/remove gradients for dome flats.

Methods Summary

run(*, camera, input_flat, ...)

Run the CpFlatApplyGradientsTask.

Methods Documentation

run(*, camera, input_flat, reference_gradient, gradient)#

Run the CpFlatApplyGradientsTask.

This will apply (remove) any gradients from a flat.

Parameters#

cameralsst.afw.cameraGeom.Camera

Camera object.

input_flatlsst.afw.Exposure

Input flat to apply/remove gradients.

reference_gradientlsst.ip.isr.FlatGradient

Reference gradient with target radial function.

gradientlsst.ip.isr.FlatGradient

Gradient fit to the full focal plane.

Returns#

structlsst.pipe.base.Struct
Output structure with:

output_flat: lsst.afw.image.Exposure