getOffsetFromExposure

lsst.ts.wep.utils.getOffsetFromExposure(exposure: Exposure, camName: str, defocalType: Union[DefocalType, str]) float

Get the offset from the exposure.

For LSSTCam and ComCam this corresponds to the offset of the detector where the donut was imaged, while for AuxTel it corresponds to the offset of M2.

Parameters
exposurelsst.afw.image.Exposure

The exposure

camNamestr

Name of instrument using butler convention. Available instruments are LSSTCam, LSSTComCam, LSSTComCamSim, and LATISS.

defocalTypeDefocalType, str, or None

The DefocalType enum, or corresponding string.

Returns
float

The offset in mm

Raises
ValueError

If the detector/camera combo is not supported