sq | R Documentation |
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.
sq(x)
x |
A raster or matrix. |
A value of root mean square roughness in the units of the original raster or matrix.
# import raster image
data(normforest)
normforest <- terra::unwrap(normforest)
# find the surface roughness
roughness <- sq(normforest)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.