Learn R Programming

spatialEco (version 2.0-2)

dissection: Dissection

Description

Calculates the Evans (1972) Martonne's modified dissection

Usage

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

Value

A SpatRaster class object of Martonne's modified dissection

Arguments

x

A terra SpatRaster class object

s

Focal window size

...

Additional arguments passed to terra::lapp

Author

Jeffrey S. Evans <jeffrey_evans@tnc.org>

Details

Dissection is calculated as: ( z(s) - min(z(s)) ) / ( max(z(s)) - min(z(s)) )

Examples

Run this code
# \donttest{ 
library(terra)
elev <- rast(system.file("extdata/elev.tif", package="spatialEco"))
  d <- dissection(elev, s=3)
    plot(d, main="dissection") 
# }     

Run the code above in your browser using DataLab