Calculate an inverse-distance-weighted elevation estimate — Stepped terrain
Calculate an inverse-distance-weighted elevation estimate — a worked case for stepped terrain, with explicit data, a sensitivity comparison and an independent evidence check.

The measurement question
Inverse-distance weighting lets an analyst examine exactly how nearby spot heights influence an estimate. For an illustrative location, three observations have elevations 10, 12, and 14 m at distances 5, 10, and 20 m. With a distance exponent of two, their unnormalised weights are 0.04, 0.01, and 0.0025; the resulting elevation is approximately 10.57 m. The closest point dominates, which is intentional but can be misleading beside a ridge or embankment. Specify the search neighbourhood and distance exponent together, and compare the result against withheld observations instead of treating a visually smooth interpolated surface as evidence that its elevations are correct.
This is an educational case with constructed input data. It is not a report of a completed NiVO project, a flight authorization, a product performance guarantee, or evidence that the photographed location was surveyed for this example.
Case conditions and evidence
The example contains an upper terrace and a lower work surface. A single reference elevation can hide a substantial change in sensor-to-surface distance. Keep the two surfaces separate during the first comparison and identify which height reference was actually used for every recorded observation.
Compare an independently checked location on each terrace. Do not use a point on the upper surface to claim that the lower surface has the same error or observation geometry.

Reproduce the numerical check
Illustrative input data: First elevation (z1) = 10 m; Second elevation (z2) = 12 m; Third elevation (z3) = 14 m; Distance to first observation (d1) = 5.4 m; Distance to second observation (d2) = 10 m; Distance to third observation (d3) = 20 m; Distance exponent (power) = 2 dimensionless.
Calculation: (z1/d1**power+z2/d2**power+z3/d3**power)/(1/d1**power+1/d2**power+1/d3**power).
IDW elevation = 10.641114 m.
The calculation below checks one part of the evidence chain. Keep the stated units and assumptions. The output does not replace field observations, the equipment manual, or an independent assessment of the complete deliverable.
Change one assumption
Increase only distance to first observation (d1) from 5.4 to 5.94 m. Re-evaluating the same equation gives idw elevation = 10.734542 m. The arithmetic difference from the baseline is 0.093427986 m.
For the comparison, only the explicitly listed input changes. All other quantities stay fixed. This isolates the mathematical response; weather, image texture, viewing geometry and equipment behaviour can change together in a real mission, so do not interpret the comparison as a flight test.
Interpret the result
Set the neighbourhood from the terrain and sampling design rather than accepting a visually pleasing default. Use a more appropriate constrained surface method where ridges, walls, drainage lines, or other breaks control elevation between samples.
Uneven sampling can overwhelm sparse areas with clusters, while extrapolation remains weak outside observations. Distance exponent, search radius, barriers, and inconsistent vertical references can materially change the result without adding any new field evidence.
Separate an arithmetic result from a verified measurement. A precise number can still be based on an uncertain input. Test the assumption with an independent observation before applying the result to an acceptance decision; retain the original value when the independent check disagrees.
Independent checks and delivery
Recalculate weights for one location and conduct leave-out checks using observations excluded from fitting. Map residuals by terrain type and distance to the nearest observation, so an overall average does not hide local weaknesses.
Package the height reference, the terrace boundary and the observed transition zone. State where the surface was not directly observed and where a model filled a gap.
Deliver the original observations, the calculation inputs, their units, the processing settings and an exception log alongside the interpreted output. A reviewer should be able to repeat the arithmetic and identify which observations support the conclusion. Preserve rejected observations with reasons instead of silently removing them.



