Computes flow accumulation or the total contributing area in terms of numbers of cells upstream of each cell.
methods
## S4 method for signature 'SpatRaster'flowAccumulation(x, weight=NULL, filename="",...)
Arguments
x: SpatRaster with flow direction, see terrain.
weight: SpatRaster with weight/score daa. For example, cell area or precipitation
filename: character. Output filename
...: additional arguments for writing files as in writeRaster
Returns
SpatRaster
Details
The algorithm is an adaptation of the one proposed by Zhou at al, 2019.
See Also
terrain,watershed, NIDP
Author(s)
Emanuele Cordano
References
Zhou, G., Wei, H. & Fu, S. A fast and simple algorithm for calculating flow accumulation matrices from raster digital elevation. Front. Earth Sci. 13, 317–326 (2019). doi:10.1007/s11707-018-0725-9. Also see: https://ica-abs.copernicus.org/articles/1/434/2019/