API

Public Step API

jwst.extract_2d.extract_2d_step Module

Perform extract_2d calibration step.

Classes

Extract2dStep([name, parent, config_file, ...])

Extract 2D spectral cutouts.

Complete Developer API

jwst.extract_2d.extract_2d Module

Functions for 2D extraction.

Functions

extract2d(input_model[, slit_names, ...])

Extract rectangular cutouts around each spectrum from a spectral dataset.

jwst.extract_2d.grisms Module

Functions for 2D extraction of grism spectra.

Functions

extract_tso_object(input_model[, ...])

Extract the spectrum for a NIRCam TSO grism observation.

extract_grism_objects(input_model[, ...])

Extract 2D boxes around each objects spectra for each order.

compute_dispersion(wcs)

Compute the pixel dispersion.

compute_tso_wavelength_array(slit)

Compute the wavelength array for a slit with WCS.

compute_tso_offset_center(input_model, ...)

Accurately compute the offset between the source position and aperture center.

compute_wfss_wavelength(slit)

Compute the wavelength array for a slit with WCS.

jwst.extract_2d.nirspec Module

Functions for 2D extraction of NIRSpec fixed slits or MOS slitlets.

Functions

nrs_extract2d(input_model[, slit_names, ...])

Perform extract_2d calibration for NIRSpec exposures.

select_slits(open_slits, slit_names, source_ids)

Select the slits to process.

process_slit(input_model, slit)

Construct a data model for each slit.

set_slit_attributes(output_model, slit, xlo, ...)

Set the slit attributes.

offset_wcs(slit_wcs)

Prepend a shift transform to the slit WCS to account for subarrays.

extract_slit(input_model, slit)

Extract a slit from a full-frame image.

get_source_xpos(slit)

Compute the source position within the slit for a NIRSpec fixed slit.

Classes

DitherMetadataError

Slit object does not have the required dither attribute, or the offsets are not numeric.