Learn R Programming

bioclim (version 0.4.0)

biobalRaster: Computation of Bioclimatic Balance (raster mode)

Description

Computes bioclimatic balance from water balance in raster format.

Usage

biobalRaster(bh, CC, path = NULL, ncpu = 1)

Value

SpatRaster with 48 layers corresponding to the 12 monthly values of 'B', 'b','bc','bl'.

Arguments

bh

Water balance in raster format.

CC

Field capacity. It depends on water retention capacity and depth of roots. 400 as default value. It can be a SpatRaster layer.

path

Optional. Path (folder) where the output raster files and look-up-tables will be saved.

ncpu

Number of CPUs to use. By default, sequential mode (1 cpu) is used.

Examples

Run this code
# \donttest{
wb <- terra::rast(wbRast)
bb <- biobalRaster(wb, CC = 400, path=NULL, ncpu = 2)
# }

Run the code above in your browser using DataLab