qcStat: Quality control tests for eddy covariance fluxes

Description Usage Arguments Value Note Author(s) References Examples

View source: R/qcStat.R

Description

Returns the test statistics of the quality control routines described by Vitale et al (2019).

Usage

1
qcStat(path_rawdata, path_output=NULL, FileName=NULL)

Arguments

path_rawdata

path where raw high-frequency eddy covariance data are stored.

path_output

path where the results will be stored. Default is NULL.

FileName

a character string naming a file for writing. Default is NULL.

Value

A data frame containing:

TSTAMP

ISO timestamp start of averaging period (format: yyyymmddHHMM).

SADiag

Diagnostic for the sonic anemometer.

FMR_X

Fraction of Missing Records in raw, high-frequency, data used for X flux variable estimation.

LGD_X

Longest Gap Duration in raw, high-frequency, data used for X flux variable estimation.

Skew_X

Skewness of X variable.

Kurt_X

Kurtosis of X variable.

KID0_X

Kurtosis Index of Differenced X variable.

KID1_X

Kurtosis Index of Differenced X variable excluding the effect of possible low resolution problems.

HF5_X

Statistic of the homogeneity test applied on X variable fluctuations (percentage of data exceeding +/- 5σ).

HF10_X

Statistic of the homogeneity test applied on X variable fluctuations (percentage of data exceeding +/- 10σ).

HD5_X

Statistic of the homogeneity test applied on differenced X variable (percentage of data exceeding +/- 5σ).

HD10_X

Statistic of the homogeneity test applied on differenced X variable (percentage of data exceeding +/- 10σ).

COV_XY

Covariance between X and Y variables.

N0_X

Number of repeated consecutive values affecting X flux variable.

LSR_X

Statistic of the Low Signal Resolution test for X flux variable.

M98_X

Statistic of the non-stationary ratio test by Mahrt (1988) for X flux variable.

Note

The output of qcStat constiutes one of input files required by the ecworkset function.

Author(s)

Domenico Vitale

References

Mahrt L (1998) Flux sampling errors for aircraft and towers, J. Atmos. Ocean. Tech., 15, 416-429, https://doi.org/10.1175/1520-0426(1998)015<0416:fsefaa>2.0.co;2.

Vitale, D. Fratini, G. Bilancia, M. Nicolini, G. Sabbatini, S. Papale, D. A robust data cleaning procedure for eddy covariance flux measurements, Biogeosciences Discussions, 2019, pp 1-36, doi: https://doi.org/10.5194/bg-2019-270.

Examples

1
2
3
PATH_RAWDATA <- system.file("extdata", "DE-HoH_EC_201907301200_v01.csv", package = "RFlux")
QC_STAT <- qcStat(path_rawdata=PATH_RAWDATA, path_output=NULL, FileName=NULL)
QC_STAT

domvit81/RFlux documentation built on Nov. 20, 2019, 8:02 a.m.