STPSF for Roman

STPSF , formerly known as WebbPSF (for versions less than 2.0), is a Python tool for simulating for point spread functions.

In the following series of articles, we provide users with a high-level view of the STPSF tool, its capabilities and limitations, as well as some use cases and tutorials.

Note

The SOC Documentation and Simulation Tools are gradually being upgraded to use STPSF version 2.0. At the time of publication, some of our simulations tools may still be using the latest version of WebbPSF , which features the same functionalities as STPSF version 2.0.


STPSF: Simulated Point Spread Functions for JWST and the Nancy Grace Roman Space Telescope  


This figure contains six output images from WebbPSF. Four of the images show the entrance pupil, one has a typical point spread function (PSF) for WFI and one represents a coronagraph PSF.

Examples of STPSF for Roman WFI and the Coronagraph Imager.




What is STPSF for Roman

STPSF is a Python package that simulates point spread functions (PSFs) for both the James Webb Space Telescope and the Nancy Grace Roman Space Telescope. Using a set of pre-computed Optical Path Difference (OPD) maps, the tool simulates PSFs for various instrument configurations. For Roman, two modes are supported: the Wide Field Instrument (WFI), based on recent optical models from NASA's Goddard Space Flight Center, including field- and wavelength-dependent aberrations, and a preliminary version of the Coronagraph Instrument based on the Shaped-pupil Coronagraph early design.

light bulb See the Introduction to the WFI article for more information on the instrument.



Installation

STPSF Software Version 

This documentation is written for  STPSF version 2.0. Note also that Python 3.10 or higher is required.


STPSF is run locally and installation of the software is straightforward when using pip. 

pip install stpsf


The main dependency of STPSF is POPPY (Physical Optics Propagation in PYthon), a highly flexible package that simulates physical optical propagation including diffraction. Other major dependencies include:

All the required dependencies are installed by default when the user installs STPSF .  Although optional, SYNPHOT is highly recommended in order to enable the simulation of PSFs with realistic source spectra. 

Input Data

Note that  STPSF also requires input data for its simulations, including optical path difference (OPD) maps, filter transmission curves, and coronagraph mask shapes. In addition, the environment variable stpsf_path must also be set to point to the directory where the STPSF data are stored. These data files are not included in the source distribution and must be downloaded manually; detailed steps for installation, the associated data, and setting up the environment variables can also be found in the readthedocs documentation.

Users interested in running the development version of STPSF and/or contributing to its ongoing development may also clone or fork from the main GitHub repository.



Additional Resources

Interested users will want to refer to the readthedocs documentation.

The source code and other relevant information can also be found on the GitHub repository.




For additional questions not answered in this article, please contact the Roman Help Desk.




References

In addition to this documentation, STPSF (formerly WebbPSF) is described in the following references. Users are encouraged to cite one of these publications:

  1. Perrin et al. 2014, “Updated point spread function simulations for JWST with WebbPSF”, Proc. SPIE. 9143

  2. Perrin et al. 2012, “Simulating point spread functions for the James Webb Space Telescope with WebbPSF”, Proc SPIE 8842

  3. Perrin 2011, "Improved PSF Simulations for JWST: Methods, Algorithms, and Validation", JWST Technical report JWST-STScI-002469




Latest Update

 

WebbPSF was renamed STPSF.
Publication

 

Initial publication of the article.