fill_init: Initalize Gap Filling

Description Usage Arguments Details Value

Description

Initializes temporary data frame for newly generated gap filled data and qualifiers. Original name: sEddyProc_sFillInit.

Usage

1
fill_init(data, var, qc_var = NULL, qc_val = 0, fill_all = TRUE)

Arguments

data

A data frame.

var

variable to be filled

qc_var

A numeric vector, quality flag of variable to be filled

qc_val

value of quality flag for _good_ (original) data, other data is set to missing

fill_all

Fill all values to estimate uncertainties

Details

Long gaps (larger than 60 days) are not filled.

Newly created variables with gap-filled data and qualifiers: * VAR_orig Original values of variable VAR used for gap filling * VAR_f Original values and filled gaps * VAR_fqc Quality flag assigned depending on gap filling method and window length (0 = original data, 1 = most reliable, 2 = medium, 3 = least reliable) * VAR_fall All values considered as gaps (for uncertainty estimates) * VAR_fall_qc Quality flag assigned depending on gap filling method and window length (1 = most reliable, 2 = medium, 3 = least reliable) * VAR_fnum Number of datapoints used for gap-filling * VAR_fsd Standard deviation of datapoints used for gap filling (uncertainty) * VAR_fmeth Method used for gap filling (1 = similar meteo condition (fill_lut with rg, vpd, tair), 2 = similar meteo (fill_lut with rg only), 3 = mean diurnal course (fill_mdc)) * VAR_fwin Full window length used for gap filling

Value

A temporary data frame ready to hold results of gap filling.


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