Description Usage Arguments Value Author(s) Examples
Convert MODIS files into a Raster* object, and possibly convert raw DN to physical values.
| 1 2 3 | 
| path | Path to the folder where MODIS files are stored. Default is the working directory. See  | 
| pattern | optional regular expression, only file names matching the regular expression will be extracted. See  | 
| type | character  | 
| convertDN | a logical value indicating whether MODIS DN values should be converted to physical values.
See  | 
| extractAll | a logical value indicating whether time info, file names and date object should be returned in addition to the processed raster object.
Default is  | 
| filename | Passed to  | 
| datatype | Passed to  | 
| overwrite | Passed to  | 
| ... | arguments passed to  | 
a list with the following elements:
rasterthe processed Raster* object
raster_fillif type is 'Fpar_1km|Lai_1km|FparStdDev_1km|LaiStdDev_1km', fill values are automatically extracted (https://lpdaac.usgs.gov/dataset_discovery/modis/modis_products_table/mod15a2)
timeInfotime info as returned by orgTime
filenamefile names as returned by preStack
datevector of dates as returned by extractDate
If there is only one element in the list, the convert_modis returns the unlist-ed Raster object.
Antoine Stevens
| 1 2 3 4 5 6 7 8 9 10 | ## Not run: 
# Get and extract NDVI MOD13A2 for JUNE 2009
runGdal(product="MOD13A2", begin = "2009.06.01", end = "2009.06.30",
       tileH = 19, tileV = 5 ,
       SDSstring =  "100000000000",job="H19V5")
# process and convert to raster
path <- "~/COPERNICUS/MODIS_DATA/PROCESSED/H19V5"
convert_modis(path = path,pattern = "16_days_NDVI")
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.