Extract1d currently uses a rectangular extraction box by default, which works well for resampled data, but is not always well-suited for unrectified data. BOTS data for example is not resampled, so 1D extraction of the curved M and H grating traces can miss parts of the source spectra.
We would like to add an option for extracting spectra from unrectified NIRSpec data. Ideally this would include setting an automatic trace for extraction (e.g., using WCS or trace fitting) and update extract1d to extract wavelengths in addition to fluxes.
Issue JP-3794 was created on JIRA by Christian Hayes:
Extract1d currently uses a rectangular extraction box by default, which works well for resampled data, but is not always well-suited for unrectified data. BOTS data for example is not resampled, so 1D extraction of the curved M and H grating traces can miss parts of the source spectra.
We would like to add an option for extracting spectra from unrectified NIRSpec data. Ideally this would include setting an automatic trace for extraction (e.g., using WCS or trace fitting) and update extract1d to extract wavelengths in addition to fluxes.