Skip to contents

Constructs a BioclimData object from monthly climate data. Plain numeric vectors of length 12 are automatically coerced to 1-row matrices so that single-pixel and raster-block inputs are handled uniformly.

Usage

BioclimData(tas, tasmax, tasmin, pr)

Arguments

tas

Numeric vector (length 12) or matrix (pixels × 12): monthly mean temperature.

tasmax

Numeric vector (length 12) or matrix (pixels × 12): monthly maximum temperature.

tasmin

Numeric vector (length 12) or matrix (pixels × 12): monthly minimum temperature.

pr

Numeric vector (length 12) or matrix (pixels × 12): monthly precipitation.

Value

A BioclimData object.

Examples

tas    <- 1:12
tasmax <- 2:13
tasmin <- 0:11
pr     <- 1:12
bd <- BioclimData(tas, tasmax, tasmin, pr)
bd
#> BioclimData: 1 pixel, 12 months
#>   Slots: tas, tasmax, tasmin, pr  (each a 1 x 12 matrix)