oss.edf | R Documentation |
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.
oss.edf(x)
x |
SpatRaster, SpatialPixelsDataFrame or RasterLayer* object |
SpatRaster* object
#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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.