Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposed enhancement of extract1d step for NIRISS SOSS data #8398

Open
stscijgbot-jp opened this issue Mar 29, 2024 · 2 comments
Open

Proposed enhancement of extract1d step for NIRISS SOSS data #8398

stscijgbot-jp opened this issue Mar 29, 2024 · 2 comments

Comments

@stscijgbot-jp
Copy link
Collaborator

Issue JP-3588 was created on JIRA by Joseph Filippazzo:

BACKGROUND: For NIRISS SOSS data, the extract1d step of the pipeline uses (by default) the ATOCA algorithm, which is an optimal spectral extraction routine that disentangles the signals from the overlapping order 1 and order 2 traces. This routine is very sensitive to the wavelength value assigned to each pixel by the ‘wavemap' reference file and the location of the trace centers assigned by the ‘spectrace’ reference file. 
 
PROBLEM: These reference files assume that the pupil wheel for the GR700XD grism is in its nominal position, dispersing the spectra onto the same detector pixels each time. However, the SOSS team’s analysis has shown that SOSS observations exhibit a range of pupil wheel positions (recorded as the PWCPOS value in the FITS header) that do not align with the nominal positions represented in the CRDS reference files.
 
SOLUTION: To account for this misalignment when reducing SOSS data, the SOSS team has developed the PASTASOSS Python package (https://github.com/spacetelescope/pastasoss) that transforms the pixel wavelength values and trace positions to reflect those seen in on-sky observations at a variety of PWCPOS values. We have created a pull request of the jwst pipeline (#8397) which incorporates this package to solve our problem. It reads in the PWCPOS value from an input JWST DataModel and saves the appropriate ‘wavemap’ and ‘spectrace’ reference files on the fly to perform the optimal extraction. It then updates the locations of the corrected reference files in the DataModel before performing the 1D spectral extraction with the ATOCA algorithm. All input requirements and output data products remain unaffected by this change and the ‘override_wavemap' and ‘override_spectrace’ keyword arguments still function as intended. 

@stscijgbot-jp
Copy link
Collaborator Author

Comment by David Law on JIRA:

Thanks Joseph Filippazzo ; let's discuss at the JP meeting next week.  One quick comment though from looking at the pull request- generally the pipeline has tried to avoid introducing new dependencies, so importing directly from pastasoss would probably not be ideal.

@stscijgbot-jp
Copy link
Collaborator Author

Comment by Nestor Espinoza on JIRA:

Hi David! We understand, but we have worked very hard on PASTASOSS and we are convinced is the best long-term solution possible for SOSS needs. PASTASOSS is also an STScI-supported tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant