amf_extract_badm {amerifluxr}R Documentation

Extract BADM data of a specific BADM group

Description

This function extracts BADM data of a specific BADM group from the imported BADM (BIF) file. Use function amf_read_bif to import BADM (BIF) file.

Usage

amf_extract_badm(bif_data, select_group)

Arguments

bif_data

A data frame consists of 5 columns: SITE_ID, GROUP_ID, VARIABLE_GROUP, VARIABLE, DATAVALUE, imported from function amf_read_bif.

select_group

A string (character), selected from VARIABLE_GROUP in the bif_data

Value

A data frame of re-structured BADM data with the following columns:

See Also

amf_read_bif

Examples

# read the BADM BIF file, using an example data file
bif <- amf_read_bif(file = system.file("extdata",
                                       "AMF_AA-Flx_BIF_CCBY4_20201218.xlsx",
                                        package = "amerifluxr"))

# get a list of valid VARIALBE_GROUP
unique(bif$VARIABLE_GROUP)

# extract the selected VARIALBE_GROUP
amf_extract_badm(bif_data = bif, select_group = "GRP_FLUX_MEASUREMENTS")
amf_extract_badm(bif_data = bif, select_group = "GRP_IGBP")

[Package amerifluxr version 1.0.0 Index]