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

Description Usage Arguments Value Author(s) References See Also Examples

Description

Make a standard-formatted date.

Usage

1
2
  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

Author(s)

Nicholas J. Matzke matzke@berkeley.edu

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. <URL: http://modis-atmos.gsfc.nasa.gov/_docs/MOD35_ATBD_Collection6.pdf>.

GoldsmithMatzkeDawson2013

See Also

get_date_from_POSIXct

get_dates_from_POSIXct

as.POSIXct

Examples

1
2
3
4
5
6
# Example use of make_POSIXct_date
year=2008
month=3
day=3
hourmin="0404"
make_POSIXct_date(year, month, day, hourmin, timezone_txt="UTC")

modiscloud documentation built on May 2, 2019, 5:16 a.m.