DonutTemplatePhosim¶
- class lsst.ts.wep.cwfs.DonutTemplatePhosim¶
Bases:
DonutTemplateDefault
Class to make the donut templates from phosim template images.
Methods Summary
makeTemplate
(sensorName, defocalType, imageSize)Make the donut template image from phosim templates.
Methods Documentation
- makeTemplate(sensorName, defocalType, imageSize)¶
Make the donut template image from phosim templates. The templates should have been created using code located in the
ts_phosim
repository underbin.src/runCreatePhosimDonutTemplates.py
. The template files should then be stored here ints_wep
inpolicy/cwfs/donutTemplateData/phosimTemplates
. See thets_wep
docs for more information or seets_phosim
docs for instructions on creating templates.- 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.
- Returns:
- numpy.ndarray [int]
The donut template as a binary image.