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 under bin.src/runCreatePhosimDonutTemplates.py. The template files should then be stored here in ts_wep in policy/cwfs/donutTemplateData/phosimTemplates. See the ts_wep docs for more information or see ts_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.