2D Spectrum Format#

Load two-dimensional spectroscopic data.

Overview#

The 2D Spectrum format is used for loading spectroscopic data where the flux varies along two dimensions - typically the dispersion (wavelength) direction and the spatial (cross-dispersion) direction.

Usage#

import jdaviz
jdaviz.show()

# Load a 2D spectrum
jdaviz.load('spectrum2d.fits', format='2D Spectrum')

Data Requirements#

The data should be a 2D array where:

  • One axis represents the spectral (dispersion) direction

  • The other axis represents the spatial (cross-dispersion) direction

  • Pixel values represent flux measurements

Common examples include long-slit spectroscopy and grism spectroscopy data.

Supported File Formats#

  • FITS files with 2D spectral images

  • JWST pipeline products (s2d files)

  • HST grism data

UI Access#

v0.1
Click toolbar icons to toggle different sidebars
Data Menu

Control data and subset layer order and visibility for each viewer. Toggle layer visibility, reorder layers by dragging, and manage which data appears in the viewer.

dm = jd.viewers[viewer].data_menu

See Also#