get_soss_traces

jwst.extract_1d.soss_extract.pastasoss.get_soss_traces(pwcpos, order, subarray='SUBSTRIP256', refmodel=None)[source]

Get the SOSS traces for a given input model and spectral order.

Parameters:
  • pwcpos (float) – The pupil wheel position angle provided in the FITS header under keyword PWCPOS. Values are expected to be within +/- 0.25 degrees of the commanded position (245.76 degrees).

  • order (int) – The spectral order for which to retrieve the traces.

  • subarray (str) – Name of subarray in use, typically ‘SUBSTRIP96’ or ‘SUBSTRIP256’.

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

Returns:

  • order (str) – The spectral order for which a trace is computed.

  • x (np.ndarray) – The x coordinates of the rotated points.

  • y (np.ndarray) – The y coordinates of the rotated points.

  • wavelengths (np.ndarray) – The wavelengths associated with the rotated points.