sq {geodiv} | R Documentation |
Calculates the Root Mean Square Roughness of a Surface
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
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
# import raster image
data(normforest)
normforest <- terra::unwrap(normforest)
# find the surface roughness
roughness <- sq(normforest)
[Package geodiv version 1.1.0 Index]