NiVO / BY TECHNOGISGermany · Indonesia
Geospatial

Interpolate one raster sample from four neighbouring cell centres — Open rectangular block

Interpolate one raster sample from four neighbouring cell centres — a worked case for open rectangular block, with explicit data, a sensitivity comparison and an independent evidence check.

Interpolate one raster sample from four neighbouring cell centres — Open rectangular block

The measurement question

Bilinear interpolation estimates a continuous value between four grid samples. Suppose local corner values are 100, 104, 108, and 112 m, and the target lies one-quarter across and halfway down the rectangle between their centres. The weights are 0.375, 0.125, 0.375, and 0.125, producing 105 m. This is a useful hand check when a resampled elevation raster differs slightly from the nearest original cell. The interpolation changes the sampling representation; it does not create a newly surveyed elevation. Class identifiers such as land-cover codes should generally avoid this treatment because their numeric order does not represent a continuous physical quantity.

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 block has clear edges and an accessible perimeter. The initial dataset is deliberately simple so that a discrepancy can be traced to one input rather than hidden by complex geometry. Place the independent reference outside the adjustment set and record whether the reference represents bare ground or the visible surface.

Use a complete boundary walk and a small independently measured patch to test the assumptions. A neat rectangular footprint is not evidence that every part of the block has usable observations.

Overhead view of agricultural parcels and access tracks in Punjab, India
Overhead view of agricultural parcels and access tracks in Punjab, India.Source: Bhullargraphic · CC BY-SA 4.0

Reproduce the numerical check

Illustrative input data: Horizontal fractional position (u) = 0.25 fraction; Vertical fractional position (v) = 0.5 fraction; Upper-left value (z00) = 100 m; Upper-right value (z10) = 104 m; Lower-left value (z01) = 108 m; Lower-right value (z11) = 112 m.

Calculation: (1-u)*(1-v)*z00+u*(1-v)*z10+(1-u)*v*z01+u*v*z11.

Bilinearly interpolated elevation = 105 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 horizontal fractional position (u) from 0.25 to 0.275 fraction. Re-evaluating the same equation gives bilinearly interpolated elevation = 105.1 m. The arithmetic difference from the baseline is 0.1 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

Use the four-neighbour calculation to explain smooth elevation resampling and to diagnose a selected output pixel. Retain the original raster so subsequent analyses can distinguish measured grid values from values produced by interpolation.

Bilinear interpolation smooths local variation and cannot preserve sharp discontinuities automatically. Missing neighbours, masked cells, changed grid origins, and reprojection footprints require the software's documented rules rather than an assumed four-value average.

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

Locate the output centre in source-grid coordinates, record its four contributors and fractional offsets, and recompute the weighted value. Confirm the weights sum to one and check how the implementation treats missing contributors.

Retain a boundary mask, a reference-point inventory and a list of excluded areas. The recipient needs to distinguish an observed surface from an interpolation beyond the measured edge.

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.

Technical references

  1. GDAL raster reproject ↗
  2. NiVO technical workflow and supporting documentation ↗
← All articles

Related articles

All articles ↗
LET’S TAKE FLIGHT

Your next mission
starts with a conversation.

Talk to our team