flowacc: Calculates accumulated flow

flowaccR Documentation

Calculates accumulated flow

Description

flowacc calculates accumulated flow(used to model cold air drainage)

Usage

flowacc(dtm, basins = NA)

Arguments

dtm

a SpatRast elevations (m).

basins

optionally a SpatRast of basins numbered as integers (see details).

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.

Value

a SpatRast of accumulated flow (number of cells)

Examples

library(terra)
fa <- flowacc(rast(dtm100m))
plot(fa, main = 'Accumulated flow')

ilyamaclean/microclima documentation built on Sept. 5, 2024, 8:37 p.m.