API
Public Step API
jwst.extract_1d.extract_1d_step Module
Extract 1-D spectra from JWST spectroscopic data.
Classes
|
Extract a 1D spectrum from 2D data. |
Complete Developer API
jwst.extract_1d.apply_apcorr Module
Functions
|
Select appropriate aperture correction class based on input data model. |
Classes
|
Base class for aperture correction classes. |
|
Produce and apply aperture correction for input data with pixel phase. |
|
Aperture correction class for spectra produced from an extraction aperture radius. |
|
Default aperture correction class for use with most spectroscopic modes. |
jwst.extract_1d.extract Module
Functions
|
Extract all 1-D spectra from an input model. |
|
Read the EXTRACT1D reference file. |
|
Read the APCORR reference file. |
|
Get extraction parameter values. |
|
Create a spatial profile for box extraction. |
|
Determine the nominal center of an aperture. |
|
Shift the nominal extraction parameters by a pixel offset. |
|
Define an extraction aperture from input parameters. |
|
Extract data for one slit, or spectral order, or integration. |
|
Extract spectra from an input model and append to an output model. |
jwst.extract_1d.extract1d Module
Functions
|
Extract the spectrum, optionally subtracting background. |
jwst.extract_1d.ifu Module
Functions
|
Extract a 1D spectrum from an IFU cube. |
|
Read extraction parameters for an IFU. |
|
Perform 1D extraction for IFU data. |
|
Get the location of the spectrum, based on the WCS. |
|
Convert celestial coordinates to Cartesian. |
|
Get celestial coordinates and wavelengths. |
|
Check for NaNs in the wavelength array. |
Create masks for target and background. |
|
|
Compute the mean location of the target. |
|
Apply source position offset to target or background for ref image. |
|
Sigma clip the extraction region. |
jwst.extract_1d.psf_profile Module
Functions
|
Create a spatial profile from a PSF reference. |
jwst.extract_1d.soss_extract.atoca Module
Main classes for ATOCA (Darveau-Bernier 2021, in prep.).
ATOCA:
Algorithm to Treat Order ContAmination (English)
Algorithme de Traitement d’Ordres ContAmines (French)
Classes
|
Too few valid pixels in a spectral order. |
|
Run the ATOCA algorithm. |
jwst.extract_1d.soss_extract.atoca_utils Module
Utilities for jwst.extract_1d.soss_extract.atoca.
Functions
|
Generate indices on the oversampled wavelength grid. |
|
Transform a 2D array |
|
Compute upper and lower boundaries of a pixel map, given the pixel central value. |
|
Create an oversampled version of the input 1D wavelength grid. |
|
Define a wavelength grid based on the wave_map and trace_profile. |
|
Define a wavelength grid based on wave_map, trace_profile, and optional user wave_range. |
|
Build an irregular oversampled grid needed to reach a given precision when integrating. |
|
Create an interpolator for the throughput values. |
|
Return a convolution matrix. |
|
Return the first derivative operator based on grid. |
|
Solve sparse matrix equation A.x=b, reverting to least-squared solver when spsolve fails. |
Classes
|
Picklable interpolator for SOSS throughput. |
|
The JWST kernel. |
|
Store results of Tikhonov tests for different factors. |
|
Use Tikhonov regularization to solve the ill-posed problem A.x = b. |
jwst.extract_1d.soss_extract.pastasoss Module
Functions
|
Get the SOSS traces for a given input model and spectral order. |
|
Get the SOSS wavelength maps and (optionally) spectraces. |
Retrieve the default PASTASOSS reference file. |
jwst.extract_1d.soss_extract.soss_boxextract Module
Functions
|
Return the weights of a box aperture given the centroid and the width of the box in pixels. |
|
Perform a box extraction. |
|
Estimate pixel error empirically using error on nearby pixel values in data. |
jwst.extract_1d.soss_extract.soss_extract Module
Functions
|
Prepare the reference files for the extraction engine. |
|
Run the spectral extraction on NIRISS SOSS data. |
Classes
|
Model of detector properties for the ATOCA algorithm for a single spectral order. |
|
Class to handle extraction of a single integration. |
jwst.extract_1d.soss_extract.soss_syscor Module
Functions
|
Compute a column-wise background for a SOSS observation. |
|
Build mask of pixels containing most of the flux. |
jwst.extract_1d.source_location Module
Functions
|
Calculate the effective middle of the spectral region. |
|
Get the cross-dispersion location of the spectrum, based on the WCS. |
|
Calculate a source trace from WCS. |
|
Estimate a nod pair location from the WCS. |
jwst.extract_1d.spec_wcs Module
Functions
|
Assign a WCS for sky coordinates and a table of wavelengths. |