ExtractNetwork

Defines the river network as the cells draining a large enough area. The threshold sets how far upstream the channels begin: lower values give a denser network. It is best chosen comparing the result with the channels visible in maps or imagery.

Parameters

Extracts the river network as a raster: the cells whose total contributing area exceeds a threshold, optionally combined with the slope or the topographic classes.

Toolbox folder: Network
Status: Certified
Keywords: Network, Channels, Total contributing area, Threshold
Authors: Andrea Antonello, Franceschi Silvia, Erica Ghesla, Andrea Cozzini, Silvano Pisoni
Class: org.hortonmachine.modules.ExtractNetwork

Inputs

Parameter

Type

Unit

Default

Description

inTca

raster file

The map of the total contributing areas.

inFlow

raster file

The map of the drainage directions, needed in the modes with slope or topographic classes.

inSlope

raster file

The optional map of slope.

inTc3

raster file

The optional map of aggregated topographic classes.

pThres

int

0

The threshold for a cell to be part of the network. In the only tca mode it is the minimum total contributing area, in number of cells: lower values give a denser network.

pMode

String

only tca

The criterion for the network cells. Allowed values: only tca, tca and slope, tca in convergent sites.

pExp

double

0.5

Exponent of the total contributing area in the modes with slope or topographic classes.

Outputs

Parameter

Type

Unit

Description

outNet

output file

The extracted network raster.

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

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

var extractNetwork = new ExtractNetwork()
extractNetwork.inTca = folder + "tca.tif"
extractNetwork.inFlow = folder + "drain.tif"
// the channels start where 100 cells drain into a cell
extractNetwork.pThres = 100
extractNetwork.outNet = folder + "net.tif"
extractNetwork.process()
The network of the sample area, extracted with a threshold of 100 cells: 1 ha, with cells of 10 m.

The network of the sample area, extracted with a threshold of 100 cells: 1 ha, with cells of 10 m.