extract_coded: Extract Quality Control Information from Coded Values

Description Usage Arguments Details Value

Description

This function is called by extract_QC and is not inteded to be used directly. QC information for multiple variables stored in a character vector of certain properties is extracted and interpreted.

Usage

1
extract_coded(data, var, qc_suffix, prefix = "[8]", split = "[/]")

Arguments

prefix

Character string containing a regular expression identifying the prefix of coded values.

split

Character string containing a regular expression identifying the separator of variable names in units attribute.

x

An atomic type.

Details

Each element of x is expected to have the same structure according to the format specified by units attribute of x. units format string (e.g. "8u/v/w/ts/h2o/co2") starts with a prefix ("8") that is followed by variable names ("u", "v", "w", "ts", "h2o", "co2") that are distinguished by a separator ("/"). Elements of x thus consist of either seven components (prefix and six flags for each variable) or one NA value. Flags can have three values:

x is interpreted in respect to instruments required to measure given fluxes. SA is required for measurements of all fluxes and solely provides data for computation of Tau and H fluxes. IRGA is additionally required for measurements of LE and NEE. To confirm the correct performance of SA, all variables "u", "v", "w", "ts" must have flag 0. In the case of IRGA, all variables "h2o", "co2" must have flag 0. Results are reported according to the QC scheme using QC flag range 0 - 2..

Value

A data frame with columns "sa" and "irga75". Each column has attributes "varnames" and "units" and length equal to that of x.


grahamstewart12/tidyflux documentation built on June 4, 2019, 7:44 a.m.