Description Usage Arguments Value Author(s) See Also Examples
Create or update a local user-defined subset of the global MODIS grid data archive (starting from version 0.2.4: ftp://e4ftl01.cr.usgs.gov/,until version 0.2-3: ftp://e4ftl01u.ecs.nasa.gov/). Based on user-specific parameters the function checks in the local archive for available data and downloads missing data from the online MODIS data pool. When run in a schedule job, the function manage the continuous update of local MODIS data archive.
1 |
LocalArcPath |
Character. Local path to look for and to download MODIS files. If missing the default archive '~/MODIS_ARC/' (LINUX), 'C:/Documents and Settings/username/My Documents/MODIS_ARC/' (Windows XP) and 'C:/Users/username/Documents/MODIS_ARC' (Vista/Windows 7) is used. |
HdfName |
Character (vector or list). Full HDF file name(s) to download. If just few single (AND known!) files should be downloaded use |
product |
Character. (Ignored if |
startdate |
Character. (Ignored if |
enddate |
Character. (Ignored if |
tileH |
Character vector. (Ignored if |
tileV |
Character vector. (Ignored if |
extent |
see |
collection |
Character or integer. (Ignored if |
dlmethod |
Default |
checkSize |
Logical. Default |
wait |
Numeric. Default |
quiet |
Logical. Refers to all internal |
log |
Logical. Default |
NONE, a CSV file with reports, and the HDF archive
Matteo Mattiuzzi
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Not run:
# one spezific file (no regular erpression allowed here for now!)
getHDF(HdfName="MOD13Q1.A2009209.h19v04.005.2009227222141.hdf", wait=0)
# DO NOT RUN THE NEXT EXAMPLE (unless you need this data)!!!
# Get all MODIS TERRA 13Q1 beginning from 01. January 2009 up to today.
# If run in a scheduled batch job it will update the data until end of 2015.
getHDF(product="MOD13Q1",startdate="2009.01.01",enddate="2015.12.31",tileH=19,tileV=4:5)
# or the same with an (list) Extent
Austria <- list(lat_min=46.12,lat_max=49.3,lon_max=17.47,lon_min=9.2)
getHDF(product="MYD13Q1",startdate="2009.01.01",enddate="2015.12.31",extent=Austria)
# require(mapdata)
getHDF(product="MYD13Q1",startdate="2009.01.01",enddate="2015.12.31",extent="austria")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.