getHdf: Create or update a local, user-defined subset of the global...

Description Usage Arguments Value Author(s) Examples

Description

See getHdf in the MODIS package, which this function is essentially a copy-paste. The only changes are related to the way MODIS files are downloaded which uses now the rvest package.

Usage

1
2
getHdf(product, begin=NULL, end=NULL, tileH=NULL, tileV=NULL, extent=NULL,
collection=NULL, HdfName, quiet=FALSE, wait=0.5, checkIntegrity=FALSE, ...)

Arguments

product

Character. (Ignored if HdfName is provided.) MODIS grid product to be downloaded. For 'MODIS TERRA Vegetation Indices at 250 m ground resolution' use: MOD13Q1. For vegetation indices from TERRA and AQUA use M.D13Q1. Run getProduct() for an overview of supported products.

begin

Character. (Ignored if HdfName is provided.) Subset begin date of MODIS time series. See: ?transDate for formatting.

end

Character. (Ignored if HdfName is provided.) Subset end date of MODIS time series. See: ?transDate for formatting. Can even be a future date, for continuous update in schedule jobs.

tileH

Character vector. (Ignored if HdfName is provided.) Horizontal tile number(s) (for MODIS between 0 and 35). I.e.: tileH = 1:5. Refer to http://modis-land.gsfc.nasa.gov/MODLAND_grid.htm to find your area.

tileV

Character vector. (Ignored if HdfName is provided.) Vertical tile number(s) (for MODIS between 0 and 17). I.e.: tileV = 9:17.

extent

see 'extent' in ?getTile.

collection

Character or integer. (Ignored if HdfName is provided.) Refers to the MODIS product collection-version. Often '005', but see MODIS pages or run ?getCollection for more information.

HdfName

Character (vector or list). Full HDF file name(s) to download. If just few single (AND known!) files should be downloaded use HdfName. If HdfName is provided the other file-related parameters are ignored: begin,end,collection,tileV,.... If many files have to be checked and downloaded it is simpler, safer and faster to use the following parameters.

quiet

Logical. Refers to all internal download.file() actions. Default FALSE, if TRUE the getHdf() becomes really boring.

wait

Numeric. Inserts a break (in seconds) after every internal download.file() or getURL() call. It reduces the chance of FTP connection error that often occurs after many requests. (Hopefully a temporary solution!)

checkIntegrity

Logical. Default FALSE, no file integrity check is performed. If TRUE the HDF files size is checked and the function tries to re-download the file. Currently it uses GDAL (gdalinfo), that supports HDF4, run MODISoptions() to check availability).

...

Arguments found in MODISoptions, sections 'STORAGE' and 'DOWNLOAD'

Value

See getHdf in the MODIS package

Author(s)

Matteo Mattiuzzi and Antoine Stevens

Examples

1
2
3
4
5
6
## Not run: 
# Get NDVI MOD13A2 for June 2009
getHdf(product="MOD13A2", begin = "2009.06.01", end = "2009.06.30",
       tileH = 19, tileV = 5 ,job="H19V5")

## End(Not run)

antoinestevens/MODISExtra documentation built on May 10, 2019, 12:23 p.m.