geoprimsField-grade geospatial math

Volume change between two DEM grids

The volume gained, lost, and net between a before and an after grid of elevations on the same cells, with an optional minimum change below which a cell counts as unchanged.

5.1m³

The surface gained 5.4 m³ and lost 0.3 m³, a net change of 5.1 m³.

Volume gained
Volume lost
Area changed
Mean change
Cells compared
Cells skipped
Provenance
Computed by
raster.terrain.dem-difference-volume 1.0.0, core 0.1.0
Model
The DEM of difference: each grid point stands for a cell of the cell size squared, as in a raster, and its change d = after − before is set to zero when |d| is under the minimum change; net volume = Σd × cell², gained = Σ(d > 0) × cell², lost = Σ(−d for d < 0) × cell²
Accuracy
Exact for the cell model on the elevations given; the true volume also depends on each survey's vertical error, which the minimum change is there to screen out
Notes
None
Cites
Wheaton, J. M., Brasington, J., Darby, S. E., and Sear, D. A., Earth Surface Processes and Landforms, Accounting for uncertainty in DEMs from repeat topographic surveys: improved sediment budgets

Something look off?

Your values

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

Loading…

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

Model: The DEM of difference: each grid point stands for a cell of the cell size squared, as in a raster, and its change d = after − before is set to zero when |d| is under the minimum change; net volume = Σd × cell², gained = Σ(d > 0) × cell², lost = Σ(−d for d < 0) × cell²

Accuracy: Exact for the cell model on the elevations given; the true volume also depends on each survey's vertical error, which the minimum change is there to screen out

When to use this: Use this when two surveys of the same ground are on the same grid and you want how much material moved: a stockpile measured twice, a slope after a slide, a river bar after a flood, or cut and fill against an existing surface. Give both grids, the cell size, and, if you know your surveys' vertical error, a minimum change so noise does not count as volume.

Limitations: Both grids must have the same cells in the same order; this does not resample or align them. Each point stands for a whole square cell, so volumes along the edges and on coarse grids are approximate. A minimum change set too low counts survey noise as volume, and one set too high drops real change; Wheaton and others (2010) set it from the two surveys' errors. At most 300 by 300 cells.

Worked example: A stockpile on a 1 m grid, with a 5 cm minimum change. Source: NumPy on the same grids (tools/vectors/gen_dem_grid.py). It is golden test vector v001, and every build checks the tool still gives its answer within its tolerance.

You enter

After grid
10.0, 10.4, 10.6, 10.1 10.2, 11.3, 11.8, 10.3 9.9, 10.2, 10.5, 9.8
Before grid
10.0, 10.0, 10.0, 10.0 10.0, 10.0, 10.0, 10.0 10.0, 10.0, 10.0, 10.0
Cell size
1 m
Minimum change
0.05 m

You get

Net volume change
5.1 m³
Volume gained
5.4 m³
Volume lost
0.3 m³
Area changed
11 m²
Mean change
0.425 m
Cells compared
12
Cells skipped
0

Review: Not yet independently reviewed by a GIS professional.

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

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

Changes

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

Sources

Terms

DEM: digital elevation model
A grid of elevations. A surface model includes buildings and canopy; a terrain model is the ground beneath them. Source: Copernicus DEM GLO-30