Diffusion

Introduction

The determination of the neighbourhood of one or more target locations may depend not only on distance - cases of which we have discussed above - but also on direction and differences in the terrain in different directions. This is typically the case when the target location contains “source material” that spreads over time, referred to as diffusion

This “source material” may be air, water, soil pollution, commuters exiting a train station, people from an refugee camp that has just been opened up , a natural spring on a hillside, or radio waves emitted from a radio relay station. In all these cases, one will not expect the spread to occur evenly in all directions. There will be local factors that influence the spread, making it easier or more difficult. Many GISs provide support for this type of computation. We will discuss some of the principles here - in the context of raster data.

Explanation

Diffusion computation involves one or more target locations, which in this context are better called source locations: they are the locations of the source of whatever spreads. The computation also involves a local resistance raster , which for each cell provides a value that indicates how difficult it is for the “source material” to pass through that cell. The value in the cell must be normalized, i.e. valid for a standardized length (usually the cell’s width) of spread path. From the source location(s) and the local resistance raster, the GIS will be able to compute a new raster that indicates how much minimal total resistance the spread has undergone before reaching a raster cell.

While computing total resistances, the GIS takes proper care of the path lengths. Obviously, the diffusion from a cell csrc to its neighbour cell to the east ce is shorter than to the cell that is its northeastern neighbour cne. The distance ratio between these two cases is 1∕√2. If val (c) indicates the local resistance value for cell c, the GIS computes the total incurred resistance for diffusion from csrc to ce as 1(val(csrc) + val(ce)), while the same for csrc to cne is 1(val(csrc) + val(cne)) ×√2. The accumulated resistance along a path of cells is simply the sum of these incurred resistances from pairwise neighbour cells. Since “source material” has the habit of taking the easiest route to spread, we must determine at what minimal “cost” (i.e. at what minimal resistance) it may have arrived in a cell. Therefore, we are interested in the minimal cost path. To determine the minimal total resistance along a path from the source location csrc to an arbitrary cell cx, the GIS determines all possible paths from csrc to cx and then determines which one has the lowest total resistance.

Examples

Figure: Computation of diffusion on a raster. The lower-left green cell is the source location, indicated in the local resistance raster (a). The raster in (b) is the minimal total resistance raster computed by the GIS. (The GIS will work in real arithmetic of higher precision than that illustrated here.)

The value is found, for each cell, in the raster of Figure b.

For instance, there are three paths from the green source location to its northeast neighbour cell (with local resistance 5). We can define them as path 1 (N–E), path 2 (E–N) and path 3 (NE), using compass directions to define the path from the green cell. For path 1, the total resistance is computed as:

%201%2F2(4%20%2B%204)%20%2B%201%2F2(4%20%2B%205)%20%3D%208.5.
Equation 1

Path 2, in similar style, gives us a total value of 6.5. For path 3, we find:

1%2F2(4%20%2B%205)%5Ctimes%20%5Csqrt%7B2%7D%20%3D%206.36%2C
Equation 2

and, thus, it is obviously the minimal cost path.

Learning outcomes

  • 11 - Spatial analysis: classes of functions

    Classify and explain spatial analysis functions (measurements, classification, overlay, neighbourhood and connectivity) in a raster and vector environment (level 1 and 2).

Prior knowledge

Self assessment

The reader is asked to verify one or two other values of minimal cost paths that the GIS has produced for the output raster.

Outgoing relations

Learning paths