Movatterモバイル変換


[0]ホーム

URL:


Calculation of growing degree days (GDD) inthe pollen package

Jakub Nowosad

2025-09-30

Growing degree days (GDD) are a measure of heat accumulation used topredict plant and animal development rates. It can be, however,calculated using several approaches. Thepollen packageallows for three different versions of the GDD calculations. The goal ofthis vignette is to describe and show examples of calculating GDD usingdifferent methods.

Let’s start with attaching a set of package used in thisvignette:

library(pollen)library(ggplot2)library(tidyr)

Next, we will use thegdd_data dataset - a data framewith three columns:

data("gdd_data",package ="pollen")head(gdd_data)#>   day tmax tmin#> 1   1    2    2#> 2   2    2    2#> 3   3    2    2#> 4   4    2    2#> 5   5    2    2#> 6   6    2    2

We can vizualize thegdd_data dataset using theggplot2 package:

df_plot1<-pivot_longer(gdd_data, tmax:tmin)p1<-ggplot(df_plot1)+geom_line(aes(day, value,color = name))p1

Thepollen package allows for calculations ofgrowing degree days (GDD) using thegdd() function. Thisfunction accepts up to five arguments:

The last argument is inspired by the article by Baskerville and Emin(1969) (see Figure 1 in the mentioned paper).

gdd_data$type_b<-gdd(tmax = gdd_data$tmax,tmin = gdd_data$tmin,tbase =5,type ="B")gdd_data$type_c<-gdd(tmax = gdd_data$tmax,tmin = gdd_data$tmin,tbase =5,tbase_max =20,type ="C")gdd_data$type_d<-gdd(tmax = gdd_data$tmax,tmin = gdd_data$tmin,tbase =5,tbase_max =20,type ="D")head(gdd_data)#>   day tmax tmin type_b type_c type_d#> 1   1    2    2      0      0      0#> 2   2    2    2      0      0      0#> 3   3    2    2      0      0      0#> 4   4    2    2      0      0      0#> 5   5    2    2      0      0      0#> 6   6    2    2      0      0      0

Finally, let’s compare these three types:

df_plot2<-pivot_longer(gdd_data, type_b:type_d)p2<-ggplot(df_plot2)+geom_line(aes(day, value,color = name))p2

The above figure clearly shows that the selection of the calculationmethod (type) can make a large difference in the outputvalues. Therefore, it is crucial to select thetype andother parameters (tbase andtbase_max) thatare appropriate for the studied phase in the plant or animaldevelopment.

References

Baskerville, G. L., and P. Emin. 1969.“Rapid Estimation of HeatAccumulation from Maximum and Minimum Temperatures.”Ecology 50 (3): 514–17.https://doi.org/10.2307/1933912.

[8]ページ先頭

©2009-2025 Movatter.jp