force_isotropy: Coerce an anisotropic cost surface to an isotropic cost...

View source: R/force_isotropy.R

force_isotropyR Documentation

Coerce an anisotropic cost surface to an isotropic cost surface

Description

Averages conductance values from-to adjacent cells

Usage

force_isotropy(x)

Arguments

x

conductanceMatrix

Value

conductanceMatrix

r <- terra::rast(system.file("extdata/SICILY_1000m.tif", package="leastcostpath"))

slope_cs_aniso <- create_slope_cs(x = r, cost_function = "tobler", neighbours = 4)

slope_cs_iso <- force_isotropy(x = slope_cs_aniso)


josephlewis/leastcostpath documentation built on Oct. 18, 2023, 2:03 p.m.