flowacc | R Documentation |
flowacc
calculates accumulated flow(used to model cold air drainage)
flowacc(dtm, basins = NA)
dtm |
a SpatRast elevations (m). |
basins |
optionally a SpatRast of basins numbered as integers (see details). |
Accumulated flow is expressed in terms of number of cells. If basins
is provided, accumulated flow to any cell within a basin can only occur from
other cells within that basin.
a SpatRast of accumulated flow (number of cells)
library(terra)
fa <- flowacc(rast(dtm100m))
plot(fa, main = 'Accumulated flow')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.