LeastCostFlowDirections

LeastCostFlowDirections computes the drainage directions on the elevation model as it is, without filling the depressions. It starts from the cells at the border of the map, which become the outlets, and grows the directions upstream, always from the lowest cell reached so far: the least cost search of Metz et al. (2011), used by the r.watershed module of GRASS GIS. When the search reaches a depression, it crosses it along the lowest path, instead of filling it.

The elevation model is not changed, which matters where the depressions are real or where filling them would flatten large areas, and a single module gives the drainage directions, the contributing areas, the slope and the aspect.

Parameters

Calculates the drainage directions with a least cost search, without filling the depressions: starting from the cells at the border of the map, the outlets, the directions grow upstream, always from the lowest cell reached. The paths cross the depressions instead of filling them, which changes the elevation model less.

Toolbox folder: Geomorphology
Status: Experimental
Keywords: Geomorphology, Drainage directions, Least cost
Authors: Silvia Franceschi, Andrea Antonello
Class: org.hortonmachine.modules.LeastCostFlowDirections

Inputs

Parameter

Type

Unit

Default

Description

inElev

raster file

m

The map of the elevation, not depitted.

doTca

boolean

true

Also compute the total contributing areas.

doSlope

boolean

true

Also compute the slope along the drainage directions.

doAspect

boolean

true

Also compute the aspect.

Outputs

Parameter

Type

Unit

Description

outFlow

output file

The map of the drainage directions, with the outlets on the border marked with 10.

outTca

output file

cells

The map of the total contributing areas, in cells.

outAspect

output file

The map of the aspect.

outSlope

output file

m/m

The map of the slope along the drainage directions.

References

  • Metz, M., Mitasova, H., Harmon, R. S. (2011). Efficient extraction of drainage networks from massive, radar-based elevation models with least cost path search. Hydrology and Earth System Sciences, 15, 667-678.

Example

The example runs on the sample elevation model of the manual, dtm_flanginec.tif in docs/manual/modules/maps/data, each module on the outputs of the previous ones:

import org.hortonmachine.modules.LeastCostFlowDirections

// the folder with the elevation model: change it to yours
var folder = "/data/flanginec/"

// the drainage directions of the elevation, not depitted
var leastCost = new LeastCostFlowDirections()
leastCost.inElev = folder + "dtm_flanginec.tif"
leastCost.doSlope = false
leastCost.doAspect = false
leastCost.outFlow = folder + "flow_leastcost.tif"
leastCost.outTca = folder + "tca_leastcost.tif"
leastCost.process()
The total contributing area of the least cost drainage directions of the sample area, in cells, computed on the elevation not depitted.

The total contributing area of the least cost drainage directions of the sample area, in cells, computed on the elevation not depitted.