roman_shear_sims.psf_makers

Attributes

PSF_TYPES

_rad_to_arcsec

Classes

PSFMaker

A class to create different types of PSFs.

Module Contents

PSF_TYPES = ['gauss', 'airy', 'obs_airy', 'roman', 'imcom'][source]
_rad_to_arcsec[source]
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.

psf_type = ''[source]
fwhm = None[source]
sca = 1[source]
pupil_bin = 8[source]
chromatic = True[source]
wave = None[source]
n_waves = 10[source]
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