bgctw / REddyProc

Processing data from micrometeorological Eddy-Covariance systems
57 stars 31 forks source link

Daily uncertainty aggregation can produce Inf #32

Closed lsigut closed 5 years ago

lsigut commented 5 years ago

Hi, I just noticed in the vignette that the condition if (nEff == 0) is not strong enough when computing sdNEE due to division by (nEff - 1). In case that nEff == 1 computation will produce sdNEE == Inf. Example:

aggDay[174, ]