pyPhenology.models.Alternating¶
-
class
pyPhenology.models.Alternating(parameters={})[source]¶ Alternating model, originally defined in Cannell & Smith 1983. Phenological event happens the first day that forcing is greater than an exponential curve of number of chill days.
- a : int | float
- Intercept of chill day curve
- b : int | float
- Slope of chill day curve
- c : int | float
- scale parameter of chill day curve
- threshold : int | flaot
- Degree threshold above which forcing accumulates, and below which chilling accumulates. Set to 5 (assuming C) by default.
- t1 : int
- DOY which forcing and chilling accumulationg starts. Set to 1 (Jan 1) by default.
Methods
__init__([parameters])fit(observations, temperature[, method, …])Estimate the parameters of a model. get_doy_fitting_estimates(**params)get_error(**kargs)get_initial_bounds()get_params()predict([to_predict, temperature, doy_series])Predict the DOY given temperature data and associated site/year info All model parameters must be set either in the initial model call or by running fit(). save_params(filename)Save the parameters for a model score([metric])