gdd_extract: ggd_extract Compute the growing degree day (GDD) using either...

View source: R/growingDegreeDay.R

gdd_extractR Documentation

ggd_extract Compute the growing degree day (GDD) using either the mean temperature or the Baskerville-Emin method, with base temperature.

Description

ggd_extract Compute the growing degree day (GDD) using either the mean temperature or the Baskerville-Emin method, with base temperature.

Usage

gdd_extract(
  base_temp = NULL,
  min_temp = NULL,
  max_temp = NULL,
  avg_temp = NULL,
  gdd_method = "avg",
  top_temp = NULL
)

Arguments

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

Details

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.

Author(s)

Reto Schmucki


RetoSchmucki/climateExtract documentation built on July 3, 2025, 11:39 p.m.