createTemplateForDetector#
- lsst.ts.wep.utils.createTemplateForDetector(detector, defocalType, bandLabel=BandLabel.REF, instrument=None, opticalModel='offAxis', padding=5, isBinary=True, ccs=False, nPixels=None)#
Create a donut template for the given detector.
- Parameters:
detector (lsst.afw.cameraGeom.Detector) – The detector object for which the template is created
defocalType (DefocalType or str) – The DefocalType enum (or corresponding string) specifying whether to create an intra- or extra-focal template.
bandLabel (BandLabel or str, optional) – The BandLabel enum (or corresponding string) specifying the band for which the template is created. Note it is not expected that this will matter much for template creation. (the default is BandLabel.REF)
instrument (Instrument, optional) – The ts.wep Instrument object. (the default is the default Instrument)
opticalModel (str, optional) – The optical model for the ImageMapper. (the default is “offAxis”)
padding (int, optional) – Padding, in pixels, on each side of the template. (the default is 5)
isBinary (bool, optional) – Whether to return a binary template. (the default is True)
ccs (bool, optional) – Whether to return a template that is in the camera coordinate system (CCS). For templates on the CWFSs, this also includes de-rotation so they are in the same orientation as the science sensors. When False, the data is in the DVCS, and the CWFSs are in original orientation. This matches the data from the butler. (the default is False)
nPixels (int, optional) – The number of pixels on a side of the template. Typically this number is calculated dynamically, but if supplied here, this number is used as an override. Note the padding is not applied if this is provided.
- Returns:
The donut template array.
- Return type:
np.ndarray