bio11: bio11: Calculates mean temperature of the coldest quarter

Description Usage Arguments Details Value See Also Examples

Description

bio11 is used to calculate the mean temperature of the coldest quarter (three months) of the year

Usage

1
bio11(temps, tme, method = "")

Arguments

temps

a vector of temperatures, normally for one year (see details).

tme

a POSIXlt object representing the date and time of each temps value.

method

An optional character vector describing the method used to calculate the mean temperature of the coldest quarter. Options are "anuclim" or unpsecified (see details).

prec

a vector of precipitation values, normally for one year (see details).

Details

If method is "anuclim", mean monthly temperature values are calculated and spline interpolated to a weekly time period. Mean temperature of the coldest 13-week period is determined. If method is left unspecified, mean temperature of the coldest 3-month (91-day) period is calculated from annual temperature values.

Value

a single numeric value of mean temperature of the warmest quarter of the year.

See Also

the tmecreate() function can be used to create a POSIXlt object.

Examples

1
2
3
4
5
temps <- 10 * sin(c(0:1459) / (pi * 150)) + rnorm(1460)
tme <- tmecreate(2010, 6)
plot(temps~as.POSIXct(tme), type = "l", xlab = "Month", ylab = "Temperature")
bio11(temps, tme)
bio11(temps, tme, method = "anuclim")

ilyamaclean/climvars documentation built on June 19, 2019, 2:22 p.m.