British Astronomical Association
Supporting amateur astronomers since 1890

Secondary menu

Main menu

Home Forums Computing
Terms of use

Heliocentric Julian date

6 posts / 0 new
Last post
jamestscreech's picture
Offline
Last seen: 2 weeks 2 days ago
Joined: 26/08/2015 - 14:59
Heliocentric Julian date
What is the algorithm for calculating Heliocentric Julian date from a given Julian date and object RA/Dec?
I would like this for a variable star application I'm writing.
James
Len Entwisle's picture
Offline
Last seen: 5 hours 50 min ago
Joined: 04/03/2014 - 11:41
Heliocentric Julian date

There is a calculator on the BAA Computing Section site here http://britastro.org/computing/applets_dt.html

nickjames's picture
Offline
Last seen: 36 min 28 sec ago
Joined: 12/10/2013 - 18:16
There are quite a few

There are quite a few examples of code around that convert between different timescales. Probably the best examples are the IDL source code here. Note that BJD is barycentric JD which, for most VS purposes, is the same as HJD. I think the difference only matters if you are trying to detect planets going around pulsars...

jamestscreech's picture
Offline
Last seen: 2 weeks 2 days ago
Joined: 26/08/2015 - 14:59
Inconsistent results

I've now compared 3 different resources for the calculation and they all come out different! I've tried the BAA applet, a sppreadsheet I found on the web (HeliocentricJulianDay.xls) and the ohio-state.edu web site. For a test I've used an observation of NR Cam at JD 2457388.40539.

BAA app -> 4.609 min (276.54 sec)
Spreadsheet -> 281.3 sec
ohio-state.edu -> 344.98 sec

The first two are less than 5sec different however the ohio site is over a minute off from the others. It would appear that they all use different methods of calculation that are not consistent! I'm wondering if there are issues with floating point rounding due to the number of significant figures required.

James

nickjames's picture
Offline
Last seen: 36 min 28 sec ago
Joined: 12/10/2013 - 18:16
I think the reason for the

I think the reason for the difference is that the two values of JD that you calculated are in different timescales. I assume that the BAA calculator calculates HJD in the UTC timescale whereas the Ohio site calculates it in TDB. At present TDB is around 68.2s ahead of UTC so a BJD(TDB) will be around 68s later than HJD(UTC). When talking about JD it is important to specify the timescale used. The difference between the Ohio and BAA times is 68.44s which agrees well.

John Mallett's picture
Offline
Last seen: 7 months 1 week ago
Joined: 26/11/2016 - 14:41
I need to convert JD to BJD, maybe a script.

I need an application (exe) that will convert JD(UTC) to BJD.  For very short period binary systems that may have other variations due to bodies in orbit.

The trouble is that the variations are hidden by the errors in time shift to BJD

John