Skip to main content

JWST NIRCam ETC and Simulator

Project description

=====
pyNRC
=====

A JWST NIRCam ETC and Simulator
===============================

.. image:: https://img.shields.io/pypi/v/pynrc.svg
:target: https://pypi.python.org/pypi/pynrc

.. image:: https://readthedocs.org/projects/pynrc/badge/?version=latest
:target: https://pynrc.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status

*Authors:* Jarron Leisenring (UA)

*Contributors:* Everett Schlawin (UA), Jonathan Fraine (STScI)

**!!Under Development!!**

pyNRC is a set of Python-based tools for planning observations with JWST NIRCam,
such as an ETC, a simple image slope simulator, and an enhanced data simulator.

While special attention has been placed on NIRCam coronagraphic modes,
this package also works for a variety of NIRCam observing modes including:

- direct imaging
- coronagraphic imaging
- weak lens imaging
- slitless grism spectroscopy
- DHS observations (TBI)

All PSFs are generated via WebbPSF (https://webbpsf.readthedocs.io) to reproduce
realistic JWST images and spectra.

Documentation can be found at https://pynrc.readthedocs.io.

**Note:** pyNRC enables more modes than are officially allowed by the Observatory,
(ie., filter + coronagraphic combinations, subarray sizes, etc.).
Just because you can do something with pyNRC does not mean it will be supported.
Check out https://jwst-docs.stsci.edu/display/JTI/NIRCam+Observing+Modes for more information.

Similar to some of its dependencies, pyNRC requires a host of input data files in
order to generate simulations. Due to the size of these files, they are not included
with this source distribution. Please see the documentation for instructions on how to
to download the required data files.


Revision History
================

v0.8.0 (Jan 2019)
-----------------

- Release to work with WebbPSF 0.8.0.
- Phasing out support for Python 2
- Can use ``jwst_backgrounds`` (not required)
- Add info on saturation limits in terms of surface brightness
- Include option to create grism 2nd order
- Detector pixel timing bugs

v0.7.0 (Jun 2018)
-----------------

- Did not make it out of development before WebbPSF 0.8.0 release.
- Works with WebbPSF 0.7.0.

- Field-dependent WFE
- Image plane distortions

- Implemented ``jwst_backgrounds`` (not required)


v0.6.5 (Mar 2018)
-----------------

- Fixed a critical bug where the off-axis PSF size was incorrect
when performing WFE drift calculations.

v0.6.4 (Mar 2018)
-----------------

- Off-axis PSFs now get drifted in the same way as their on-axis
counterparts.
- Created an intermediate :mod:`~pynrc.nrc_hci` class to enable
offsets of WFE drifted PSFs.


v0.6.3 (Mar 2018)
-----------------

- First PyPI release.
- Effectively the same as 0.6.2, but better documentation of packaging and distributing.


v0.6.2 (Mar 2018)
-----------------

- Implemented coronagraphic wedges, including arbitrary offsets along bar
- Renamed ``obs_coronagraphy`` to :mod:`~pynrc.obs_hci`

- Faster modeling of off-axis PSFs
- Include coronagraphic features (e.g.: ND squares) in slope images
- Roll subtracted images include option to use Roll1-Roll2
- Fixed bug that was slowing down PSF convolution of disks

- Can now generate docs directly from Jupyter notebooks using nbsphinx extension
- Coronagraphic tutorials for docs
- Create the ``source_spectrum`` class to fit spectra to observed photometry.

v0.6.0 (Dec 2017)
-----------------

- Support for Python 3 (mostly ``map``, ``dict``, and index fixes)
- Updated code comments for ``sphinx`` and ``readthedocs`` documentation
- Create ``setup.py`` install file
- Modify grism PSF shapes due to aperture shape
- Detector frames times based on ASIC microcode build 10
- Headers for DMS data
- Three major changes to PSF coefficients

- coefficients based on module (SWA, SWB, LWA, LWB), rather than filter
- WFE drift coefficient relations
- field-dependent coefficient relation

v0.5.0 (Feb 2017)
-----------------

- Initial GitHub release
- Match version numbering to ``WebbPSF`` equivalent
- ND Acquisition mode
- Ramp settings optimizer
- Can now simulate ramps with detector noise
- Query Euclid's IPAC server for time/position-dependent Zodiacal emission
- Added example Jupyter notebooks

v0.1.2 (Jan 2017)
-----------------
- Observations subclass for coronagraphs and direct imaging

v0.1.1 (Sep 2016)
-----------------
- Add support for LW slitless grism
- Add support for extended sources

v0.1.0 (Aug 2016)
-----------------
- Rewrite of ``SimNRC`` and rename ``pynrc``
- Object oriented ``multiaccum``, ``DetectorOps``, and ``NIRCam`` classes
- Create separate detector instances in ``NIRCam`` class


-----------------------


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pynrc-0.8.0.dev317.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pynrc-0.8.0.dev317-py2.py3-none-any.whl (177.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pynrc-0.8.0.dev317.tar.gz.

File metadata

  • Download URL: pynrc-0.8.0.dev317.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for pynrc-0.8.0.dev317.tar.gz
Algorithm Hash digest
SHA256 441121348d9c654a0df6eb1938f06e6a05066cdc48bea49191ade7037f62c326
MD5 1d7a65d8d5609598c64fba3da06df51e
BLAKE2b-256 b4e6a966f863dc7203a9093468d7c8c6129d95b6d21153d3c2711342ce25adad

See more details on using hashes here.

File details

Details for the file pynrc-0.8.0.dev317-py2.py3-none-any.whl.

File metadata

  • Download URL: pynrc-0.8.0.dev317-py2.py3-none-any.whl
  • Upload date:
  • Size: 177.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for pynrc-0.8.0.dev317-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4606690dfb6ddb6fa697749de19456016eaf09c7b3168b3aefe0a7497687b75b
MD5 2f4adad6c4d22dcb758b56034c9332c7
BLAKE2b-256 097e594e59bf8daf64282f5f621c4baf021b978d560fdddb8c23ea4b2fc2d361

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page