calculate_slope: calculate slope (rise over run) from supplied digital...

View source: R/calculate_slope.R

calculate_slopeR Documentation

calculate slope (rise over run) from supplied digital elevation model (DEM)

Description

calculate slope (rise over run) from supplied digital elevation model (DEM)

Usage

calculate_slope(dem, neighbours, exaggeration)

Arguments

dem

RasterLayer (raster package). Digital Elevation Model

neighbours

numeric value. Number of directions used in the Least Cost Path calculation. See Huber and Church (1985) for methodological considerations when choosing number of neighbours. Expected values are 4, 8, 16, 32, or 48. Default is 16

exaggeration

logical. if TRUE, positive slope values (ie. up-hill movement) multiplied by 1.99 and negative slope values (ie. down-hill movement) multiplied by 2.31.

Value

TransitionMatrix (gdistance package). Anisotropic Slope (rise over run) Conductivity surface

Author(s)

Joseph Lewis


leastcostpath documentation built on June 3, 2022, 9:06 a.m.