Learn R Programming

modisfast (version 0.9.1)

mf_list_variables: Get information for the variables (bands) available for a given collection

Description

Get the variables available for a given collection, along with a set of related information for each.

Usage

mf_list_variables(collection, credentials = NULL)

Value

A data.frame with the variables available for the collection, and a set of related information for each variable. The variables marked as "extractable" in the column "extractable_w_opendapr" can be provided as input parameter variables of the function mf_get_url

Arguments

collection

string. mandatory. Collection of interest (see details of mf_get_url).

credentials

vector string of length 2 with username and password. optional if the function mf_login was previously executed.

Examples

Run this code

if (FALSE) {
# login to Earthdata
log <- mf_login(c("earthdata_un","earthdata_pw"))

# Get the variables available for the collection MOD11A1.061
(df_varinfo <- mf_list_variables("MOD11A1.061"))
}

Run the code above in your browser using DataLab