topJULDAY Calendar
Return value
the Julian Day Number (which begins at noon) of the specified calendar date.
If Hour, Minute, and Second are not specified, then the result will be a
long integer, otherwise the result is a double precision floating point
number.
Parameters
MONTH
in
required
DAY
in
required
YEARin
in
required
Hour
in
optional
default: 12
Minute
in
optional
default: 0
Second
in
optional
default: 0
Keywords
NDAYSPM
default: 30
Version history
Version
$Id: julday.pro 137 2006-07-12 09:33:44Z smasson $
History
Translated from "Numerical Recipies in C", by William H. Press,
Brian P. Flannery, Saul A. Teukolsky, and William T. Vetterling.
Cambridge University Press, 1988 (second printing).
AB, September, 1988
DMS, April, 1995, Added time of day.
Eric Guilyardi, June 1999
Added key_work ndayspm for fixed number of days per months
CT, April 2000, Now accepts vectors or scalars.
Sebastien Masson, Aug. 2003
fix bug for negative and large values of month values
eg. julday(349,1,1970)
Sebastien Masson, May 2006, add diferent calendat with key_caltype
(variable of the common file cm_4cal)
Known issues
Restrictions
The Result will have the same dimensions as the smallest array, or
will be a scalar if all arguments are scalars.
Accuracy using IEEE double precision numbers is approximately
1/10000th of a second, with higher accuracy for smaller (earlier)
Julian dates.
Other attributes
Uses routines
cm_4cal