powered by
Detect a sudden drop, edge, or overhang in a DEM
detect_drop(data, d = 0.1)
A RasterLayer marking edges. Values indicate maximum height difference of surrounding cells.
DEM of class RasterLayer.
The threshold height difference to define a drop.
edges <- detect_drop(horseshoe, d = 0.2) raster::plot(horseshoe) raster::plot(edges)
Run the code above in your browser using DataLab