calculateDistances: Calculate Euclidean Distance

View source: R/fun_spatial.R

calculateDistancesR Documentation

Calculate Euclidean Distance

Description

Calculate distance to a source (e.g. a habitat type, roads, an airport) when the landscape can be converted into binary data: source = 1, pixels to compute distance for = 8888 (and rest NA, masked by a buffer layer).

Usage

calculateDistances(r)

Arguments

r

a raster with values of 1 (target pixels) and 8888 (pixels to calculate distances)

Value

a distance raster where the value is the distance (in m) to a source. Sources have a value of 0.


ecoservR/ecoserv_tool documentation built on April 5, 2025, 1:49 a.m.