R/detect_drop.R
detect_drop.Rd
Detect a sudden drop, edge, or overhang in a DEM
detect_drop(data, d = 0.1)
DEM of class RasterLayer.
The threshold height difference to define a drop.
A RasterLayer marking edges. Values indicate maximum height difference of surrounding cells.
edges <- detect_drop(horseshoe, d = 0.2) raster::plot(horseshoe) raster::plot(edges)