getProduct: Check and Create Product-Related Information

Description Usage Arguments Value Author(s) Examples

View source: R/getProduct.R

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 = NULL, quiet = FALSE, ...)

Arguments

x

character. MODIS filename, product name, regular expression passed to pattern in grep, or missing.

quiet

logical, defaults to FALSE.

...

Additional arguments passed to getCollection.

Value

If 'x' is missing, a data.frame with information about all MODIS products available. In case of character input, an invisible MODISproduct-class or MODISfile-class object depending on the type of input (product/regular expression or filename); the object holds information usable by other functions.

Author(s)

Matteo Mattiuzzi and Florian Detsch

Examples

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

# or use regular expression style
getProduct("M.D11C3")
getProduct("M*D11C")

# or get information about specific product
internal_info <- getProduct("MOD11C3", quiet = TRUE) 
internal_info

# or use a valid filename
fileinfo <- getProduct("MYD11A1.A2009001.h18v04.006.2015363221538.hdf")
fileinfo

MODIS documentation built on Nov. 12, 2020, 5:06 p.m.