make_one_psf

romanisim.psf.make_one_psf(sca, filter_name, wcs=None, webbpsf=True, pix=None, chromatic=False, oversample=4, **kw)

Make a PSF profile for Roman at a specific detector location.

Can construct both PSFs using galsim’s built-in galsim.roman.roman_psfs routine, or can use webbpsf.

Parameters:
scaint

SCA number

filter_namestr

name of filter

wcscallable (optional)

function giving mapping from pixels to sky for use in computing local scale of image for webbpsf PSFs

pixtuple (float, float)

pixel location of PSF on focal plane

oversampleint

oversampling with which to sample WebbPSF PSF

**kwdict

Additional keywords passed to galsim.roman.getPSF or webbpsf.calc_psf, depending on whether webbpsf is set.

Returns:
profilegalsim.gsobject.GSObject

galsim profile object for convolution with source profiles when rendering scenes.