cleanFluxes(data, gas = "co2_flux", qcFlag = 2, sdCor = FALSE, sdTimes =
1, distCor = FALSE, agcCor = FALSE, agcVal = NULL, ustar = NULL, plot
= FALSE, write = FALSE, outputFile, thresholdList = list(H = NULL, LE =
NULL, Tau = NULL, h2o = NULL), timesList = list(H = NULL, LE = NULL, Tau
= NULL, h2o = NULL), sunset = 19, sunrise = 6, na.value = "NaN")
To clean data using standard deviation, the mean and standard deviation of negative and positive values is calculated separately. Data greater than a user-defined times of the standard deviation are removed
For distributional cleaning, the half-hourly destribution using the complete dataset and the 5th and 95th quantiles are calculated. Values outside these quantiles are removed.
Mean AGC is calculated by EddyPro if a diagnostics value is given during processing of raw data. AGC usually should be between 50 - 60%. Values outside the threshold will be removed. Use with caution as it may remove a large number of data
U* filtering is standard procedure. For the FREddyPro function we used the procedure described by Papale et al. 2006 . Air temperature is classes and within each temperature class u* is grouped in 20 classes. For more details see Papale et al. 2006.
## Load the data
data(fluxes)
## Clean data using 3 times the SD for both gas and heat fluxes.
## Also use some thresholds for head fluxes.
fluxes=cleanFluxes(fluxes,sdCor=TRUE,sdTimes=3,distCor=TRUE,timesList=3,
thresholdList=list(H=c(-100,1000),LE=c(-100,1000)),plot=TRUE)
Run the code above in your browser using DataLab