This function obtains the BASE data summary for all or selected AmeriFlux sites. See AmeriFlux page https://ameriflux.lbl.gov/data/aboutdata/data-variables/ for details about the variable naming.

amf_summarize_data(site_set = NULL, var_set = NULL)

Arguments

site_set

A scalar or vector of character specifying the target AmeriFlux Site ID (CC-Sss). If not specified, it returns all sites.

var_set

A scalar or vector of character specifying the target variables as in basename. See AmeriFlux pagehttps://ameriflux.lbl.gov/data/aboutdata/data-variables/#base for a list of variable names. If not specified, it returns all variables.

Value

A data frame of site-specific variable summary statistics (selected percentiles) for selected AmeriFlux sites.

  • Site_ID - Six character site identifier (CC-Sss)

  • VARIABLE - Variable name of the data included in the BASE file

  • BASENAME - Variable base name of the data included in the BASE file.

  • GAP_FILLED - Whether a variable is a gap-filled variable (TRUE/FALSE)

  • DATA_RECORD - Number of supposed data record (counts)

  • DATA_MISSING - Number of missing data record (counts)

  • Q01 - 1th percentile of the data

  • Q05 - 5th percentile of the data

  • ...

  • Q95 - 95th percentile of the data

  • Q99 - 99th percentile of the data

Examples

if (FALSE) {
# obtain the data variable availability for all sites & variables
data_sum <- amf_summarize_data()

# obtain the data variable availability for selected sites, all variables
data_sum <- amf_summarize_data(site_set = c("US-CRT","US-WPT"))

# obtain the data variable availability for selected sites & variables
data_sum <- amf_summarize_data(site_set = c("US-CRT","US-WPT"),
                               var_set = c("FC", "LE", "H"))
}