runGdal: Process MODIS hdf with GDAL

Description Usage Arguments Value Author(s) Examples

Description

Download MODIS data from archive and process the files with GDAL. This function is basically copy-pasted from MODIS::runGdal, with a few bugs corrected. It uses also now the GdalUtils package, to simplify the code

Usage

1
2
3
runGdal(product, collection=NULL, begin=NULL, end=NULL, extent=NULL, tileH=NULL,
tileV=NULL, buffer=0, SDSstring=NULL, job=NULL, checkIntegrity=TRUE, wait=0.5,
quiet=FALSE,gdalPath = "",...)

Arguments

product

See: ?getProduct

collection

Default is to download most recent collection version. See: ?getCollection

begin

Default is from the beginning of data. See: ?transDate

end

Default is to the end of data. See: ?transDate

extent

Default is NULL for interactive selection. See: ?getTile and Details!

tileH

Numeric. Default is NULL for interactive selection. See: ?getTile

tileV

Numeric. Default is NULL for interactive selection. See: ?getTile

buffer

Numeric. Buffer [in units of the 'outProj'] around the specified extent. See: ?getTile

SDSstring

Default is extract all SDS (layers). See: ?getSds.

job

Character name. Name of the current job for the creation of the output folder. If not specified it is created: 'PRODUCT.COLLECTION_DATETIME'.

checkIntegrity

Default TRUE. Check if the file is 'healthy' (and download it again if not) before doing further processings with it. This consumes also a littel bit of time to do the check.

wait

Numeric. Time to wait to re-try a un-successful online connection (URL listenting or 'download.file()' process). Keep it small, max ~1 sec.

quiet

Logical, Default FALSE. Some progress informations.

gdalPath

Path to the gdal binaries.

...

See section 'Methods'.

Value

See runGdal in the MODIS package

Author(s)

Matteo Mattiuzzi and Antoine Stevens

Examples

1
2
3
4
5
6
7
8
## 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",
       gdalPath = "C:/OSGeo4W64/bin")

## End(Not run)

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