psf_to_ellip_weighted

lsst.ts.imsim.utils.psf_to_ellip_weighted(psf, pix_in_um: ndarray, wl_um: float, atm_model: str = 'Gau', debug_level: int = 0) tuple[float, numpy.ndarray, numpy.ndarray, numpy.ndarray]

Calculate the ellipticity with the weighting function.

Parameters

psfnumpy.ndarray

Point spread function (PSF).

pix_in_umfloat

Pixel in um.

wl_umfloat

Wavelength in microns.

atm_modelstr, optional

Atmosphere model (“Gau” or “2Gau”). (the default is “Gau”.)

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).