Learn R Programming

modiscloud (version 0.14)

make_POSIXct_date: Take year, month, day, hourmin, convert to POSIXct

Description

Make a standard-formatted date.

Usage

make_POSIXct_date(year, month, day, hourmin, timezone_txt = "UTC")

Arguments

year
calendar year
month
number of the month (1-12)
day
number of the day (1-31)
hourmin
a string (derived from MODIS filename) with HHSS (hours, seconds)
timezone_txt
the timezone; default 'UTC', your results may vary for the other timezones R knows about

Value

POSIX_ct_date, a POSIXct-formatted date

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

get_date_from_POSIXct

get_dates_from_POSIXct

as.POSIXct

Examples

Run this code
# Example use of make_POSIXct_date
year=2008
month=3
day=3
hourmin="0404"
make_POSIXct_date(year, month, day, hourmin, timezone_txt="UTC")

Run the code above in your browser using DataLab