This implements a conventional method for the determination of the start of the growing season (SGS) based on daily average temperatures.
Details
A temperature sum is constructed using [weighted_temperature_sum()], i.e. by summing the average daily temperature for each day, but applying a weight factor of 0.5 for January and 0.75 for February.
The SGS is defined as the first day where the so constructed temperature sum crosses 200 degree days.
Examples
ts = rep(2, 365)
start_of_growing_season(ts)
#> [1] 123