This function calculates heat for temperate trees according to the Growing
Degree Day Model. Note that the calculuation differs slightly from the original,
in which it is based on daily temperature extremes only. This equation here works
with hourly temperatures. The normal GDD equation is GDD=(Tmax-Tmin)/2-Tbase, with
Tmax=30 for Tmax>30, and Tmin=10 for Tmin<10. Tbase is a species-specific base
temperature.
The first part of the equation is the arithmetic mean of daily temperature extremes.
In the present equation, this is replaced by Thourly/24 for each hourly temperature
value. If chillR was using a triangular daily temperature curve, the result would
be the same for both equations. Since chillR uses a sine function for daytime
warming and a logarithmic decay function for nighttime cooling, however, there
will be a slight deviation. This could be handled by defining a function the runs
with daily weather data. chillR doesn't currently have this capability, since
its primary focus is on metrics that require hourly data.