MODIS (version 1.1.7)

getProduct: Check and Create Product-Related Information

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

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.

Examples

Run this code
# NOT RUN {
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

# }

Run the code above in your browser using DataCamp Workspace