getMODISinfo: Get MODIS infos

Description Usage Arguments Value Author(s) Examples

Description

Parses through MODIS file names and retrieve information on acquisition date. Future versions will include retrieval of sensor information, tile ID, etc... The function is vectorized.

Usage

1

Arguments

x

Character. MODIS file name

Value

A dataframe with one column ($date) of class Date

Author(s)

Loic Dutrieux

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Simple case
fileName <- '/path/to/file/MOD17A2.A2008097.h11v09.005.2008142064019.hdf'
getMODISinfo(fileName)

# Multile files
fileNames <- c('/path/to/file/MOD17A2.A2008097.h11v09.005.2008142064019.hdf', 'MOD17A2.A2008097.h11v09.005.2008164064019.tif')
getMODISinfo(fileNames)

# Get only a vector of dates
getMODISinfo(fileNames)$date

loicdtx/bfastSpatial documentation built on May 21, 2019, 7:37 a.m.