NiVO / BY TECHNOGISGermany · Indonesia
Geospatial

Calculate terrain slope from east-west and north-south derivatives — Partial shadow

Calculate terrain slope from east-west and north-south derivatives — a worked case for partial shadow, with explicit data, a sensitivity comparison and an independent evidence check.

Calculate terrain slope from east-west and north-south derivatives — Partial shadow

The measurement question

Slope is the magnitude of the terrain gradient, not either directional derivative by itself. If a hypothetical local plane rises 0.10 m per metre eastward and 0.20 m per metre northward, the combined gradient is √0.05, approximately 0.2236. This represents 22.36 percent slope or about 12.60 degrees. A directional profile along the east-west axis would show only 10 percent, so it answers a different question. Use elevations and horizontal coordinates in compatible units, then identify the gradient algorithm and neighbourhood used on a raster. Terrain noise can change derivatives noticeably even where the elevation image itself appears smooth and credible.

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 work surface includes a shadow boundary crossing otherwise similar material. A change in illumination can create an apparent difference that should not automatically be interpreted as a physical change. Tag observations by illumination condition and keep a reference patch visible in both groups where practical.

Recompute the check for lit and shaded observations separately. A pooled value can be numerically reproducible while still hiding a systematic difference between the groups.

Waves meeting the sandy shoreline at Huntington Beach, photographed vertically from a drone
Waves meeting the sandy shoreline at Huntington Beach, photographed vertically from a drone.Source: Tommy Lisbin tlisbin · CC0

Reproduce the numerical check

Illustrative input data: Eastward elevation derivative (gx) = 0.15 m/m; Northward elevation derivative (gy) = 0.2 m/m.

Calculation: 100*sqrt(gx**2+gy**2).

Maximum local slope = 25 percent.

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 eastward elevation derivative (gx) from 0.15 to 0.165 m/m. Re-evaluating the same equation gives maximum local slope = 25.927784 percent. The arithmetic difference from the baseline is 0.92778432 percent.

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

Match the slope measure to its use: maximum local terrain gradient for a slope map, or directional gradient for a planned alignment. Record units explicitly so degrees and percentages cannot be exchanged accidentally.

A slope map inherits terrain classification, resolution, interpolation, and vertical-unit problems. A single grid cell cannot describe a vertical wall reliably, and smoothing can suppress hazardous local features while making the map appear cleaner.

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

Test the workflow on a synthetic tilted plane with known derivatives. Compare selected terrain profiles with field measurements and inspect whether edge or NoData interpolation introduces artificial bands of steep slope around dataset boundaries.

Supply the illumination grouping, the acquisition times and representative original observations. Explain whether the comparison is between like conditions or across an unresolved lighting change.

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 slope ↗
  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