#

Spacetelescope jdat_notebooks Index

James Webb Space Telescope Data Analysis Tool Notebooks

The jdat_notebooks repository contains notebooks illustrating workflows for post-pipeline analysis of JWST data. Some of the notebooks also illustrate generic analysis workflows that are applicable to data from other observatories as well. This repository and the notebooks are one component of STScI's larger Data Analysis Tools Ecosystem.

The following table summarizes the notebooks currently available. Most links will take you to rendered versions of the notebooks, which require no special tools beyond your web browser. To download and execute the notebooks, clone this repository to your local computer. Most of the notebooks rely on packages that can be installed using pip. The version dependencies are listed in the environment.yaml and in the requirements file in each notebook folder.

JWST Science Analysis Notebooks
Notebook Description
Cross-Instrument
asdf
  • Use case: create ASDF (Advanced Scientific Data Format) file from FITS file.
  • Data: CANDELS image of the COSMOS field.
  • Tools: asdf, gwcs, astrocut.
  • Cross-instrument: all instruments.
Background Estimation
  • Use case: estimate the sky background in complex scenes.
  • Data: images with pathological background pattern created in the notebook.
  • Tools: photutils
  • Cross-instrument: all instruments.
Redshift Cross-Corr
  • Use case: reproduce the workflow of the IRAF task XCORFIT to measure redshift.
  • Data: LEGA-C spectra and galaxy template spectra; optical rest-frame.
  • Tools: specutils.
  • Cross-instrument: all instruments.
Querying MAST
  • Use case: How to submit a NIRSpec MAST Query using python.
  • Data:
  • Tools: mast, astroquery.
  • Cross-instrument: all instruments.
Specviz GUI
  • Use case: How to inspect and export spectra in Specviz GUI.
  • Data: NIRISS simulation generated with the code MIRAGE.
  • Tools: specutils, jdaviz.
  • Cross-instrument: all instruments.
IFU Cube Fitting
  • Use case: continuum and emission-line modeling of galaxy IFU spectra.
  • Data: Spitzer IRS on Messier 58.
  • Tools: specutils, custom functions.
  • Cross-instrument: MIRI, NIRSpec.
NIRCam
Multiband Extended Aperture Photometry
  • Use case: measure extended galaxy photometry in a field.
  • Data: Simulated NIRCam images from JADES GTO extragalactic blank field.
  • Tools: photutils.
  • Cross-instrument:
Crowded Field Aperture Photometry
  • Use case: Crowded field imaging with Aperture-fitting photometry.
  • Data: Simulated NIRCam images of LMC astrometric calibration field.
  • Tools: jwst pipeline, photutils.
  • Cross-instrument:
PSF Photometry
  • Use case: Crowded field imaging with PSF-fitting photometry.
  • Data: Simulated NIRCam images of LMC astrometric calibration field.
  • Tools: webbpsf, photutils.
  • Cross-instrument:
PSF Matching Photometry
  • Use case: Crowded field imaging with PSF-fitting photometry.
  • Data: Simulated NIRCam images of LMC astrometric calibration field.
  • Tools: webbpsf, photutils.
  • Cross-instrument:
NIRISS
WFSS Spectra Notebook 0 Notebook 1 Notebook 2 Notebook 3
  • Use case: Optimal extraction and analysis of grism spectra.
  • Data: Simulated NIRISS spectra of a galaxy cluster
  • Tools: specutils .
  • Cross-instrument: NIRSpec.
MOS spctra
  • Use case: Emission-line measurements and template matching on 1D spectra.
  • Data: LEGA-C spectra and galaxy template spectra; optical rest-frame.
  • Tools: specutils.
  • Cross-instrument: NIRSpec.
SOSS Transiting Exoplanet
  • Use case: Primary transit of an exoplanet.
  • Data: Simulated transit using awesomesoss.
  • Tools: jwst pipeline, juliet.
  • Cross-instrument:
AMI Binary Star
  • Use case: Find the binary parameters of AB Dor.
  • Data: Simulated MIRAGE data for a binary point source.
  • Tools: jwst pipeline, nrm_analysis.
  • Cross-instrument:
NIRSpec
IFU Analysis
  • Use case: Continuum and emission-line modeling of AGN; 1.47-1.87um.
  • Data: NIFS on Gemini; NGC 4151.
  • Tools: specutils, cubeviz.
  • Cross-instrument:
MOS Optimal Extraction
  • Use case: Optimal spectral extraction.
  • Data: Simulated NIRSpec MOS data; point sources.
  • Tools: jwst pipeline
  • Cross-instrument:
MOS Pre-Imaging
  • Use case: Simulation of NIRCam pre-imaging for NIRSpec.
  • Data: Simulated NIRCam images of LMC astrometric calibration field.
  • Tools: jwst pipeline.
  • Cross-instrument: NIRCam.
BOTS Transiting Exoplanet
  • Use case: Primary transit of an exoplanet.
  • Data: Simulated NIRSpec data from ground-based campaign.
  • Tools:
  • Cross-instrument:
IFU Optimal Extraction
  • Use case: Optimal spectral extraction.
  • Data: Simulated data of faint (quasar) point source.
  • Tools: jwst, scipy, specutils, jdaviz, photutils, astropy.io, astropy.wcs
  • Cross-instrument:
MIRI
LRS Optimal Extraction
  • Use case: Optimal spectral extraction.
  • Data: MIRISim simulated spectra.
  • Tools: jwst pipeline, gwcs.
  • Cross-instrument:
IFU Cube 1
  • Use case: Extract spatial-spectral features from IFU cube.
  • Data: KMOS datacube of point sources in the LMC.
  • Tools: specutils, spectral_cube, photutils.
  • Cross-instrument:
IFU Cube 2
  • Use case: Photutils to automatically detect point sources and extract photometry
  • Data: ALMA 13CO data cubes.
  • Tools: specutils, spectral_cube, photutils.
  • Cross-instrument:

Help

If you uncover any issues or bugs, you can open a GitHub ticket. For faster responses, however, we encourage you to submit a JWST Help Desk Ticket: jwsthelp.stsci.edu

Contributing

Contributions are welcome from both the scientist and developer community. If you wish to contribute fixes or clarifications to existing notebooks, feel free to do so directly to this repository. If you wish to contribute new notebooks or major reworks of existing notebooks, we refer you to jdat_notebooks. For details on how to provide such contributions, see the contributing instructions.

The notebooks attempt to utilize a number of software packages supported by STScI, including Astropy, glue, ginga, photutils, specutils, astroimtools, imexam, jdaviz, asdf, gwcs, and synphot. Note jdaviz is STScI's JWST Data Analysis Visualization Tool, designed to be used with spectra, IFU cubes, and multi-object spectroscopy (MOS).