get_wavelengths
- jwst.lib.wcs_utils.get_wavelengths(model, exp_type='', order=None, use_wavecorr=None)[source]
Read or compute wavelengths.
- Parameters:
- model
JwstDataModel The input science data, or a slit from a
MultiSlitModel.- exp_typestr
The exposure type. This is only needed to check whether the input data are WFSS.
- orderint
Spectral order number, for NIRISS SOSS only.
- use_wavecorrbool
Use the corrected wavelengths in the wavelength attribute or recompute uncorrected wavelengths from the WCS.
- model
- Returns:
- wl_array2-D ndarray
An array of wavelengths corresponding to the data in
model.