Lower bound flux uncertainty and adjust prior uncertainty before calling optimLRC
LRC_optimLRCOnAdjustedPrior(theta, iOpt, dsDay, parameterPrior, ctrl, ...)
numeric vector of starting values
integer vector: positions of subset of parameters that are optimized
dataframe of NEE, sdNEE and predictors Rg, VPD and Temp
numeric vector of prior parameter estimates (corresponding to theta)
list of further controls
further arguments to
LRC_optimLRC()
(passed to
LRC_computeCost()
)
list of result of LRC_optimLRC()
amended with list
theta
, iOpt
and convergence
Only those records are used for optimization where both NEE and sdNEE are finite.
In larger settings, already filtered at partGLFitLRCOneWindow
Optimization of LRC parameters takes into account the uncertainty of the flux
values. In order to avoid very strong leverage, values with a very low
uncertainty (< a lower quantile) are assigned the lower quantile is assigned.
This procedure downweighs records with a high uncertainty, but does not apply
a large leverage for records with a very low uncertainty. Avoid this
correction by setting ctrl$isBoundLowerNEEUncertainty = FALSE