Python interfaces for 1D Extraction

jwst.extract_1d.extract Module

Functions

run_extract1d(input_model[, ...])

Extract all 1-D spectra from an input model.

read_extract1d_ref(refname)

Read the extract1d reference file.

read_apcorr_ref(refname, exptype)

Read the apcorr reference file.

get_extract_parameters(ref_dict, ...[, ...])

Get extraction parameter values.

box_profile(shape, extract_params, wl_array)

Create a spatial profile for box extraction.

aperture_center(profile[, dispaxis, middle_pix])

Determine the nominal center of an aperture.

shift_by_offset(offset, extract_params[, ...])

Shift the nominal extraction parameters by a pixel offset.

define_aperture(input_model, slit, ...)

Define an extraction aperture from input parameters.

extract_one_slit(data_model, integration, ...)

Extract data for one slit, or spectral order, or integration.

create_extraction(input_model, slit, ...[, ...])

Extract spectra from an input model and append to an output model.

jwst.extract_1d.extract1d Module

Functions

extract1d(image, profiles_2d, variance_rn, ...)

Extract the spectrum, optionally subtracting background.

jwst.extract_1d.ifu Module

Functions

ifu_extract1d(input_model, ref_file, ...[, ...])

Extract a 1D spectrum from an IFU cube.

jwst.extract_1d.source_location Module

Functions

middle_from_wcs(wcs, bounding_box, dispaxis)

Calculate the effective middle of the spectral region.

location_from_wcs(input_model, slit[, ...])

Get the cross-dispersion location of the spectrum, based on the WCS.

trace_from_wcs(exp_type, shape, ...)

Calculate a source trace from WCS.

nod_pair_location(input_model, middle_wl)

Estimate a nod pair location from the WCS.

jwst.extract_1d.psf_profile Module

Functions

psf_profile(input_model, trace, wl_array, ...)

Create a spatial profile from a PSF reference.