From d54fe7c1f704a63824c5bfa0ece65245572e9b27 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 4 Mar 2015 21:21:30 -0500 Subject: Initial commit --- src/slalib/sun67.htx/node28.html | 128 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 src/slalib/sun67.htx/node28.html (limited to 'src/slalib/sun67.htx/node28.html') diff --git a/src/slalib/sun67.htx/node28.html b/src/slalib/sun67.htx/node28.html new file mode 100644 index 0000000..33bc93d --- /dev/null +++ b/src/slalib/sun67.htx/node28.html @@ -0,0 +1,128 @@ + + + + +SLA_CALDJ - Calendar Date to MJD + + + + + + + + + + + + +

+ +next + +up + +previous +
+ Next: SLA_CALYD - Calendar to Year, Day +
+Up: SUBPROGRAM SPECIFICATIONS +
+ Previous: SLA_CAF2R - Deg,Arcmin,Arcsec to Radians +

+

+

SLA_CALDJ - Calendar Date to MJD +   +

+
+
ACTION: +
Gregorian Calendar to Modified Julian Date, with century default. +
CALL: +
CALL sla_CALDJ (IY, IM, ID, DJM, J) +

+

+
GIVEN: +
+
+ + + + + +
IY,IM,IDIyear, month, day in Gregorian calendar
+

+
RETURNED: +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
DJMDmodified Julian Date (JD-2400000.5) for $0^{\rm h}$
JIstatus:
0 = OK
1 = bad year (MJD not computed)
2 = bad month (MJD not computed)
3 = bad day (MJD computed)
+

+
NOTES: +
+
1. +
This routine supports the century default feature. +Acceptable years are: +
    +
  • 00-49, interpreted as 2000-2049, +
  • 50-99, interpreted as 1950-1999, and +
  • 100 upwards, interpreted literally. +
+ For 1-100AD use the routine sla_CLDJ instead. +
2. +
For year nBC use IY = -(n-1). +
3. +
When an invalid year or month is supplied (status J = 1 or 2) + the MJD is not computed. When an invalid day is supplied + (status J = 3) the MJD is computed. +
+

+ +next + +up + +previous +
+ Next: SLA_CALYD - Calendar to Year, Day +
+Up: SUBPROGRAM SPECIFICATIONS +
+ Previous: SLA_CAF2R - Deg,Arcmin,Arcsec to Radians +

+

+

+SLALIB --- Positional Astronomy Library
Starlink User Note 67
P. T. Wallace
12 October 1999
E-mail:ptw@star.rl.ac.uk
+
+ + -- cgit