Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

=====
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


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


Metadata

Release files for pynrc 0.8.0.dev317

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pynrc 0.8.0.dev317
File Size Uploaded Provenance Actions
pynrc-0.8.0.dev317.tar.gz 1.3 MB Without provenance Details for pynrc-0.8.0.dev317.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pynrc 0.8.0.dev317
File Interpreter ABI Platform Actions
pynrc-0.8.0.dev317-py2.py3-none-any.whl Python 3, Python 2 none any Details for pynrc-0.8.0.dev317-py2.py3-none-any.whl

Total release size: 1.5 MB

Release files / pynrc-0.8.0.dev317.tar.gz

Download URL pynrc-0.8.0.dev317.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
441121348d9c654a0df6eb1938f06e6a05066cdc48bea49191ade7037f62c326
BLAKE2b-256 checksum
How to use checksums
b4e6a966f863dc7203a9093468d7c8c6129d95b6d21153d3c2711342ce25adad
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / pynrc-0.8.0.dev317-py2.py3-none-any.whl

Download URL pynrc-0.8.0.dev317-py2.py3-none-any.whl
Size 177.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
4606690dfb6ddb6fa697749de19456016eaf09c7b3168b3aefe0a7497687b75b
BLAKE2b-256 checksum
How to use checksums
097e594e59bf8daf64282f5f621c4baf021b978d560fdddb8c23ea4b2fc2d361
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for pynrc 0.8.0.dev317

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page