Description Usage Arguments Value Author(s) Examples
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.
1 | getMODISinfo(x)
|
x |
Character. MODIS file name |
A dataframe with one column ($date) of class Date
Loic Dutrieux
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.