Learn R Programming

habtools (version 1.1.1)

detect_drop: Detect a sudden drop, edge, or overhang in a DEM

Description

Detect a sudden drop, edge, or overhang in a DEM

Usage

detect_drop(data, d = 0.1)

Value

A RasterLayer marking edges. Values indicate maximum height difference of surrounding cells.

Arguments

data

DEM of class RasterLayer.

d

The threshold height difference to define a drop.

Examples

Run this code
edges <- detect_drop(horseshoe, d = 0.2)

raster::plot(horseshoe)
raster::plot(edges)

Run the code above in your browser using DataLab