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.

Issue with Julian Date Conversion of BC date?

See original GitHub issue

I was trying to find the time and angular separation for Venus and Jupiter for the famous ‘merging’ conjunction on June 17, 2 BC, and when I try to find it using skyfield, the date appeared off by 2 days using the de422.bsp ephemeris.

But after some investigation, I think this could be an issue converting the Julian Date. I say this because the conjunction was found at JD 1720860.3694220667 and I suspect this JD is sound. One online calculator reported this as June 17, 2 BC (the date I was expecting), but executing the following code:

import scipy.optimize
from skyfield.api import load, pi, tau, Topos

ts = load.timescale()
jd_conjunction = 1720860.3694220667
conjunc_time= ts.tt(jd=jd_conjunction)
conjunc_time_str = conjunc_time.utc_jpl()

print(f'Converted {jd_conjunction} to {conjunc_time_str}')

returns Converted 1720860.3694220667 to B.C. 0002-Jun-15 20:51:15.8826 UT

I will note the June 15 date does match the AAVSO converter (assuming year -1 = 2 BC), so it may be a common algorithm error on someone’s part (either skyfield and AAVSO share an error or other converters share an error). Most sky simulation software shows the conjunction on June 17, 2 BC.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
JuanCabcommented, Dec 11, 2020

Went ahead and checked, that was the problem, consider this issue closed.

1reaction
JuanCabcommented, Dec 11, 2020

Oh, of course… OK, I’ll take a look at it tomorrow, but now it makes more sense.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Julian Date Conversion Function Issue - SQLServerCentral
I have created a function that will take data stored in a Julian Date format and convert it to formatted date time datatype....
Read more >
Julian Date Converter - Longpela Expertise
Today's date is 19-Dec-2022 (UTC). Today's Julian Date is 22353 . Convert. Date or Julian Date: ...
Read more >
Converting Julian date to Calender date - Forums - IBM Support
I need to convert Julian date to our calendar date format like MM/DD/YYYY. ... number of days since the beginning of the Julian...
Read more >
convert julian date to normal date - Oracle Communities
Julian dates start at 01-JAN-4713 BC. Oracle interprets the Julian origin as 01-JAN-4712 BC, probably having to do with the non-existent year 0....
Read more >
Julian Date Converter
Julian dates (abbreviated JD) are simply a continuous count of days and fractions since noon Universal Time on January 1, 4713 BC (on...
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