dismo (version 1.1-1)

biovars: bioclimatic variables

Description

Function to create 'bioclimatic variables' from monthly climate data.

Usage

biovars(prec, tmin, tmax, ...)

Arguments

prec
vector, matrix, or RasterStack/Brick of precipitation data
tmin
vector, matrix, or RasterStack/Brick of minimum temperature data
tmax
vector, matrix, or RasterStack/Brick of maximum temperature data
...
Additional arguments

Value

Depending on the class of the input data, an object of class 'vector', 'matrix' or 'RasterBrick' with 19 variables (columns, layers)bio1 = Mean annual temperaturebio2 = Mean diurnal range (mean of max temp - min temp)bio3 = Isothermality (bio2/bio7) (* 100)bio4 = Temperature seasonality (standard deviation *100)bio5 = Max temperature of warmest monthbio6 = Min temperature of coldest monthbio7 = Temperature annual range (bio5-bio6)bio8 = Mean temperature of the wettest quarterbio9 = Mean temperature of driest quarterbio10 = Mean temperature of warmest quarterbio11 = Mean temperature of coldest quarterbio12 = Total (annual) precipitationbio13 = Precipitation of wettest monthbio14 = Precipitation of driest monthbio15 = Precipitation seasonality (coefficient of variation)bio16 = Precipitation of wettest quarterbio17 = Precipitation of driest quarterbio18 = Precipitation of warmest quarter

Details

Input data is normaly monthly. I.e. there should be 12 values (layers) for each variable, but the function should also work for e.g. weekly data (with some changes in the meaning of the output variables. E.g. #8 would then not be for a quater (3 months), but for a 3 week period).

Examples

Run this code
tmin <- c(10,12,14,16,18,20,22,21,19,17,15,12)
tmax <- tmin + 5
prec <- c(0,2,10,30,80,160,80,20,40,60,20,0)
biovars(prec, tmin, tmax)

tmn = tmx = prc = brick(nrow=1, ncol=1)
tmn <- setValues(tmn, t(matrix(c(10,12,14,16,18,20,22,21,19,17,15,12))))
tmx <- tmn + 5
prc <- setValues(prc, t(matrix(c(0,2,10,30,80,160,80,20,40,60,20,0))))
b <- biovars(prc, tmn, tmx)
as.matrix(b)

Run the code above in your browser using DataCamp Workspace