geoprimsField-grade geospatial math

Terrain curvature

Total, profile, and plan curvature for the center of a 3 x 3 elevation window by Zevenbergen and Thorne’s method, with what each means for water running over the cell.

-100

The total curvature is -100 per 100 m. Downhill the ground flattens, so water slows down.

Profile curvature
Plan curvature
Down the slope
Across the slope
Provenance
Computed by
raster.terrain.curvature 1.1.0, core 0.1.0
Model
Zevenbergen and Thorne (1987): D = ((z4 + z6)/2 − z5)/dx², E = ((z2 + z8)/2 − z5)/dy², F = (z3 + z7 − z1 − z9)/(4 dx dy), G = (z6 − z4)/(2 dx), H = (z2 − z8)/(2 dy); total = −2(D + E), profile = −2(DG² + EH² + FGH)/(G² + H²), plan = −2(DH² + EG² − FGH)/(G² + H²), each times 100, positive for convex
Accuracy
Exact evaluation of the formulas; exact for any surface that is quadratic across the window.
Notes
None
Cites
Zevenbergen, L. W., and Thorne, C. R., Earth Surface Processes and Landforms, Quantitative analysis of land surface topography; xDEM contributors, GlacioHack, xDEM terrain curvature

Something look off?

Your values

Showing an example. Change anything.
Run many at once from a CSV

Loading…

How we got thisFormula, worked example, sources, and proof

Model: Zevenbergen and Thorne (1987): D = ((z4 + z6)/2 − z5)/dx², E = ((z2 + z8)/2 − z5)/dy², F = (z3 + z7 − z1 − z9)/(4 dx dy), G = (z6 − z4)/(2 dx), H = (z2 − z8)/(2 dy); total = −2(D + E), profile = −2(DG² + EH² + FGH)/(G² + H²), plan = −2(DH² + EG² − FGH)/(G² + H²), each times 100, positive for convex

Accuracy: Exact evaluation of the formulas; exact for any surface that is quadratic across the window.

When to use this: Use this to see how the ground bends at a cell, which slope alone does not say: whether a slope steepens or flattens downhill, which speeds up or slows down running water, and whether the contours bow out over a spur, where water spreads, or curl into a hollow, where it gathers. These are the measures behind erosion, landslide, and soil-moisture mapping, and checking one cell by hand is how a GIS layer of them is tested.

Limitations: Programs disagree on the sign and the scale of these measures: some multiply by 100 as this does, some do not, and some flip the sign of profile curvature so that negative means convex. Here positive is convex in all three, so check the convention before comparing numbers. The values depend strongly on the cell size and on noise in the elevation model, since they are second differences: a small error in one elevation moves them a lot. On flat ground there is no downhill direction, so profile and plan curvature are not given.

Worked example: xDEM directional-curvature example. Source: xDEM 0.2.3 profile_curvature example: profile curvature -100 per 100 m; its matching tangential-curvature example gives 0.

You enter

Cell size
1 m
Elevation window
1, 2, 4 1, 2, 4 1, 2, 4

You get

Total curvature
-100
Profile curvature
-100
Plan curvature
0
Down the slope
flattens, so water slows down
Across the slope
contours run straight

Review: Not yet independently reviewed by a GIS professional.

Last verified: 2026-10-09, when a maintainer last confirmed this tool's sources at the issuer. See the sources ledger.

Status: version 1.1.0, core 0.1.0. See this tool in the verification report.

Changes

Checked against: 24 golden test vectors (download the test vectors, each with its source and tolerance). See how results are checked and every source.

Constants this tool assumes

Values you do not enter, and where each comes from.

WGS 84 semi-major axis, for cell sizes given in degrees
6378137 m — Department of Defense World Geodetic System 1984
WGS 84 inverse flattening, for cell sizes given in degrees
298.257223563 — Department of Defense World Geodetic System 1984

Sources