sq: Calculates the Root Mean Square Roughness of a Surface

Description Usage Arguments Value Examples

View source: R/basics.R

Description

Finds the root mean square roughness of a surface (Sq) as the standard deviation of surface heights from the mean surface height. Height is measured as the value of a raster and may not necessarily represent actual height.

Usage

1
sq(x)

Arguments

x

A raster or matrix.

Value

A value of root mean square roughness in the units of the original raster or matrix.

Examples

1
2
3
4
5
# import raster image
data(normforest)

# find the surface roughness
roughness <- sq(normforest)

geodiv documentation built on Sept. 5, 2021, 5:26 p.m.