teas

Tools for the Extraction and Analysis of Spectra from JWST observations


Keywords
python, astronomy, jwst, spectroscopy
License
MIT
Install
pip install teas==0.1.1

Documentation

teas - Tools for the Extraction and Analysis of Spectra from JWST observations

PyPI - Version Powered by Astropy Powered by STScI

teas is a package of utilities to analyze spectra from the James Webb Space Telescope. It provides tools to align and process JWST data products, extract 1D spectra from 3D integral-field-unit data cubes from NIRSpec and MIRI MRS, and create images of observed regions with NIRCam observations.

Features:

  • Extract 1D spectra from 3D IFU data from NIRSpec and MIRI MRS
  • Create images of spectrally imaged regions using NIRCam data
  • Align and reproject the WCS of data cubes and images
  • Find the field of view of NIRSpec or MIRI MRS data products within NIRCam images
  • Fit the continuum using either an anchors-and-splines fitting or linear regression
  • Stitch together spectra
  • Shift, scale, and normalize spectrum flux

Installation

It is recommended to install teas in a new environment to avoid version conflicts with other packages. To do this, run:

conda create --name teas-env python=3.9

Then, activate the environment and install the package. The latest released version can be installed with pip:

conda activate teas-env
pip install teas --upgrade