webbpsf_reader#

photutils.psf.webbpsf_reader(filename)[source]#

Generate a GriddedPSFModel from a WebbPSF FITS file containing a PSF grid.

Note

Instead of being used directly, this function is intended to be used via the GriddedPSFModel read method, e.g., model = GriddedPSFModel.read(filename, format='webbpsf').

The WebbPSF FITS file contain a 3D array of ePSFs with the header detailing where the fiducial ePSFs are located in the detector coordinate frame.

Parameters:
filenamestr

The name of the WebbPSF FITS file. A URL can also be used.

Returns:
modelGriddedPSFModel

The gridded ePSF model.