bgctw / REddyProc

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

tell user user how to relax the constraint in temperature range #18

Closed bgctw closed 5 years ago

bgctw commented 5 years ago

Currently, night-time based flux partitioning estimates temperature sensitivity E0 for a shifting time window before adopting a single aggregated value. There is a constraint on temperature range before a window is considered for fitting the respiration-temperature relationship. By default temperature range must be at least TempRange.n = 5°Celsius. The rational: with little variation in temperature, there will not be a good and maybe spurious relationship with respiration.

At some sites, the night-time temperature range over seven days rarely changes this much, leading to an error message in night-time based flux partitioning. Although E0 estimates become less reliable with less temperature variation, the user should be able to try relaxing this criterion.

The criterion can already specified at functions fRegrE0fromShortTerm and also at sEddyProc_sMRFluxPartition with argument parsE0Regression. But the user only gets the warning that respiration-temperature relationship could not be fit at enough periods.

I suggest telling the user in the warning how he can retry with a relaxed temperature range constraint.