extract2d
- jwst.extract_2d.extract_2d.extract2d(input_model, slit_names=None, source_ids=None, source_ra=None, source_dec=None, max_sep=None, reference_files=None, grism_objects=None, tsgrism_extract_height=None, wfss_extract_half_height=None, extract_orders=None, mmag_extract=None, nbright=None)[source]
Extract rectangular cutouts around each spectrum from a spectral dataset.
- Parameters:
- input_model
ImageModelorCubeModel Input data model. May be updated in place with a “SKIPPED” status, if a new model cannot be created.
- slit_nameslist of str or int
Slit names to be processed.
- source_idslist of str or int
Source IDs to be processed.
- source_ralist of float
Source right ascensions to be processed (WFSS modes only).
- source_declist of float
Source declinations to be processed (WFSS modes only).
- max_sepfloat
Radius in arcseconds within which
source_raandsource_decwill be matched to sources in the catalog. If no source is found within this radius, a warning will be emitted and no source will be extracted corresponding to that RA, Dec pair. (WFSS modes only.)- reference_filesdict
Reference files.
- grism_objectslist
A list of grism objects.
- tsgrism_extract_heightint
Cross-dispersion extraction height to use for time series grisms. This will override the default which for NRC_TSGRISM is a set size of 64 pixels.
- wfss_extract_half_heightint
Cross-dispersion extraction half height in pixels (WFSS modes only). Overwrites the computed extraction height.
- extract_orderslist
A list of spectral orders to be extracted.
- mmag_extractfloat
Minimum (faintest) ABmag to extract (WFSS modes only).
- nbrightfloat
Number of brightest objects to extract (WFSS modes only).
- input_model
- Returns:
- output_model
MultiSlitModelorSlitModel Datamodel containing spectral cutouts.
- output_model