getProduct: Check and Create Product-Related Information

View source: R/getProduct.R

getProductR Documentation

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, ...)

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().

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.

Author(s)

Matteo Mattiuzzi and Florian Detsch

Examples

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 Jan. 6, 2023, 5:10 p.m.