question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Time("J2000") and equivalents should be equal

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
astrojuanlucommented, Oct 2, 2017

Thanks @pllim, @mhvk. I might fix this myself this week if I have the time.

0reactions
astrojuanlucommented, Oct 3, 2017
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found