get_soss_wavemaps
- jwst.extract_1d.soss_extract.pastasoss.get_soss_wavemaps(pwcpos, subarray='SUBSTRIP256', refmodel=None, padsize=None, spectraces=False, orders_requested=None)[source]
Get the SOSS wavelength maps and (optionally) spectraces.
- Parameters:
- pwcposfloat
The pupil wheel position angle, e.g. as provided in the FITS header under keyword PWCPOS. Values are expected to be within +/- 0.25 degrees of the commanded position (245.76 degrees).
- subarraystr, optional
The subarray name, one of ‘SUBSTRIP256’, ‘SUBSTRIP96’, or ‘FULL’.
- refmodelPastasossModel, optional
The reference model for the SOSS extraction. If not set, it will be fetched from CRDS.
- padsizeint, optional
The padding to apply to the wavelength maps.
- spectracesbool, optional
If True, return the interpolated spectraces as well.
- orders_requestedlist
A list of the spectral orders requested for extraction. If None, all orders in the reference file will be used.
- Returns:
- wavemapsndarray
The 2D wavemaps. Will have shape (n_orders, array_x, array_y) with orders 1, 2, etc. being the elements of the first dimension. Wavemaps for all orders defined in the reference file will be returned.
- tracesndarray, optional
The corresponding 1D traces (if
spectracesis True).