Nabla¶
Calculates the nabla, or laplacian, of the elevation: the sum of its second derivatives along two perpendicular directions. It is the simplest measure of the curvature of the terrain, without a direction: positive in the concave sites, as the valleys and the hollows, negative in the convex ones, as the ridges and the noses. Unlike the Curvatures, it does not separate the curvature along the slope from the one across it.
As every second derivative, the nabla amplifies the noise of the elevation: on detailed elevation models, a coarser resolution gives more readable maps.
With a threshold, the module gives a mask of the clearly convex sites instead, with 1 where the nabla is lower than minus the threshold.
Details¶
The laplacian is the mean of two estimates from the 3x3 window around the cell: one with the four neighbours along the rows and the columns, one with the four diagonal neighbours. Its unit is 1/m, the inverse of the length unit of the map.
The cells of the border of the map have no value. The cells next to a novalue get the mean nabla of their neighbours.
With a threshold, the output is a mask: 1 where the nabla is lower than minus the threshold, the clearly convex sites, and in the cells next to a novalue; 0 in the rest, planar and concave sites.
Parameters¶
Calculates the nabla, or laplacian, of the elevation in each cell: the sum of its second derivatives in two perpendicular directions, which measures the curvature of the terrain. Positive values mark concave sites, as valleys, negative values convex sites, as ridges. With a threshold, it creates a mask of the convex sites instead.
Toolbox folder: Geomorphology
Status: Certified
Keywords: Geomorphology, Nabla, Gradient
Authors: Antonello Andrea, Daniele Andreis, Erica Ghesla, Cozzini Andrea, Franceschi Silvia, Pisoni Silvano, Rigon Riccardo
Class: org.hortonmachine.modules.Nabla
Inputs
Parameter |
Type |
Unit |
Default |
Description |
|---|---|---|---|---|
|
raster file |
The map of the digital elevation model (DEM or pit). |
||
|
Double |
An optional threshold on the nabla, in 1/m: if set, the output is the mask of the cells with a nabla below minus the threshold. |
Outputs
Parameter |
Type |
Unit |
Description |
|---|---|---|---|
|
output file |
The map of the nabla, in 1/m, or the mask of the convex sites if a threshold is set. |
Example¶
The example runs on the sample elevation model of the manual, dtm_flanginec.tif in docs/manual/modules/maps/data, each module on the outputs of the previous ones:
import org.hortonmachine.modules.Nabla
// the folder with the elevation model: change it to yours
var folder = "/data/flanginec/"
var nabla = new Nabla()
nabla.inElev = folder + "pit.tif"
nabla.outNabla = folder + "nabla.tif"
nabla.process()
The nabla of the sample area: positive, in red, in the channels and the hollows, negative on the ridges. The colors span from the 2nd to the 98th percentile of the values.¶