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

Twozone extraction with BACKCORR=OMIT #236

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jotaylor
Copy link
Contributor

@jotaylor jotaylor commented Mar 25, 2024

CalCOS does not work when using the TWOZONE extraction method and BACKCORR set to OMIT (see #183 ). These changes enable this combination to be used correctly.

Testing was performed on dataset lcox08k2q. Both segment corrtags were calibrated like so:

  1. v3.4.8, with XTRCTALG=TWOZONE and BACKCORR=PERFORM
  2. v3.4.8, with XTRCTALG=TWOZONE and BACKCORR=OMIT
  3. fork version, with XTRCTALG=TWOZONE and BACKCORR=PERFORM
  4. fork version with XTRCTALG=TWOZONE and BACKCORR=OMIT

As expected, test case 2 failed. Cases 1 and 3 yielded identical x1ds. Case 4 did not crash, and produced a reasonable x1d. The only differences between cases 1/3 and 4 stem from the lack of a background correction in case 4. Using the difference between the NET arrays in cases 4 and 1/3, let's call this NET_DIFF, this is nearly identical to the BACKGROUND array in case 1/3. The maximum difference between NET_DIFF and case 1/3 BACKGROUND is on the order of e-5, and average difference is e-7 (see attached plot).

This seems to suggest that the only difference between case 1/3 & 4 is due to the absence of background correction in case 4, as expected.

comparison

@jotaylor jotaylor requested a review from a team as a code owner March 25, 2024 18:08
@Rplesha
Copy link
Collaborator

Rplesha commented Apr 15, 2024

Related to https://jira.stsci.edu/browse/COSPIP-24 FYI!

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

Successfully merging this pull request may close these issues.

None yet

2 participants