watbalRaster {bioclim}R Documentation

Water balance in raster format

Description

Computes water balance from temperature and precipitation in raster format.

Usage

watbalRaster(temp, prec, PET = NULL, CC, path = NULL, ncpu = 2)

Arguments

temp

SpatRaster containing 12 layers with monthly temperature from January to December.

prec

SpatRaster containing 12 layers with monthlyprecipitation from January to December.

PET

Optional. Potential evapotranspiration 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 cores used for the most demanding calculations.

Value

SpatRaster with 144 layers corresponding to the 12 monthly values of 'temp', 'prec','PET','P_PET','PPA','ST','i_ST','RET','HD','HEX','r','rP'.

Examples


tmp <- terra::rast(tmpRast)
pre <- terra::rast(preRast)
wb <- watbalRaster(tmp, pre, PET = NULL, CC = 400, path=NULL, ncpu = 2)


[Package bioclim version 0.4.0 Index]