Repository navigation
Change time scale of J2000 to TT - #8594
Conversation
|
I think you are correct. It then begs the question is the julian strings in |
I've had this struggle in poliastro as well. USNO Circular 179 uses TT, but the JPL ephemerides (HORIZONS, SPICE) use TDB: In any case, either of those is better than UTC. I use J2000 as reference epoch a lot, and when you add large timedeltas to it you start getting warnings about future leap seconds, which doesn't happen in the other timescales.
I agree with @mhvk here, that |
|
Alright, I've updated this to do as you both suggested, @mhvk and @Juanlu001 and now J-strings (and J epochs that are floats) in This still leaves the question of whether we want a deprecation period. I'm willing to make a command decision there if the three of us agree in An alternative is to save the |
|
As I suggested in #8600 (comment) I've rolled this back to not include Since we ruled this a bug in #8600 it's backportable (although it definitely should come before #8600 for the backport to be sensible) |
|
The errors seem unrelated: |
|
@pllim - you mean #8600, right? In #8600 (comment) (and #8594 (comment)) I proposed we merge this as the coordinates changes (as I think in #8600 (comment) @mhvk agreed that at least part of this approach was better for coordinates), and then #8600 can be rebased on top of this to focus more on the And re: the test failures, I agree wit @Juanlu001 they are probably red herrings - it looks like the doc failure was unrelated (fixed in #8626) an the other one is a timeout so re-started the build just to be sure |
|
(note: the one CI error is a red herring as it's a doc problem in cosmology and unrelated) |
taldcroft
left a comment
There was a problem hiding this comment.
This looks good to me. I just added a whats-new-needed tag since I think there should be some high-level visibility above the change log.
I note that there will be a number of conflicts with #8600 since that goes the route of removing the explicit scale='utc' instead of replacing it with scale='tt'. I would have done it like in #8600 (remove and rely on default), but either way is OK.
Codecov Report
@@ Coverage Diff @@
## master #8594 +/- ##
==========================================
+ Coverage 86.93% 86.94% +<.01%
==========================================
Files 399 400 +1
Lines 59249 59329 +80
Branches 1100 1100
==========================================
+ Hits 51511 51586 +75
- Misses 7097 7102 +5
Partials 641 641
Continue to review full report at Codecov.
|
|
Updated as suggested by @taldcroft . Re:
My thinking is that it's better to be explicit here because that way people looking at it in coordinates will see the answer mainfestly instead of having to figure out the implicit meaning. But I think we should also fix it in |
|
(merged based on #8600 (comment) and approval) |
Change time scale of J2000 to TT
While reviewing #8394 I noticed that we have been using Jan 1, 2000 12:00 UTC as "J2000". It's not clear to me that this is the right thing to do. Rather I think it's supposed to be Jan 1, 2000 12:00 TT. This PR updates the default settings so that TT is used be default.
While it would be nice to have a deprecation period, it's not really clear to me that there's any way to do that without massive disruption, so this seems a safer bet than waiting until 4.0...
Two questions, though:
equinox='J200'because the latter is UTC. This is a bit non-trivial to change because it's violating the basic rule that "whatever you give as the equinox attribute gets passed through toTime". E.g.Time('J2000')yields the UTC, not the TT version (which is a defensible stance). I think I'm OK with that because honestly if you're using the string the TT vs UTC difference is probably not that big a deal. But we could add some logic to specifically set the scale to TT if the input value starts with 'J' if consistency is more important...cc @adrn @mhvk @Juanlu001 @StuartLittlefair