Description Usage Arguments Details Value
Calculate terrain metrics on elevation RasterLayer
1 | CalculateTerrainMetric(elev, size, metric)
|
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) |
metrics based on examples given in terrain() in 'raster' package
RasterLayer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.