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