EarthyScience / REddyProc

Processing data from micrometeorological Eddy-Covariance systems
58 stars 33 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, ]