H2cd

The hillslope to channel distance is the length of the path the water follows on a hillslope before reaching the network. With the velocity of the water on the hillslopes, it gives the time the water of each cell needs to reach a channel, and its distribution over a basin is one of the components of the hydrological response, with the distance along the network.

The distance is measured along the drainage directions, in number of cells or in meters, also in 3D with the elevation. The network cells get 0, as the cells whose path leaves the map without reaching the network.

Parameters

Calculates the hillslope to channel distance: the distance of each cell from the network, along the drainage directions, in number of cells or in meters. The network cells get 0, as the cells whose path leaves the map without reaching the network.

Toolbox folder: Hillslope
Status: Certified
Keywords: Hillslope, Network, Distance
Authors: Erica Ghesla, Antonello Andrea, Cozzini Andrea, Franceschi Silvia, Pisoni Silvano, Rigon Riccardo
Class: org.hortonmachine.modules.H2cd

Inputs

Parameter

Type

Unit

Default

Description

inFlow

raster file

The map of the drainage directions.

inNet

raster file

The map of the network.

inElev

raster file

m

The optional map of the elevation, to measure the distances in 3D, with the meters mode.

pMode

int

0

The unit of the distance: 0 for the number of cells, 1 for meters.

Outputs

Parameter

Type

Unit

Description

outH2cd

output file

cells or m

The map of the hillslope to channel distance.

References

  • D’Odorico, P., Rigon, R. (2003). Hillslope and channel contributions to the hydrologic response. Water Resources Research, 39(5), 1113.

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.H2cd

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

var h2cd = new H2cd()
h2cd.inFlow = folder + "drain.tif"
h2cd.inNet = folder + "net.tif"
// the distance in meters, in 3D
h2cd.pMode = 1
h2cd.inElev = folder + "pit.tif"
h2cd.outH2cd = folder + "h2cd.tif"
h2cd.process()
The hillslope to channel distance of the sample area, in meters, measured in 3D, with the network of ExtractNetwork.

The hillslope to channel distance of the sample area, in meters, measured in 3D, with the network of ExtractNetwork.