-
Notifications
You must be signed in to change notification settings - Fork 31
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
NIRISS SUBSTRIP96 location is incorrect #362
Comments
@tonysohn Can you double check this, when you have a chance? The highlighted entry above matches what I see from the last NIRISS update I can find (JSOCOPS-200). |
Sure, I'll check this and get back to you here. |
I've consulted with @goudfroo who worked on the SIAF parameters and got answers as well as some useful info. It turns out that the current NIRISS PRD SIAF is not the issue here. The SIAF parameters for the SOSS subarrays, including SUBSTRIP96 and SUBSTRIP256, are not so straightforward to interpret since they refer to the part of the detector for which the spectral traces on the sky are projected by the GR700XD grism (which has significant optical power as you know) onto the subarrays. This is also explained in the following j-docs page (see paragraph starting with "Note that..."): I think the proper way to handle this issue is to not hard-code the 10 pixels Y-offset in the code, but to read in the parameters from the part of the PRD Subarrays file. These can be found in e.g., PRDOPSSOC-068/subarraysXML/subarraysXML/NIRISS_Subarrays.xml. I've copied and pasted the relevant parts for SUBSTRIP96 and 256 below:
Note that the subarray Y-corners are correctly defined with offsets of +10 for SUBSTRIP96 vs SUBSTRIP256 as @hover2pi mentioned. Changing the code as suggested above will probably require working in the full-frame coordinates frame, and then converting back into the subarray coordinates, but this way, it wouldn't rely on the cryptic SIAF parameters. |
@tapastro Does Tony's proposed fix work for you? |
A refactor of NIRISS SOSS code in the
jwst
repository found a discrepancy with the subarray definition for SUBSTRIP96:https://github.com/spacetelescope/jwst/pull/9000/files#r1909498841
@hover2pi Can you assist in correcting this entry?
pysiaf/pysiaf/prd_data/JWST/PRDOPSSOC-068/SIAFXML/SIAFXML/NIRISS_SIAF.xml
Lines 3725 to 3757 in 0834e98
The text was updated successfully, but these errors were encountered: