sdq: Root Mean Square Slope of Surface

View source: R/sdq.R

sdqR Documentation

Root Mean Square Slope of Surface

Description

Calculates the root mean square slope of a raster or matrix surface using the two-point method.

Usage

sdq(x)

Arguments

x

A raster or matrix.

Value

A numeric value representing the two-point root mean square slope, Sdq. The units of the returned value are change in z per one unit (pixel).

References

This function is based on the equations found at https://www.ntmdt-si.ru/data/media/files/manuals/image_analisys_p9_nov12.e.pdf.

Examples

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

# calculate root mean square slope
Sdq <- sdq(normforest)

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