StrayLightTask#

class lsst.ip.isr.StrayLightTask(config: Config | None = None, *, name: str | None = None, parentTask: Task | None = None, log: logging.Logger | lsst.utils.logging.LsstLogAdapter | None = None)#

Bases: Task

Remove stray light from instruments.

This is a dummy task to be retargeted with an camera-specific version.

Methods Summary

check(exposure)

Check if stray light correction should be run.

checkFilter(exposure)

Check whether we should fringe-subtract the science exposure.

run(exposure, strayLightData)

Correct stray light.

Methods Documentation

check(exposure)#

Check if stray light correction should be run.

Parameters#

exposurelsst.afw.image.Exposure

Exposure to correct.

checkFilter(exposure)#

Check whether we should fringe-subtract the science exposure.

Parameters#

exposurelsst.afw.image.Exposure

Exposure to check the filter of.

Returns#

needsFringebool

If True, then the exposure has a filter listed in the configuration, and should have the fringe applied.

run(exposure, strayLightData)#

Correct stray light.

Parameters#

exposurelsst.afw.image.Exposure

Exposure to correct.

strayLightDataobject, optional

An opaque object that contains any calibration data used to correct for stray light.