View source: R/growingDegreeDay.R
gdd_extract | R Documentation |
ggd_extract Compute the growing degree day (GDD) using either the mean temperature or the Baskerville-Emin method, with base temperature.
gdd_extract(
base_temp = NULL,
min_temp = NULL,
max_temp = NULL,
avg_temp = NULL,
gdd_method = "avg",
top_temp = NULL
)
base_temp |
value for the base temperature to use for the growing degree day, default = 4°C |
min_temp |
raster, rasterbrick or vector of the minimum daily temperature |
max_temp |
raster, rasterbrick or vector of the maximum daily temperature |
avg_temp |
raster, rasterbrick or vector of the mean daily temperature |
gdd_method |
string defining the method to use, "avg" for mean daily temperature or "be" for the Baskerville-Emin method that fits a sine curve on the minimum and the maximum to account for daily variation in temperature |
top_temp |
value for the maximum temperature beyond growing degree day are not accumulating, default = NULL |
This function computes the Growing Degree Day on a specific base temperature and method (i.e., 'avg' or 'be'). The funciton is build on two internal functions, gdd_avg_r() and gdd_be_r() to apply the specific gdd calculation method. The function works on raster, rasterbrick (multiple layers), vector or matrix.
Reto Schmucki
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.