Learn R Programming

spatialEco (version 2.0-2)

srr: Surface Relief Ratio

Description

Calculates the Pike (1971) Surface Relief Ratio

Usage

srr(x, s = 5, ...)

Value

A terra SpatRaster object of Pike's (1971) Surface Relief Ratio

Arguments

x

A terra SpatRaster object

s

Focal window size

...

Additional arguments passed to terra::lapp

Author

Jeffrey S. Evans <jeffrey_evans@tnc.org>

Details

Describes rugosity in continuous raster surface within a specified window. The implementation of SRR can be shown as: (mean(x) - min(x)) / (max(x) - min(x))

Examples

Run this code
# \donttest{
library(terra)
elev <- rast(system.file("extdata/elev.tif", package="spatialEco"))
  r.srr <- srr(elev, s=5)
    plot(r.srr, main="Surface Relief Ratio") 
 # }     

Run the code above in your browser using DataLab