Learn R Programming

geodiv (version 1.1.0)

sph: Calculates the Maximum Peak Height of a Surface Image

Description

Finds the absolute value of the highest value in the landscape (maximum peak height; Sph) for a raster or matrix representing a surface.

Usage

sph(x)

Value

A numeric value of maximum peak height.

Arguments

x

A raster or matrix.

Examples

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

# find the maximum peak height
Sph <- sph(normforest)

Run the code above in your browser using DataLab