NiVO / BY TECHNOGISGermany · Indonesia
Geospatial

Calculate least-cost movement while accounting for diagonal raster distance — Partial shadow

Calculate least-cost movement while accounting for diagonal raster distance — a worked case for partial shadow, with explicit data, a sensitivity comparison and an independent evidence.

Calculate least-cost movement while accounting for diagonal raster distance — Partial shadow

The measurement question

Raster movement costs should account for the longer distance between diagonally adjacent cell centres. For a hypothetical 10 m square grid, crossing between cells with cost rates of 2 and 4 seconds per metre has an average rate of 3 s/m. An orthogonal step costs 30 seconds; a diagonal step of 10√2 m costs approximately 42.43 seconds. Ignoring this difference biases route choice toward diagonal movement. Least-cost accumulation compares complete paths rather than choosing the lowest adjacent cell greedily. The result can help plan ground access across a survey area, provided the cost raster represents meaningful effort and impassable barriers are encoded deliberately.

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: Departure cost rate (cost_i) = 2.5 s/m; Arrival cost rate (cost_j) = 4 s/m; Square cell width (cell) = 10 m.

Calculation: ((cost_i+cost_j)/2)*cell*sqrt(2).

Diagonal raster step cost = 45.961941 seconds.

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 departure cost rate (cost_i) from 2.5 to 2.75 s/m. Re-evaluating the same equation gives diagonal raster step cost = 47.729708 seconds. The arithmetic difference from the baseline is 1.767767 seconds.

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

Define cost units and barriers before choosing a least-cost tool. Compare entire routes, including distance effects, and use a direction-aware movement model if uphill, downhill, or surface conditions make reverse travel materially different.

A low accumulated cost is conditional on the raster model. Coarse cells can bridge narrow barriers, arbitrary ordinal scores may not represent additive effort, and isotropic assumptions can misstate travel across steep or direction-dependent terrain.

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

Check one horizontal and one diagonal step by hand using the tool's cost convention. Trace the resulting path across barriers and repeat at another suitable resolution to identify route changes caused mainly by grid discretisation.

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. GRASS r.cost ↗
  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