powered by
Computes water balance from temperature and precipitation in raster format.
watbalRaster(temp, prec, PET = NULL, CC, path = NULL, ncpu = 2)
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'.
SpatRaster containing 12 layers with monthly temperature from January to December.
SpatRaster containing 12 layers with monthlyprecipitation from January to December.
Optional. Potential evapotranspiration in raster format.
Field capacity. It depends on water retention capacity and depth of roots. 400 as default value. It can be a SpatRaster layer.
Optional. Path (folder) where the output raster files and look-up-tables will be saved.
Number of cores used for the most demanding calculations.
# \donttest{ tmp <- terra::rast(tmpRast) pre <- terra::rast(preRast) wb <- watbalRaster(tmp, pre, PET = NULL, CC = 400, path=NULL, ncpu = 2) # }
Run the code above in your browser using DataLab