This function read in the BADM data file formatted in BADM Interchange Format (BIF).

amf_read_bif(file)

Arguments

file

A BADM data file

Value

A data frame containing the following 5 columns. See AmeriFlux website

https://ameriflux.lbl.gov/data/aboutdata/badm-data-product/ for details.

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

  • GROUP_ID - A unique identifier for data belonging to the same instance of a reported variable group

  • VARIABLE_GROUP - A set of variables that are reported together

  • VARIABLE - The variable name

  • DATAVALUE - The reported value of a variable

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"))