-
Notifications
You must be signed in to change notification settings - Fork 44
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
Possible bug in Hipparcos calculations regarding decimal years and leap years #372
Comments
I think it would be more correct to convert 1991.25 from decimal year to MJD, and then add offsets multiplied by one Julian year (365.25). But I'm not positive. |
One more note: I believe the Hipparcos catalog epoch is actually "J1991.25", which isn't technically a decimal year either:
Gives an answer that is 7 hours different than Time(1991.25, format="decimal year"). |
Hey! Thanks so much for pointing this out (and sorry it's taken me so long to dig into it). I'm digging around for more info, but so far I'll share:
Let me know if you've found any more info! |
Ok, more bits of (confusing) info-- the README of the JavaTool 2021 download looks like this. Unit of epoch is just given as yr-1991.25 8 - 14 F7.4 yr-1991.25 EPOCH Epoch |
Whoops, just realized you said exactly that in your first comment. Sorry for restating the obvious! |
More random info dumping of sources: on page 288 of the 2007 Hipparcos 2 reduction book it mentions "where t is measured in years of 365.25 days, counted from 1991.25." The context is a little different, but that's pretty good evidence for me that this is all defined in Julian years as you suggested! I'm going to make that change in my code and see how much it affects some of our tests. |
One potentially important clarification we can make, however-- the proper motions as constrained above (and as measured by hipparcos, presumably) are in mas/julian yr, not mas/yr. That gets reasonably significant over time. |
Thanks for looking at this! Since I made the issue, I tracked down a couple more details.
Very nice! I agree it should have almost no difference for these kind of fits. I do wonder if might have a slight impact for orbits with periods < the Hipparcos measurement time, e.g. a couple years. But I'm not aware of any test cases for this unfortunately. |
Describe the bug
I'm working on hipparcos modelling in my own code and ran into this problem. I thought I'd check how orbitize! does it, but I think we might both have the same error.
The hipparcos IAD residual data gives times in units of "1991.25 + year". In the hipparcos file, currently the code does:
The problem is I don't think that the offsets computed as 1991.25 + fractional_year should be considered a decimal year time. This is an issue only for scans between 1992 and 1993, because 1992 is a leap year with an extra day (366 days instead of 365).
cc @semaphoreP
The text was updated successfully, but these errors were encountered: