bio10: bio10: Calculates mean temperature of the Warmest quarter

Description Usage Arguments Details Value See Also Examples

Description

bio10 is used to calculate the mean temperature of the warmest quarter (three months) of the year

Usage

1
bio10(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 string describing the method used to calculate mean temperature of the warmest quarter. Options are "anuclim" or unspecified (see details).

Details

If method is "anuclim", warmest quarter is determined to the nearest week. Mean monthly temperature values are calculated and spline interpolated to a weekly time period. Precipitation values are summed for all months and then spline interpolated to a weekly time period. Otherwise, the mean temperature of the warmest 3-month period is calculated from annual values.

Value

a single numeric value of mean temperature in 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")
bio10(temps, tme)
bio10(temps, tme, method = "anuclim")

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