roman_shear_sims.psf_makers
Attributes
Classes
A class to create different types of PSFs. |
Module Contents
- class PSFMaker(psf_type='gauss', fwhm=None, chromatic=True, wave=None, sca=1, pupil_bin=8, n_waves=10)[source]
A class to create different types of PSFs.
- Parameters:
psf_type (str) – The type of PSF to create. Options are ‘gauss’, ‘airy’, ‘obs_airy’, ‘roman’, ‘imcom’.
fwhm (float, optional) – The full width at half maximum of the Gaussian PSF in arcseconds.
chromatic (bool, optional) – Whether the PSF is chromatic. Default is True.
wave (float, optional) – The wavelength in nanometers for the PSF. Required if psf_type is ‘roman’.
sca (int, optional) – The SCA number for the Roman PSF. Default is 1.
pupil_bin (int, optional) – The binning factor for the pupil. Default is 8.
n_waves (int, optional) – The number of wavelengths to use for the Roman PSF. Default is 10.
- init_psf(band='Y106')[source]
Initialize the PSF parameters based on the bandpass.
- Parameters:
band (str) – The bandpass name for which to initialize the PSF parameters.
- get_psf(sca=None, image_pos=None, wcs=None)[source]
Get the PSF object
- Parameters:
sca (int, optional) – The SCA number for the Roman PSF. Default is the initialized value.
image_pos (galsim.CelestialCoord, optional) – The celestial coordinates of the image center. Required if psf_type is ‘roman’.
wcs (galsim.WCS, optional) – The WCS object for the image. Required if psf_type is ‘roman’.
- Returns:
The PSF object.
- Return type:
galsim.GSObject