Webbpsf

Latest version: v1.5.0

Safety actively analyzes 702100 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 2

1.1.0

*2022 September 23*

*First release with JWST in flight optical performance!* Updates and tools added after completion of commissioning.

Note, this release requires updating your WebbPSF data files to version 1.1.0. See [our installation instructions](https://webbpsf.readthedocs.io/en/v1.1.0/installation.html#installing-the-required-data-files) for more information.

This release's upgraded requirements drop support for Python 3.7, meaning conda installation is temporarily unavailable since the AstroConda channel is not equipped for newer Python versions. Installation with pip works as normal.

For full release notes, see https://webbpsf.readthedocs.io/en/latest/relnotes.html#version-1-1-0
**Full changelog:** https://github.com/spacetelescope/webbpsf/compare/v1.0.0...v1.1.0

1.0.0

*2021 December 10*

Milestone release shortly before JWST launch, with significant updates to both JWST and Roman optical models.

See [release notes on readthedocs](https://webbpsf.readthedocs.io/en/latest/relnotes.html#version-1-0-0) for a more informative summary than the below which was auto-generated by GitHub.

What's Changed
* update branch URLs in docs for master -> stable (or develop, as appropriate) by mperrin in https://github.com/spacetelescope/webbpsf/pull/372
* avoid reloading SIAF multiple times, for small runtime speed improvement by mperrin in https://github.com/spacetelescope/webbpsf/pull/377
* Update thermal slew scaling by JarronL in https://github.com/spacetelescope/webbpsf/pull/375
* Added line to include clocking from SUR by Skyhawk172 in https://github.com/spacetelescope/webbpsf/pull/385
* Toward better OTE field dependence modeling: use OTE linear model class by default by mperrin in https://github.com/spacetelescope/webbpsf/pull/378
* Move jwxml code into webbpsf by shanosborne in https://github.com/spacetelescope/webbpsf/pull/390
* update syntax to remove unnecessary underscores after poppy PR 386 by mperrin in https://github.com/spacetelescope/webbpsf/pull/395
* Move missing data files message inside error by shanosborne in https://github.com/spacetelescope/webbpsf/pull/391
* update opd thermal slew test, in particular for a change in pupil segment data file by mperrin in https://github.com/spacetelescope/webbpsf/pull/396
* Gridded PSF library generation should copy hexike P/T/T keywords, if present by mperrin in https://github.com/spacetelescope/webbpsf/pull/398
* WebbPSF: Rename WFIRST -> Roman by robelgeda in https://github.com/spacetelescope/webbpsf/pull/400
* JWST Help Desk instead of helpstsci.edu by dancoe in https://github.com/spacetelescope/webbpsf/pull/402
* WIP: OTE Secondary Mirror IFM field-dependence implementation by Skyhawk172 in https://github.com/spacetelescope/webbpsf/pull/392
* Updating to meet INS-JWST Software Standards by shanosborne in https://github.com/spacetelescope/webbpsf/pull/404
* Create Dependabot config file by dependabot-preview in https://github.com/spacetelescope/webbpsf/pull/405
* Add a travis test for latest dep versions by shanosborne in https://github.com/spacetelescope/webbpsf/pull/408
* bug fix: avoid matplotlib deprecation of changing colormaps by mperrin in https://github.com/spacetelescope/webbpsf/pull/410
* Use consistent lengths for Zernike/Hexike coefficients and basis vectors by mperrin in https://github.com/spacetelescope/webbpsf/pull/422
* Bump numpy from 1.19.4 to 1.20.1 by dependabot in https://github.com/spacetelescope/webbpsf/pull/407
* Fix broken link to notebook by kjbrooks in https://github.com/spacetelescope/webbpsf/pull/423
* For Ball LookupTableOPD, add support for general defocus, e.g. for MIMF by Skyhawk172 in https://github.com/spacetelescope/webbpsf/pull/425
* Update MIRI detector cross artifact model; fixes 415 by mperrin in https://github.com/spacetelescope/webbpsf/pull/417
* add unit test for sign convention; adapted from notebook version in PR 418 by mperrin in https://github.com/spacetelescope/webbpsf/pull/419
* Bump ipython from 7.20.0 to 7.21.0 by dependabot in https://github.com/spacetelescope/webbpsf/pull/421
* Bump scipy from 1.6.0 to 1.6.1 by dependabot in https://github.com/spacetelescope/webbpsf/pull/420
* Updates for sign convention and poppy 1.0 by mperrin in https://github.com/spacetelescope/webbpsf/pull/397
* Coronagraphic mask offset by JarronL in https://github.com/spacetelescope/webbpsf/pull/428
* Replace griddata with RegularGridInterpolator for distortions by JarronL in https://github.com/spacetelescope/webbpsf/pull/429
* Update dependencies min versions by shanosborne in https://github.com/spacetelescope/webbpsf/pull/436
* Adding synphot by shanosborne in https://github.com/spacetelescope/webbpsf/pull/424
* bugfix synphot refactor by mperrin in https://github.com/spacetelescope/webbpsf/pull/437
* Update rotation sign for consistency after poppy PR 411 by mperrin in https://github.com/spacetelescope/webbpsf/pull/438
* Remove deprecated code for GUIs and obssim by mperrin in https://github.com/spacetelescope/webbpsf/pull/439
* Bump ipython from 7.21.0 to 7.22.0 by dependabot in https://github.com/spacetelescope/webbpsf/pull/431
* Bump matplotlib from 3.3.4 to 3.4.1 by dependabot in https://github.com/spacetelescope/webbpsf/pull/434
* Bump scipy from 1.6.1 to 1.6.2 by dependabot in https://github.com/spacetelescope/webbpsf/pull/432
* Bump photutils from 1.0.2 to 1.1.0 by dependabot in https://github.com/spacetelescope/webbpsf/pull/433
* Bump numpy from 1.20.1 to 1.20.2 by dependabot in https://github.com/spacetelescope/webbpsf/pull/435
* Update GitHub URLs in tutorial notebook by robelgeda in https://github.com/spacetelescope/webbpsf/pull/441
* calculate SI WFE header keyword over just the JWST aperture, not the full array by mperrin in https://github.com/spacetelescope/webbpsf/pull/427
* specify jitter arcseconds per axis by robelgeda in https://github.com/spacetelescope/webbpsf/pull/442
* MNT: Do not write config on import by pllim in https://github.com/spacetelescope/webbpsf/pull/444
* fix set_position_from_aperture_name by mperrin in https://github.com/spacetelescope/webbpsf/pull/447
* update data files release script by mperrin in https://github.com/spacetelescope/webbpsf/pull/454
* Move CI to github actions, replacing Travis by shanosborne in https://github.com/spacetelescope/webbpsf/pull/455
* Bump astropy from 4.2 to 4.2.1 by dependabot in https://github.com/spacetelescope/webbpsf/pull/449
* Bump scipy from 1.6.2 to 1.6.3 by dependabot in https://github.com/spacetelescope/webbpsf/pull/452
* Update the OPD linear model so that we can adjust the pixel sampling by kjbrooks in https://github.com/spacetelescope/webbpsf/pull/440
* Bump pysiaf from 0.10.0 to 0.11.0 by dependabot in https://github.com/spacetelescope/webbpsf/pull/450
* Bump ipython from 7.22.0 to 7.23.1 by dependabot in https://github.com/spacetelescope/webbpsf/pull/457
* Streamline CI test runtimes by mperrin in https://github.com/spacetelescope/webbpsf/pull/459
* Bump matplotlib from 3.4.1 to 3.4.2 by dependabot in https://github.com/spacetelescope/webbpsf/pull/463
* Bump ipython from 7.23.1 to 7.24.0 by dependabot in https://github.com/spacetelescope/webbpsf/pull/462
* Bump numpy from 1.20.2 to 1.20.3 by dependabot in https://github.com/spacetelescope/webbpsf/pull/461
* Undefined variables in optics.py by JarronL in https://github.com/spacetelescope/webbpsf/pull/464
* update MIRI detector scale params to match current SIAF by mperrin in https://github.com/spacetelescope/webbpsf/pull/456
* Bump numpy from 1.20.3 to 1.21.0 by dependabot in https://github.com/spacetelescope/webbpsf/pull/469
* Bump scipy from 1.6.3 to 1.7.0 by dependabot in https://github.com/spacetelescope/webbpsf/pull/467
* Bump ipython from 7.24.0 to 7.25.0 by dependabot in https://github.com/spacetelescope/webbpsf/pull/468
* Roman Prism and Grism by robelgeda in https://github.com/spacetelescope/webbpsf/pull/416
* WFR4+MIMF_KDP: add LookupTable optic class for Ball-delivered OPDs by mperrin in https://github.com/spacetelescope/webbpsf/pull/328
* Bump numpy from 1.21.0 to 1.21.1 by dependabot in https://github.com/spacetelescope/webbpsf/pull/476
* Update CI by shanosborne in https://github.com/spacetelescope/webbpsf/pull/480
* Bump astropy from 4.2.1 to 4.3.1 by dependabot in https://github.com/spacetelescope/webbpsf/pull/478
* Bump ipython from 7.25.0 to 7.27.0 by dependabot in https://github.com/spacetelescope/webbpsf/pull/483
* Bump numpy from 1.21.1 to 1.21.2 by dependabot in https://github.com/spacetelescope/webbpsf/pull/484
* Bump matplotlib from 3.4.2 to 3.4.3 by dependabot in https://github.com/spacetelescope/webbpsf/pull/485
* Bump scipy from 1.7.0 to 1.7.1 by dependabot in https://github.com/spacetelescope/webbpsf/pull/486
* LRE4 and MIMF KDP Practice 2: add options to LookupTableOPD for importing Ball-delivered OPDs by mperrin in https://github.com/spacetelescope/webbpsf/pull/474
* Extend MIRI Lyot occulter to edge of FoV by JarronL in https://github.com/spacetelescope/webbpsf/pull/482
* Merge and deconflict from develop-0.9.2 to develop by mperrin in https://github.com/spacetelescope/webbpsf/pull/473
* Bump photutils from 1.1.0 to 1.2.0 by dependabot in https://github.com/spacetelescope/webbpsf/pull/489
* Bump ipython from 7.27.0 to 7.28.0 by dependabot in https://github.com/spacetelescope/webbpsf/pull/490
* Bump pysiaf from 0.11.0 to 0.13.0 by dependabot in https://github.com/spacetelescope/webbpsf/pull/491
* MNT: Update codecov-action version to v2 by pllim in https://github.com/spacetelescope/webbpsf/pull/492
* Use "==" instead of "is" for string comparisons by JarronL in https://github.com/spacetelescope/webbpsf/pull/493
* Bump numpy from 1.21.2 to 1.21.3 by dependabot in https://github.com/spacetelescope/webbpsf/pull/494
* Bump ipython from 7.28.0 to 7.29.0 by dependabot in https://github.com/spacetelescope/webbpsf/pull/495
* Add field dependence into weak lens model by mperrin in https://github.com/spacetelescope/webbpsf/pull/496
* Remove Python 3.6 by shanosborne in https://github.com/spacetelescope/webbpsf/pull/498
* bug fix: avoid filling OPD outer regions with NaNs when using the global zernike option by mperrin in https://github.com/spacetelescope/webbpsf/pull/497
* Bump ipython from 7.29.0 to 7.30.0 by dependabot in https://github.com/spacetelescope/webbpsf/pull/500
* Bump scipy from 1.7.1 to 1.7.3 by dependabot in https://github.com/spacetelescope/webbpsf/pull/501
* Bump matplotlib from 3.4.3 to 3.5.0 by dependabot in https://github.com/spacetelescope/webbpsf/pull/502
* Bump astropy from 4.3.1 to 5.0 by dependabot in https://github.com/spacetelescope/webbpsf/pull/503
* Rename 'P750L LRS grating' -> 'P750L', per 477 by mperrin in https://github.com/spacetelescope/webbpsf/pull/499
* add synphot as required dependency, and update some other min vers by mperrin in https://github.com/spacetelescope/webbpsf/pull/504
* OTE field dependence, clean branch, try 2 by mperrin in https://github.com/spacetelescope/webbpsf/pull/505
* JWST "visual optical budget" display toolkit by mperrin in https://github.com/spacetelescope/webbpsf/pull/506
* Added distortion/crop arguments to Roman calc_psf by ojustino in https://github.com/spacetelescope/webbpsf/pull/488
* Roman Cycle 9 Updates by ojustino in https://github.com/spacetelescope/webbpsf/pull/466
* Added GRISM0 back to WFI filter tests by ojustino in https://github.com/spacetelescope/webbpsf/pull/508
* Fix spacing issue in docs by shanosborne in https://github.com/spacetelescope/webbpsf/pull/510
* Updating bar mask offsets directly from pySIAF by kammerje in https://github.com/spacetelescope/webbpsf/pull/509
* Release prep for 1.0.0 by mperrin in https://github.com/spacetelescope/webbpsf/pull/507
* Corrected info on Roman reference pixels by ojustino in https://github.com/spacetelescope/webbpsf/pull/515
* Added Roman updates to v1.0.0 release notes by ojustino in https://github.com/spacetelescope/webbpsf/pull/514
* Drop CGI references in Roman code by ojustino in https://github.com/spacetelescope/webbpsf/pull/516
* Roman documentation and coronagraph demo changes by ojustino in https://github.com/spacetelescope/webbpsf/pull/517
* JWST OTE OPD updates for Release 1.0.0 by mperrin in https://github.com/spacetelescope/webbpsf/pull/512
* last additional release notes update for 1.0.0 by mperrin in https://github.com/spacetelescope/webbpsf/pull/518

New Contributors
* dancoe made their first contribution in https://github.com/spacetelescope/webbpsf/pull/402
* dependabot-preview made their first contribution in https://github.com/spacetelescope/webbpsf/pull/405
* dependabot made their first contribution in https://github.com/spacetelescope/webbpsf/pull/407
* pllim made their first contribution in https://github.com/spacetelescope/webbpsf/pull/444
* ojustino made their first contribution in https://github.com/spacetelescope/webbpsf/pull/488
* kammerje made their first contribution in https://github.com/spacetelescope/webbpsf/pull/509

**Full Changelog**: https://github.com/spacetelescope/webbpsf/compare/v0.9.1...v1.0.0

0.9.2

*2021 July 23*

This release improves a subset of WFIRST functionality to add WFI's Prism and Grism modes using cycle 8 models for wavefront error.

This release only improves a subset of WFIRST functionality; additional improvements to both WFIRST (including renaming to Roman) and JWST models will be at the upcoming 1.0.0 major release.

**WFIRST Improvements**

- New Grism and Prism filters: [:pr:`416`, :pr:`471`, :user:`robelgeda`]
- `GRISM_FILTER = 'G150'`
- `PRISM_FILTER = 'P120'`
- Changing filters to `G150` or `P120` changes the mode of the WFI and the aberrations files (unless there is a user aberrations override) [:pr:`416`, :pr:`471`, :user:`robelgeda`]
- New `WFI.mode`: Class property that returns the current mode of the WFI instance by passing the current filter to `WFI. _get_filter_mode`. WFI modes are: [:pr:`416`, :pr:`471`, :user:`robelgeda`]
- Imaging
- Grism
- Prisim
- New `WFI.override_aberrations(aberrations_path)`: Overrides and locks the current aberrations with aberrations at `aberrations_path`. Lock means changing the filter/mode has no effect on the aberrations. [:pr:`416`, :pr:`471`, :user:`robelgeda`]
- New `WFI.reset_override_aberrations()`: Releases `WFI.override_aberrations` lock and start using the default aberrations. [:pr:`416`, :pr:`471`, :user:`robelgeda`]
- New Tests for mode and filter switching. [:pr:`416`, :pr:`471`, :user:`robelgeda`]
- New Field point nearest point approximation (extrapolation). [:pr:`416`, :pr:`471`, :user:`robelgeda`]

**Software and Package Infrastructure Updates:**

- This release uses Github Actions CI and removes TravisCI. [:pr:`455`, :user:`shanosborne`, :pr:`471`, :user:`robelgeda`]

0.9.1

This minor release resolves several bugs and occasional installation issues and updates behind-the-scenes package infrastructure for consistency with current astropy and numpy releases. There are small improvements to a few aspects of JWST models as detailed below (in particular for wavelength dispersion in NIRCam LW coronagraphy and in tools for modeling time-dependent WFE) but the vast majority of JWST PSF calculations are not changed in any way.

For full release notes see https://webbpsf.readthedocs.io/en/latest/relnotes.html

0.9.0

*2019 November 22*

Note, when upgrading to this version you will need to update to the latest data files as well. This is handled automatically if you use `conda`, otherwise you will need to download and install the data from: `webbpsf-data-0.9.0.tar.gz <https://stsci.box.com/shared/static/qcptcokkbx7fgi3c00w2732yezkxzb99.gz>`_.


**JWST Improvements**

- *Added a new capability to model the impact of thermal variations*, from telescope slews relative to the sun, onto mirror alignments and therefore onto PSFs. This new ``thermal_slew`` method can be used to create a delta OPD for some elapsed time after the slew at either the maximum slew angle, some specified angle, or with a scaling factor applied to maximum case. Once combined with an input OPD (requirements or predicted), the new shape of the mirrors can be used to simulate predicted PSFs some time after a slew. See this `Jupyter notebook <https://github.com/spacetelescope/webbpsf/blob/master/notebooks/Example Construction of OPDs from Delta Time After Slew.ipynb>`_ for examples. [:pr:`269`, :user:`kjbrooks`]
- *Improved wavefront error extrapolation method for field points near FOV corners* that are outside the bounds of Zernike reference table data, in order to provide more seamless extrapolation. [:pr:`283`, :user:`JarronL`]
- *Improvements in NIRCam optical model*: Updated polynomial model for NIRCam defocus versus wavelength. Adds Zernike coefficients for the wavefront error at NIRCam coronagraphy field points. [:pr:`283`, :user:`JarronL`]
- NIRISS NRM mask was flipped along the X axis to match the as-built instrument and measured PSFs [:pr:`275`, :user:`KevinVolkSTScI`, :user:`anand0xff`, :user:`mperrin`]
- Updated FGS throughput values to use data from the instrument sub-level testing that was done by Comdev/Honeywell, detector quantum efficiency as measured by Teledyne, and the OTE throughput from Lightsey 2012. The throughput file was also updated to include the WAVEUNIT keyword, which removes a warning. [:user:`shanosborne`]]

**WFIRST Improvements**

- *The WFI optical model has been updated to use optical data from the Cycle 8 design revision.* These include updated Zernike coefficients for field-dependent wavefront error, and masked and unmasked pupil images for each SCA, and updated filter throughputs (consistent with values used in Pandeia 1.4.2). The correct pupil file will automatically be selected for each calculation based on the chosen detector position and filter. The pupil files are consistent with those provided in the WFI cycle 8 reference information, but have been resampled onto a common pixel scale. See :ref:`WFIRST instrument model details <wfirst_wfi>` for more. [:pr:`309` :user:`robelgeda`]
- Note, WFI's filters have been renamed so they all begin with “F”; see the table `here <https://github.com/spacetelescope/webbpsf/pull/309>`_ .
- *The WFI wavelength range has now been extended to cover the 0.48 - 2.0 µm range.* [:pr:`309` :user:`robelgeda`]
- *Expanded ``psf_grid`` method’s functionality so it can also be used to make grids of WFIRST PSFs.* Note that focal plane distortion is not yet implemented for WFIRST PSFs and so ``add_distortion`` keyword should not be used for this case. [:pr:`294`, :user:`shanosborne`]
- *The WFIRST F062 filter bandpass red edge was corrected* from 8000A to 7600A, and associated unit tests were updated to include F062 [:pr:`288`, :user:`robelgeda`]
- The WFI simulations now include the pointing jitter model, using the predicted WFI pointing stability of 14 milliarcseconds per axis. [:pr:`322`, :user:`mperrin`]

**General bug fixes and small changes:**

- *Many improvements in the PSF Grid functionality for generating photutils.GriddedPSFModels*:

- New options in ``psf_grid`` to specify both/either the output filename and output directory location. See this `Jupyter notebook <https://github.com/spacetelescope/webbpsf/blob/master/notebooks/Gridded_PSF_Library.ipynb>`_ for examples. [:pr:`294`, :user:`shanosborne`]
- sFfilenames when saving out a ``psf_grid`` FITS object which has it’s ``filename`` parameter set will now end with ``_det.fits`` instead of the previous ``_det_filt.fits`` [:pr:`294`, :user:`shanosborne`]
- Update added to ``utils.to_griddedpsfmodel`` where a 2-dimensional array input with a header containing only 1 ``DET_YX`` keyword can be turned into ``GriddedPSFModel`` object without error as it implies the case of a PSF grid with num_psfs = 1. [:pr:`294`, :user:`shanosborne`]
- Remove deletion of ``det_yx`` and ``oversamp`` keywords from ``psf_grid`` output to allow for easier implementation in certain cases. Normal case users will have extra keywords but will not change functionality [:pr:`291`, :user:`shanosborne`]
- Updated normalization of PSFs from ``psf_grid`` to be in surface brightness units, independent of oversampling in order to match the expectation of ``photutils.GriddedPSFModel``. This is diferent than webbpsf's default in which PSFs usually sum to 1 so the counts/pixel varies based on sampling. [:pr:`311`, :user:`mperrin`]
- Fix bug in how ``pupilopd`` keyword is saved and include extra keywords ``opd_file``, ``opdslice``, ``coronmsk``, and ``pupil`` in the ``psf_grid`` output, both the GriddedPSFModel meta data and FITS object's header [:pr:`284`, :pr:`293`, :pr:`299`, :user:`shanosborne`]

- The ``set_position_from_aperture_name`` method now correctly sets the detector position parameter in the science frame [:pr:`281`, :user:`shanosborne`, :user:`JarronL`, :user:`mperrin`]
- Fix OPD HDUList output from the ``as_fits`` method inside the OPD class to include the previously existing header information [:pr:`270` :user:`laurenmarietta`]
- Added support for secondary mirror moves to the move_sur() method through the move_sm_local method [:pr:`295`, :user:`AldenJurling`]
- Remove ``units`` keyword from ``get_opd`` method, now the wave input needs to be a Wavefront object [:pr:`304`, :user:`shanosborne`]

**Software and Package Infrastructure Updates:**

- Added ``environment.yml`` file [:pr:`321`, :user:`shanosborne`, :user:`mperrin`]
- Remove leftover deprecated syntax ``_getOpticalSystem`` for ``_get_optical_system`` and ``display_PSF`` for ``display_psf`` [:pr:`280`, :pr:`294`, :user:`mperrin`, :user:`shanosborne`]
- Various smaller code cleanup and doc improvements, including code cleanup for better Python PEP8 style guide compliance [:user:`mperrin`, :user:`shanosborne`, :user:`robelgeda`]
- Documentation added and/or updated for a variety of features [:pr:`277`, :pr:`280`, :pr:`318`, :user:`mperrin, shanosborne`]

0.8.0

First Python 3-only version of WebbPSF. This release focuses mostly on performance with no changes in the optical models. There is also a new feature for creating PSF grids. See release notes and documentation for more details.

Page 2 of 2

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.