Learn R Programming

geodiv (version 1.1.0)

sv: Calculates the Maximum Valley Depth of a Surface Image

Description

Finds the absolute value of the lowest value in the landscape (maximum valley depth; Sv) for a raster or matrix representing a surface.

Usage

sv(x)

Value

A numeric value of maximum valley depth.

Arguments

x

A raster or matrix.

Examples

Run this code
# import raster image
data(normforest)
normforest <- terra::unwrap(normforest)

# find the maximum valley depth
Sv <- sv(normforest)

Run the code above in your browser using DataLab