calc_pssn

lsst.ts.imsim.utils.calc_pssn(array: ndarray, wl_um: float, input_data_type: str = 'opd', D: float = 8.36, r0_in_m_ref: float = 0.1382, zen: float = 0, p_mask: int | numpy.ndarray = 0, image_delta: float = 0, fno: float = 1.2335, debug_level: int = 0) float

Calculate the normalized point source sensitivity (PSSN).

Parameters

arraynumpy.ndarray

Array that contains either opd or pdf. opd need to be in microns.

wl_umfloat

Wavelength in microns.

input_data_typestr, optional

What is used to calculate pssn - either opd or psf. (the default is “opd”.)

Dfloat, optional

Side length of OPD image in meter. (the default is 8.36.)

r0_in_m_reffloat, optional

Fidicial atmosphere r0 @ 500nm in meter, Konstantinos uses 0.20. (the default is 0.1382.)

zenfloat, optional

Telescope zenith angle in degree. (the default is 0.)

p_maskint or numpy.ndarray[int], optional

Pupil mask. when opd is used, it can be generated using opd image, we can put 0 or -1 or whatever here. When psf is used, this needs to be provided separately with same size as array. (the default is 0.)

image_deltafloat, optional

Only needed when psf is used. use 0 for opd. (the default is 0.)

fnofloat, optional

Only needed when psf is used. use 0 for opd. (the default is 1.2335.)

debug_levelint, optional

Debug level. The higher value gives more information. (the default is 0.)

Returns

float

PSSN value.