CalculateTerrainMetric: Calculate terrain metrics on elevation RasterLayer

Description Usage Arguments Details Value

View source: R/gis.R

Description

Calculate terrain metrics on elevation RasterLayer

Usage

1
CalculateTerrainMetric(elev, size, metric)

Arguments

elev

RasterLayer, elevation data raster

size

numeric, dimensions of analysis window (nrow and ncol). Must be odd number. When size == 0, it is internally converted to size == 1 which is necessary for the metric to be calculated (and not just revert to the 'elev' layer. This was done to allow an optimization procedure to include a "sigma = 0", even though that would be identical to size == 1.

metric

character, vector containing one of these options: tpi, tri, roughness (see Details)

Details

metrics based on examples given in terrain() in 'raster' package

Value

RasterLayer


Blakemassey/gisr documentation built on Aug. 30, 2020, 12:14 a.m.