CalcHJD
The CalcHJD function calculates the Heliocentric Julian Date using the date and time plus the right ascension and declination of the object. The date and time are specified in Universal Time ("UT", also known as GMT). To calculate the "normal", or geocentric Julian Date, use CalcJD.
nJD = CalcHJD( sDate, sTime. sRA, sDec )
sDate, sTime are the UT date and time
strings to convert to Julian Date.
sRA and
sDec are the right ascension and
declination of the object.
nJD is the
Julian Date (e.g., 2441552.645325).
To calculate the "normal", or geocentric Julian Date, use CalcJD. The date, time, RA, and DEC may be specified in a very relaxed format. The simplest cases are shown in the example below.
The following script converts UT date and time, right ascension, and declination to Heliocentric Julian Date:
|
-- 17 June 1999 UT |
|
-- 01:01:59.0 UT |
|
-- RA: 18h 42m 43.42s |
|
-- Dec: 63 degrees 35' 06.1" |
|
-- calculate the HJD |
|
-- Result: JD = 2451346.54326 |
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics,
Inc. All Rights Reserved.