Time("J2000") and equivalents should be equal
See original GitHub issueI noticed this behaviour:
In [21]: t0 = time.Time("J2000", scale="tdb").replicate("iso"); t0
Out[21]: <Time object: scale='tdb' format='iso' value=2000-01-01 12:00:00.000>
In [22]: t0.jd1, t0.jd2
Out[22]: (2400000.5, 51544.5)
In [23]: t0.unix
Out[23]: 946727935.8160995
In [25]: t1 = time.Time("2000-01-01 12:00:00", scale="tdb").replicate("iso")
Out[25]: <Time object: scale='tdb' format='iso' value=2000-01-01 12:00:00.000>
In [26]: t1.jd1, t1.jd2
Out[26]: (2451544.5, 0.5)
In [27]: t1.unix
Out[27]: 946727935.8160994
In [29]: t1 - t0
Out[29]: <TimeDelta object: scale='tdb' format='jd' value=0.0>
In [30]: _.sec
Out[30]: 0.0
In [31]: t1.unix - t0.unix
Out[31]: -1.1920928955078125e-07
This is giving absolute differences of 1e-7. This difference may or may not be important depending on the specific application, but in any case are they expected? If yes, should they be documented? If not, what is going wrong?
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (13 by maintainers)
Top Results From Across the Web
J2000 conversion to Position of date
Having spent an inordinate amount of time comparing the LBR values of Meeus ... I would like to convert the position for J2000...
Read more >How to convert J2000 time to UTC in python? - Stack Overflow
If you really mean J2000, it is defined as 12:00 January 1, 2000, terrestrial time. This is equivalent to 11:58:56.171 UT1.
Read more >About NED | NASA/IPAC Extragalactic Database
CONVERSION OF ASTRONOMICAL COORDINATES TO J2000.0, METHODS FOR IPAC USE As ... J2000 (or equivalent to J1949.99979 in time scale only; more than...
Read more >Astronomical Coordinates - ASCOM - Standards for Astronomy
The term "JNow", unknown in professional circles, is confusing, because the "J" implies that JNow is the "today" equivalent of "J2000".
Read more >SPICE Time Subsystem - NASA / NAIF
Ephemeris time is given in terms of seconds past a reference epoch. The reference epoch used throughout the Toolkit is the epoch J2000...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks @pllim, @mhvk. I might fix this myself this week if I have the time.
Attempt to fix: https://github.com/astropy/astropy/pull/6653