Learn R Programming

MODIS (version 1.2.11)

getProduct: Check and Create Product-Related Information

Description

On user side, it is a function to find the desired product. On package site, it generates central internal information to handle files.

Usage

getProduct(x = NULL, quiet = FALSE, ...)

Value

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

Arguments

x

character. MODIS file name, product name, regular expression passed as pattern to grep(), or missing. Use dot notation to address Terra and Aqua products at the same time, e.g. "M.D13Q1".

quiet

logical, defaults to FALSE.

...

Additional arguments passed to getCollection().

Author

Matteo Mattiuzzi and Florian Detsch

Examples

Run this code
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 DataLab