pyPhenology.models.ThermalTime¶
-
class
pyPhenology.models.
ThermalTime
(parameters={})[source]¶ Thermal Time Model
The classic growing degree day model using a fixed temperature threshold above which forcing accumulates.
Event happens on \(DOY\) when the following is met:
\[\sum_{t=t_{1}}^{DOY}R_{f}(T_{i})\geq F^{*}\]where:
\[R_{f}(T_{i}) = max(T_{i}-threshold, 0)\]- Parameters:
- t1 : int
- \(t_{1}\) - The DOY which forcing accumulating beingsdefault : (-67,298)
- T : int
- \(T\) - The threshold above which forcing accumulatesdefault : (-25,25)
- F : int, > 0
- \(F^{*}\) - The total forcing units requireddefault : (0,1000)
Methods
__init__
([parameters])Initialize self. fit
(observations, predictors[, …])Estimate the parameters of a model get_params
()Get the fitted parameters predict
([to_predict, predictors])Make predictions save_params
(filename[, overwrite])Save the parameters for a model score
([metric, doy_observed, to_predict, …])Evaluate a prediction given observed doy values