create_distance_cs {leastcostpath} | R Documentation |
Creates a distance-based conductance matrix
Description
Creates a conductance matrix based on the distance between neighbouring cells. Distance corrected for if neighbours value is greater than 4.
Usage
create_distance_cs(x, neighbours = 16, max_slope = NULL, exaggeration = FALSE)
Arguments
x |
|
neighbours |
|
max_slope |
|
exaggeration |
|
Value
conductanceMatrix
that numerically expresses the difficulty of moving across slope based on the provided cost function
Author(s)
Joseph Lewis
Examples
r <- terra::rast(system.file("extdata/SICILY_1000m.tif", package="leastcostpath"))
distance_cs <- create_distance_cs(x = r, neighbours = 4)