sv: Calculates the Maximum Valley Depth of a Surface Image

View source: R/basics.R

svR Documentation

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)

Arguments

x

A raster or matrix.

Value

A numeric value of maximum valley depth.

Examples

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

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

geodiv documentation built on Oct. 6, 2023, 1:07 a.m.