Description Usage Arguments Value Author(s) See Also Examples
This function retrieves and updates the folder structure on the MODIS data pool and creates a local file to use for further calls. This function is used for reducing the number of getURL
calls and to enable as offline mode especially for getHDF
.
1 | getSTRUC(LocalArcPath,product,collection,startdate,enddate,wait=1)
|
LocalArcPath |
Character. Is needed because this funtion creates a hidden folder to store ftp directory information. If left empty standard path is used, see |
product |
Character. MODIS grid product to be downloaded. For 'MODIS TERRA Vegetation Indices at 250 m ground resolution' use: |
collection |
Character or integer. Refers to the MODIS product collection-version. Often '005', but see MODIS pages for more information. |
startdate |
Character. Subset start date of MODIS time series (format: "YYYY.MM.DD"). |
enddate |
Character. Subset end date of MODIS time series (format: "YYYY.MM.DD"). |
wait |
Numeric. Default |
NONE, a file in an hidden folder /MODIS_ARC/.auxiliaries/ftpdir.txt
Matteo Mattiuzzi
1 2 3 4 5 6 7 8 | ## Not run:
# update or get the internal structure for MOD13Q1 and MYD13Q1 collection "005"
getSTRUC(product="MxD13Q1",collection=5)
# update or get the internal structure for MOD09GQ within a limited period
getSTRUC(product="MxD13Q1",collection=5, startdate="2003.05.03",enddate="2008.07.23")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.