getProduct: Check the avalability of a given product, create file related...

Description Usage Arguments Value Author(s) Examples

Description

On user side it is a funtion to find the desidered product. On package site it generates central internal information to hande files.

Usage

1
getProduct(x,quiet=FALSE)

Arguments

x

Character. MODIS filename, MODIS Product name or Regular expression (for regular expression argument see in ?grep the argument pattern for details).

quiet

Logical. Default FALSE.

Value

An invisible list with usable information for other functions.

Author(s)

Matteo Mattiuzzi

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
getProduct() # list available products

getProduct("MxD11C3") # 'x' for backward compatibility
getProduct("MxD11C3",quiet=TRUE)
# or
getProduct("M.D11C3") # regular expression style
getProduct("M.D11C") # regular expression style

getProduct("MOD14$") # regular expression style
getProduct("MOD14") # regular expression style

internal_info <- getProduct("MOD11C3",quiet=TRUE) # regular expression style
internal_info

getProduct("SRTM") # Only download

aubreyd/modis4rwrfhydro documentation built on May 10, 2019, 2:13 p.m.