/jdat_notebooks

JWST Data Analysis Tools Notebooks

Primary LanguageJupyter Notebook

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.

Installation

You can view rendered versions of the notebooks, which require no special tools beyond your web browser.

To download and execute the notebooks, we recommend you clone this repository to your local computer. You can also click the "Download ZIP" option for the entire repository listed under the green "Code" button at the top of this page.

You can also download individual notebooks, but it is not as straight forward. This is because Git doesn't directly support downloading parts of the repository. However, in some web browsers, you should be able to navigate to your desired notebook, right click on the "RAW" formatting button, and download. There are also options to use wget or curl for advanced users.

Note, however, most notebooks have additional associated files in their folder, including a requirements document that lists packages necessary to run the notebooks. These packages can be installed using pip. The version dependencies are listed in the environment.yaml and in the requirements file in each notebook folder. You will need python version 3.8.10. We recommend the following command sequence:

% git clone https://github.com/spacetelescope/jdat_notebooks.git
% cd jdat_notebooks/notebooks/<whatever-notebook>
% conda create -n jdat-nb python=3.8.10
% conda activate jdat-nb
% pip install -r pre-requirements.txt (if necessary)
% pip install -r requirements.txt
% pip install jupyter
% jupyter notebook

If you locally cloned this repo before 5 Feb 2021

The primary branch for this repo has been transitioned from master to main. If you have a local clone of this repository and want to keep your local branch in sync with this repo, you'll need to do the following in your local clone from your terminal:

% git branch -m master main
% git fetch origin
% git branch -u origin/main main

If you are using a GUI to manage your repos you'll have to find the equivalent commands as it's different for different programs. Alternatively, you can just delete your local clone and re-clone!

Help

If you uncover any issues or bugs, you can open an issue on GitHub. 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 dat_pyinthesky. 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).