Learn R Programming

leastcostpath (version 1.8.7)

calculate_slope: 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)

Value

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

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.

Author

Joseph Lewis