Additional arguments:
equation
character to specify the equation to be used, one of "default"
,
"a"
, "b"
or "c"
. See Equations below
tbase_max
optional, the maximum tbase temperature,
required if equation = "c"
return.as
character (one of, the default, "acc"
or "daily"
,
"ndays"
) to select if the function returns the accumulated gdd, or the
daily values of gdd across the series, or the number of days required to reach a
certain number of degree.days
degree.days
an integer for the accumulated degree-days required by the
organism. Optional if return.as = "daily" or return.as = "acc"
last.day
: an object (optional to span) of class Date
or
any other object that can be coerced to Date
(e.g. integer, character
YYYY-MM-DD) for the last day of the time series. For data.frame
,
array
and sf
methods
span
: an integer (optional to last.day) or a vector with
integers (optional if last.day is given) for the length of
the time series to be captured. For data.frame
, array
and sf
methods
S3 Methods:
The array
method assumes that object contains climate data available
in your R section; this requires an array with two dimensions, 1st dimension
contains the day temperature and 2nd dimension the night temperature,
see help("temp_dat", package = "climatrends") for an example on input structure.
The data.frame
and sf
methods assumes that the climate data
will e fetched from a remote (cloud) source that be adjusted using the argument
data.from
Equations:
"default"
: GDD = ((tmax + tmin) / 2) - tbase
"a"
: adjust tmean = tbase if tmeam < tbase
"b"
: adjust tmin = tbase if tmin < tbase,
adjust tmax = tbase if tmax < tbase
"c"
: adjust tmin = tbase if tmin < tbase,
adjust tmax = tbase_max if tmax < tbase_max