View source: R/create_distance_cs.R
create_distance_cs | R Documentation |
Creates a conductance matrix based on the distance between neighbouring cells. Distance corrected for if neighbours value is greater than 4.
create_distance_cs(x, neighbours = 16, max_slope = NULL, exaggeration = FALSE)
x |
|
neighbours |
|
max_slope |
|
exaggeration |
|
conductanceMatrix
that numerically expresses the difficulty of moving across slope based on the provided cost function
Joseph Lewis
r <- terra::rast(system.file("extdata/SICILY_1000m.tif", package="leastcostpath"))
distance_cs <- create_distance_cs(x = r, neighbours = 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.