julday {clim.pact}R Documentation

Converts from month, day, and year to Julian days

Description

The function computes Julian days from month, day, and year. The code is based on the algortithm from Press et al. (1989), "Numerical Recipes in Pascal", Cambridge, p. 10. See also chron and date for similar functions. This function was included to avoid the dependency to the chron and date packages. See also caldat.

Usage

julday(mm,id,iyyy)

Arguments

mm month.
id day.
iyyy year.

Value

real

Author(s)

R.E. Benestad

Examples

julday(1,1,1)                       # 1721424
julday(1,1,1970)                    # 2440588
julday(9,4,2003)                    # 2452887
julday(9,4,2003)-julday(1,1,1970)   # 12299
julday(9,4,2003)-julday(1,1,2003)   # 246
julday(1,1,2003)-julday(1,1,2002)   # 365
julday(1,1,2001)-julday(1,1,2000)   # 366

[Package clim.pact version 2.1-5 Index]