JWST Pipeline Notebooks
Jupyter notebooks, a JSON-based interactive Python interface, is a powerful and convenient way to run the JWST pipeline that can be easily configured and shared. This article provides links to a selection of such notebooks that help demonstrate how to reduce JWST data using the JWST Science Calibration Pipeline.
On this page
Curated pipeline notebooks
The primary reference examples for how to run the JWST calibration pipeline for various different instruments and modes can be found on the jwst-pipeline-notebooks GitHub repository. These notebooks are designed to be easily configurable and allow users to run the JWST pipeline on data from a wide variety of science programs with minimal need for editing while still exposing many of the optional parameters that they might be most interested in modifying for a given instrument mode. These notebooks are also lightweight, running the entire pipeline end-to-end without stepping through individual stages or producing large quantities of intermediate plots, and are thus intended more for day-to-day use than for teaching users about individual pieces of the pipeline.
By default, the pipeline notebooks run in "demo" mode, processing example data downloaded from the MAST archive. If "demo" mode is disabled, they can instead process locally available data associated with any corresponding program.
Notebooks are actively curated and kept up-to-date with recent versions of the JWST pipeline software; while not always backwards-compatible, they generally work with more-recent versions of the pipeline than formally advertised.
Notebooks for individual observing modes will be added as they become available. Current notebooks include
Observing mode | JWST Build | Pipeline version | Notebook link | First available |
---|---|---|---|---|
MIRI Imaging | 11.0 | 1.15.1 | JWPipeNB-MIRI-Imaging.ipynb | Nov. 2024 |
MIRI MRS | 11.0 | 1.15.1 | JWPipeNB-MIRI-MRS.ipynb | Jul. 2024 |
NIRCam Imaging | 11.0 | 1.15.1 | JWPipeNB-nircam-imaging.ipynb | Nov. 2024 |
NIRISS Imaging | 11.0 | 1.15.1 | JWPipeNB-niriss-imaging.ipynb | Sep. 2024 |
Pipeline caveat notebooks
As discussed in Known Issues with JWST Data, some of the existing JWST data issues can be worked around using dedicated offline notebooks while awaiting long-term pipeline fixes. The majority of these notebooks are located in the jwst-caveat-examples GitHub repository, although some are maintained in alternate locations. The best way to discover these notebooks is through the tables of common issues and workarounds on the known issues articles for each JWST instrument mode.
JDAT and Jdaviz notebooks
Multiple notebooks have been made available for post-pipeline analysis and inspection of JWST data products. These notebooks do not focus on running the JWST pipeline, but rather on working with the data products that it produces. See JWST Post-Pipeline Data Analysis for further details.
Outdated notebooks
Many demonstration notebooks were produced early in the JWST mission (many in the context of JWebbinars) to introduce the community to the JWST data products, pipeline structure, and individual steps therein. While the notebooks below are no longer maintained and may no longer reflect the latest JWST pipeline environment, they can nonetheless be an excellent place to get started in learning about the pipeline and the data products that it produces.
Outdated data product notebooks
Notebook (in PDF and Github) | Content | Video demonstration (when available) |
---|---|---|
Using an uncalibrated (raw) JWST exposure:
| ||
Using JWST datamodels:
| ||
Using the final data products from the pipeline:
|
Outdated pipeline notebooks
Notebook in PDF and Github version | Content | Video demonstration |
---|---|---|
Working with the stage 1 calibration pipeline:
| ||
Working with the stage 2 calibration pipeline for Imaging:
| ||
Working with the stage 3 calibration pipeline for imaging:
| w | |
Working with the stage 2 calibration pipeline for spectroscopy:
| ||
Working with the stage 3 calibration pipeline for spectroscopy:
|