MODIStsp_get_prodlayers: Retrieve the names of MODIS layers for a product

View source: R/MODIStsp_get_prodlayers.R

MODIStsp_get_prodlayersR Documentation

Retrieve the names of MODIS layers for a product

Description

Function used to retrieve the names of original MODIS layers, quality layers and eventually available spectral indexes given a MODIS product code. It is useful to identify the names of the layers to be processed when launching MODIStsp from the CLI.

Usage

MODIStsp_get_prodlayers(prodname, prodver = "061")

Arguments

prodname

character containing the code of the desired MODIS product. NOTE: for products available separately for Terra and Aqua (e.g., MOD13Q1/MYD13Q1), use the code MD_code_ (e.g., MD13Q1)

prodver

character containing the version of the desired MODIS product. Currently versions "061" (default) and "006" can be chosen.

Value

list, containing the slots: prodname, bandnames, quality_bandnames and indexes_bandnames, band_fullnames, quality_fullnames, indexes_fullnames

Note

License: GPL 3.0

Author(s)

Lorenzo Busetto, phD (2014-2020)

Luigi Ranghetti, phD (2021)

Examples


# Get layers of product M*13Q1 based on code
MODIStsp_get_prodlayers("M*13Q1")

# Get layers of product M*13Q1 based on full name
MODIStsp_get_prodlayers("Vegetation Indexes_16Days_250m (M*D13Q1)")

# Get indexes names of product M*13Q1 based on full name
MODIStsp_get_prodlayers("MCD43C4")$indexes_bandnames



MODIStsp documentation built on Oct. 13, 2023, 5:11 p.m.