DonutTemplateModel¶
- class lsst.ts.wep.cwfs.DonutTemplateModel¶
Bases:
DonutTemplateDefault
Class to make the donut templates from the Instrument model.
Methods Summary
makeTemplate
(sensorName, defocalType, imageSize)Make the donut template image.
Methods Documentation
- makeTemplate(sensorName, defocalType, imageSize, camType=CamType.LsstCam, opticalModel='offAxis', pixelScale=0.2, instParams=None)¶
Make the donut template image.
- Parameters:
- sensorNamestr
The camera detector for which we want to make a template. Should be in “Rxx_Sxx” format.
- defocalTypeenum ‘DefocalType’
The defocal state of the sensor.
- imageSizeint
Size of template in pixels. The template will be a square.
- camTypeenum ‘CamType’, optional
Camera type. (The default is CamType.LsstCam)
- opticalModelstr, optional
Optical model. It can be “paraxial”, “onAxis”, or “offAxis”. (The default is “offAxis”)
- pixelScalefloat, optional
The pixels to arcseconds conversion factor. (The default is 0.2)
- instParamsdict or None, optional
Instrument parameter configuration dictionary. Keys needed are: “obscuration”, “focalLength”, “apertureDiameter”, “offset”, “pixelSize”. If None, then it will default to configure the instrument from the default policy file for the camType. (The default is None)
- Returns:
- numpy.ndarray [int]
The donut template as a binary image.
- Raises:
- ValueError
Camera type is not supported.