RRIMin: RRIMin: Minimum Radial Roughness index

View source: R/GeostTextureLibrarySharedRoxy.R

RRIMinR Documentation

RRIMin: Minimum Radial Roughness index

Description

Same as RRI but instead of computing the mean of the absolute differences of order 2, the minimum is computed. The input is the DEM (no need to detrend).

Usage

RRIMin(x, ...)

## S3 method for class 'numeric'
RRIMin(x, ...)

## S3 method for class 'SpatRaster'
RRIMin(x, ..., .method = c("rcpp", "r"))

Arguments

x

A DEM as a SpatRaster or a vector of numeric values from a focal window in a DEM from which to compute the index

...

reserved for future use

.method

Either r or rcpp (fast batch processing using C++, still to implement)

Value

isotropic roughness (in the same units of input)

References

Trevisani S., Teza G., Guth P.L., 2023. Hacking the topographic ruggedness index. Geomorphology https://doi.org/10.1016/j.geomorph.2023.108838

Examples

library(terra)
dem= rast(paste(system.file("extdata", package = "SurfRough"), "/trento1.tif",sep=""))
roughRRImin=RRIMin(dem)
plot(roughRRImin)

SurfRough documentation built on April 4, 2025, 2:19 a.m.