oss.edf: Calculate Euclidean Distance Fields from a raster

View source: R/oss.edf.R

oss.edfR Documentation

Calculate Euclidean Distance Fields from a raster

Description

Calculate Euclidean distance fields for an input raster. Calculate distance from each raster cell to NW, NE, SW, SE, Y max, X max and middle of the raster. Outputs to a SpatRaster.

Usage

oss.edf(x)

Arguments

x

SpatRaster, SpatialPixelsDataFrame or RasterLayer* object

Value

SpatRaster* object

Examples

#Calculate Euclidean distance fields from a DEM raster
library(terra)
data(keene)
keene<- terra::rast(keene, type="xyz")
terra::crs(keene)<- "epsg:26917"
oss.edf(keene)



newdale/onsoilsurvey documentation built on Jan. 5, 2024, 1:35 a.m.