User Tools

Site Tools


calculate_distance

This is an old revision of the document!


Calculate distance to specific cell type

This script calculates the distance from each cell to the nearest cell of a specific type (e.g. a road).

The script can be used used in the Carbon storage and wood production example, to calculate the distance to roads (node Distance_road) directly in gBay.

Download the script

Download the carbon sequestration network and spatial data to run the network with gBay.

Input:

  • discrete raster (1 band for each state)
  • number of the state of interest (e.g. roads = state number 0)

Output:

  • hard evidence on a continuous node
calculate_distance.1551190682.txt.gz · Last modified: 2023/04/21 15:30 (external edit)