leastcostpath (version 1.2.1)

create_traversal_cs: create_traversal_cs

Description

Creates a Traversal across slope Cost Surface

Usage

create_traversal_cs(dem, neighbours = 16)

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, or 16. Default is 16

Value

TransitionLayer (gdistance package) numerically expressing the difficulty of moving across slope based on figure given in Bell and Lock (2000). The traversal_cs TransitionLayer should be multiplied by the create_slope_cs TransitionLayer, resulting in a TransitionLayer that takes into account movement across slope in all directions.

Details

Creates a cost surface based on the difficulty of traversing **(across)** slope. Difficulty of traversal is based on the figure given in Bell and Lock (2000). Traversal across slope accounts for movement directly perpendicular across slope being easier than movement diagonally up/down slope.

Examples

Run this code
# NOT RUN {
r <- raster::raster(system.file('external/maungawhau.grd', package = 'gdistance'))
traversal_cs <- create_traversal_cs(r, neighbours = 16)
# }

Run the code above in your browser using DataLab