-
Notifications
You must be signed in to change notification settings - Fork 47
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
Invalid AIRMASS in fit header #1345
Comments
I could see two different options:
|
The least intrusive approach would be option 2, as it’s currently implemented this way:
Currently, we calculate airmass for every frame. If we update the air_mass function, no further modifications are needed. That said, if there’s a bad header, the new airmass calculation in EXOTIC may not match the airmass values in the other headers, potentially creating an 'out-of-distribution' value. In this case, we could argue that recalculating the airmass for all FITS files might be a better approach to ensure consistency across all airmass measurements. This assumes we consider our calculation more accurate than the values in the headers (except for the ones with clearly incorrect values). |
@rzellem which way would you prefer? |
@ivenzor - what do you prefer? :) another way to think about it - how often do we get a bad airmass error? I've only seen it once to date - for that one user, were all of their airmass values bad or just a few? if all, then we'd need to be safe and recalculate for all images, if only a few, then we only need to recalculate for the few that have "bad" ones |
There was a recent discussion regarding AIRMASS values in FITS headers. A header had an AIRMASS value of -1, which was read by EXOTIC without checks.
We could add basic checks in the
air_mass
function for bothAIRMASS
andTELALT
. Something like this:@tamimfatahi, let me know if this makes sense to you; if it does, I can work on a PR.
The text was updated successfully, but these errors were encountered: