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:
  • pwcpos (float) – 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).

  • subarray (str, optional) – The subarray name, one of ‘SUBSTRIP256’, ‘SUBSTRIP96’, or ‘FULL’.

  • refmodel (PastasossModel, optional) – The reference model for the SOSS extraction. If not set, it will be fetched from CRDS.

  • padsize (int, optional) – The padding to apply to the wavelength maps.

  • spectraces (bool, optional) – If True, return the interpolated spectraces as well.

Returns:

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

  • spectraces (np.ndarray, optional) – The corresponding 1D spectraces (if spectraces is True).