Learn R Programming

modiscloud (version 0.14)

yearmonthday_to_julianday: Get the julian day for a year/month/day date

Description

This function uses the date package's mdy.date function to get the Julian day (count of the day in the year, from 1-365, or 1-366 for leap years) from the input year, month, and day.

Usage

yearmonthday_to_julianday(year, month, day)

Arguments

year
as numeric, 4 digits
month
as numeric, 1-2 digits
day
as numeric, 1-2 digits

Value

julian_day, the julian day between 1-365 or 1-366 (for leap years)

References

Ackerman S, Frey R, Strabala K, Liu Y, Gumley L, Baum B and Menzel P (2010). "Discriminating clear-sky from cloud with MODIS algorithm theoretical basis document (MOD35)." MODIS Cloud Mask Team, Cooperative Institute for Meteorological Satellite Studies, University of Wisconsin - Madison. .

GoldsmithMatzkeDawson2013

See Also

yearday_to_date

Examples

Run this code
year=2011; month=06; day=15
yearmonthday_to_julianday(year, month, day)

Run the code above in your browser using DataLab