<< dat_cal2j2k Utilities dat_cal2mjd >>

scilib_geo >> Utilities > dat_cal2jd

dat_cal2jd

this Function converts a calender date to Julian Date (JD).

Calling Sequence

jd = dat_cal2jd(cal)
jd = dat_cal2jd(year, month, day [, hour, minute, second])

Parameters

cal

date as vector (nx3 oder nx6) or matrix of nx3 or nx6 vectors.

year

year, integer (1xn)

month

month, integer (1xn)

day

day, integer (1xn)

hour, minute, second

time in hours (minutes can be contained as decimal), minues and seconds (1xn). [year; month; day; hour; minutes; second]

jd

Julian Date (JD) (1xn)

Description

Converts a calendar date in a Julian Date (JD).

Attention: dates before 4. Okt. 1582 24h are counted to the julian calendar and after to the gregorian calendar, which means they are after the 15. Okt 1582.

Examples

JD = dat_cal2jd(y,m,d,ut1)
JD = dat_cal2jd([y;m;d])
JD = dat_cal2jd(datevec(now())')

See Also

Bibliography

Meeus, J.: Astronomical Algorithms, Willmann-Bell, Richmond 2000 (2nd ed., 2nd printing).

Authors


Report an issue
<< dat_cal2j2k Utilities dat_cal2mjd >>