psf_to_ellip_atm_weighted

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

Calculate the ellipticity with the error of atmosphere and weighting function.

Parameters

arraynumpy.ndarray

Wavefront OPD in micron, or psf image.

wl_umfloat

Wavelength in microns.

input_data_typestr, optional

Type of image (“opd” or “psf”). (the default is “opd”.)

Dfloat, optional

Side length of optical path difference (OPD) image in m. (the default is 8.36.)

p_maskint or numpy.ndarray[int], optional

Pupil mask. (the default is 0.)

r0_in_m_reffloat, optional

Fidicial atmosphere r0 @ 500nm in meter. (the default is 0.1382.)

sensor_factorfloat, optional

Factor of sensor. (the default is 1.)

zenfloat, optional

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

image_deltafloat, optional

Only needed when psf is used. 1 pixel = 0.2 arcsec. (the default is 0.2.)

fnofloat, optional

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

debug_levelint, optional

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

Returns

float

Ellipticity.

numpy.ndarray

Correlation function (XX).

numpy.ndarray

Correlation function (YY).

numpy.ndarray

Correlation function (XY).