sph: Calculates the Maximum Peak Height of a Surface Image

View source: R/basics.R

sphR Documentation

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)

Arguments

x

A raster or matrix.

Value

A numeric value of maximum peak height.

Examples

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

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

bioXgeo/geodiv documentation built on Oct. 17, 2023, 5:58 a.m.