terrain() functionterrain_.RdThis modified version of raster::terrain() can compute curvature. See details.
terrain_(x, opt = "slope", unit = "radians", neighbors = 8, filename = "", ...)
| x | raster |
|---|---|
| opt | type of metrics |
| unit | radians or tangent |
| neighbors | default to queen case |
| filename | passed to WriteRaster |
a raster with the computed metrics
Author: Robert J. Hijmans Date : February 2011 Version 1.0 Licence GPL v3 Modified by Herve Guillon, November 2017 Added options for computation of planform and profile curvature