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

Mixing Nod and Shuffle with ClassicEqual leads to flux calibration issues #11

Open
tjgalvin opened this issue Feb 23, 2016 · 0 comments

Comments

@tjgalvin
Copy link

I recently found an issue with my data that was ultimately caused by an incorrect flux calibration. My science sources were observed with nod and shuffle (n&s) where my observation of the standard star was made with ClassicEqual (CE).

The parameters of the last n&s are still written to the header of the CE exposure. Although other fields correctly reflect a n&s was not used, the pipeline does not check these. When the ns flag is set in the reduce_red/blue_data scripts, the standard star CE exposures are treated as n&s. Since no checks are made to the header, in particular the WIFESOBS field, the EXPTIME is re-calculated using the n&s parameters (see pywifes.py line 1813). Consequently, when extract_wifes_stdstar from wifes_calib.py is executed, it pulls out the EXPTIME based on the n&s parameters and scales the observed flux incorrectly.

The fix I have implemented for my data was to check WIFESOBS in the extract_wifes_stdstar function to ensure that a exposure was n&s before assigning exptime, otherwise it used the exptime from the original header.

See the pull request #12

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

No branches or pull requests

1 participant