bio9: bio9: Calculates mean temperature of the driest quarter

Description Usage Arguments Details Value See Also Examples

Description

bio9 is used to calculate the mean temperature of the driest quarter of the year

Usage

1
bio9(temps, prec, tme1, tme2, method = "")

Arguments

temps

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

prec

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

tme1

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

tme2

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

method

character string describing the method used to calculate mean temperature of the driest quarter. Options are "anuclim" or unspecified (see details).

Details

If method is "anuclim", 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. Mean temeprature of the driest 13-week period is returned. Otherwise, annual precipitation values are used to calculate precipitation in the driest three-month period and mean temperature in this period returned.

Value

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

See Also

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

Examples

1
2
3
4
5
6
7
8
temps <- 10 * sin(c(0:1459) / (pi * 150)) + rnorm(1460)
tme1 <- tmecreate(2010, 6)
plot(temps~as.POSIXct(tme), type = "l", xlab = "Month", ylab = "Temperature")
prec <- (10 * sin(c(0:364) * (pi / -360)) + rnorm(365) + 12)
tme2 <- tmecreate(2010, 24)
plot(prec~as.POSIXct(tme2), type = "l", xlab = "Month", ylab = "Precipitation")
bio9(temps, prec, tme1, tme2)
bio9(temps, prec, tme1, tme2, method = "anuclim")

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