This modified version of raster::terrain() can compute curvature. See details.

terrain_(x, opt = "slope", unit = "radians", neighbors = 8, filename = "", ...)

Arguments

x

raster

opt

type of metrics

unit

radians or tangent

neighbors

default to queen case

filename

passed to WriteRaster

Value

a raster with the computed metrics

Details

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