dates_from_fileslist: Convert each MODIS filename to year, month, day, hourmin

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

Description

For each MODIS filename in a list, return a table of date/time information.

Usage

1

Arguments

fns

filenames

Value

dates_table a table of dates

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

yearday_to_date

extract_time_from_MODISfn

Examples

1
2
fns = c("MOD03.A2008001.0400.005.2010216170200.hdf", "MOD03.A2007002.0300.005.2010216170200.hdf")
dates_from_fileslist(fns)

Example output

Loading required package: date
Loading required package: sp
Loading required package: sfsmisc
Loading required package: raster
Loading required package: rgdal
rgdal: version: 1.2-10, (SVN revision 673)
 Geospatial Data Abstraction Library extensions to R successfully loaded
 Loaded GDAL runtime: GDAL 1.10.1, released 2013/08/26
 Path to GDAL shared files: /usr/share/gdal/1.10
 Loaded PROJ.4 runtime: Rel. 4.8.0, 6 March 2012, [PJ_VERSION: 480]
 Path to PROJ.4 shared files: (autodetected)
WARNING: no proj_defs.dat in PROJ.4 shared files
 Linking to sp version: 1.2-3 
  year month day julian hourmin POSIX_ct_date
1 2008     1   1      1    0400    1199160000
2 2007     1   2      2    0300    1167706800

modiscloud documentation built on May 2, 2019, 5:19 p.m.