DonutTemplatePhosim¶
- class lsst.ts.wep.cwfs.DonutTemplatePhosim¶
Bases:
DonutTemplateDefaultClass 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_phosimrepository underbin.src/runCreatePhosimDonutTemplates.py. The template files should then be stored here ints_wepinpolicy/cwfs/donutTemplateData/phosimTemplates. See thets_wepdocs for more information or seets_phosimdocs 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.