Description Usage Arguments Details Author(s) Examples
With this function you can get or set _persistant_ MODIS package options (per user or systemwide). Changes here will persist sessions and updates.
1 2 3 |
localArcPath |
File Path where to store downloaded MODIS-HDF files. Default is "~/MODIS_ARC". |
outDirPath |
The output path where to store results of |
pixelSize |
Default |
outProj |
Default |
resamplingType |
Default is |
dataFormat |
Default is |
gdalPath |
Path to gdal _bin_ directory, relvand more for windows. Use |
MODISserverOrder |
Default |
dlmethod |
Default |
stubbornness |
The number of re-tries after that the HTTP/FTP server has refused the connection. Higher values increase the chance of getting the file but also leads to hanging functions if the server is down. |
systemwide |
Default |
quiet |
Logical. Print or not options to console. |
save |
Default |
checkPackages |
Default |
This Settings are _permanent_, easy to change and take effect immediatley! If you change default values consider that your settings have to be valid for any MODIS product, layer and area!
It is _not_ recommended to use a _not_ globally applicable georeference reference system as default outProj
, or a fixed pixelSize
for different products or a resamplingType
that is not nn
.
localArcPath
and outDirPath
should be changed, expecially on a Windows system as '~/MODIS_ARC/...' is normally on the 'c:/...' drive. You can set also a shared network drive if you have or want a central MODIS data server.
On Windows you have to set gdalPath
to the location of GDAL executables (the '.../GDAL../bin' directory). On Unix-alikes this should not be required unless you want to specify a non default GDAL installation.
On an unixoid OS it is suggested to use dlmethod='wget'
because its a reliable tool and, after the change of the 'LP DAAC' datapool from FTP to HTTP (May 2013) dlmethod='auto'
seams not to work properly. On Windows it seams to work fine with dlmethod='auto'
. Help and suggestions appreciated!
Matteo Mattiuzzi and Steven Mosher
1 2 3 4 5 | ## Not run:
MODISoptions()
# MODISoptions(localArcPath="/another/path/than/default")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.