bio16: bio16: Calculates precipitation of the wettest quarter

Description Usage Arguments Details Value See Also Examples

Description

bio16 is used to calculate the total precipitation of the wettest quarter of the year

Usage

1
bio16(prec, tme, method = "")

Arguments

prec

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

tme

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

method

an optional character string describing how precipitation of the wettest quarter is calculated. Options include "anuclim" or unspecified (see details).

Details

If method is "anuclim", monthly precipitation is spline interpolated to a weekly time period. Precipitation for each 13-week period is calculated and total precipitation in the wettest quarter returned. If data span more than one year, data are aggregated by unique month irrespective of year and one value returned. Otherwise, precipitation for each three-month (91-day) period is calculated and total precipitation in the wettest quarter returned. If data span more than one year, calculations are performed on all data and a single value returned.

Value

a single numeric value for precipitation in 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
prec <- (10 * sin(c(0:364) * (pi / -360)) + rnorm(365) + 12)
tme <- tmecreate(2010, 24)
plot(prec~as.POSIXct(tme), type = "l", xlab = "Month", ylab = "Precipitation")
bio16(prec, tme)
bio16(prec, tme, method="anuclim")

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