get_soss_wavemaps

jwst.extract_1d.soss_extract.pastasoss.get_soss_wavemaps(pwcpos, subarray='SUBSTRIP256', refmodel=None, padsize=None, spectraces=False)[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.

Returns:
wavemapsndarray

The 2D wavemaps. Will have shape (2, array_x, array_y) with orders 1 and 2 being the first and second elements, respectively.

spectracesndarray, optional

The corresponding 1D spectraces (if spectraces is True).