create_atm¶
- lsst.ts.imsim.utils.create_atm(wl_um: float, fwhm_in_arcsec: float, grid_size: int | numpy.ndarray, pix_in_um: int, oversample: int, model: str = 'Gau', debug_level: int = 0) ndarray ¶
Calculate the weighting function for a certain atmosphere model.
Parameters¶
- wl_umfloat
Wavelength in microns.
- fwhm_in_arcsecfloat
Full width in half maximum (FWHM) in arcsec.
- grid_sizeint or numpy.ndarray[int]
Size of grid. If it is the array, it should be (distance to center)^2. That means r2.
- pix_in_umint
Pixel in um.
- oversampleint
k times of image resolution compared with the original one.
- 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¶
- numpy.ndarray
Weighting function of atmosphere.