NetNumbering

Gives a number to each link of the network, the stretch of channel between two confluences, and extracts the sub-basin draining into each link. With a desired area, the links are aggregated into sub-basins of about that size: these are the hydrological response units of the semi-distributed models, like the ones of the ERM workflow.

Parameters

Numbers the links of the river network and extracts the sub-basin draining into each link. With a desired area, the links are aggregated into sub-basins of about that size, which can be used as hydrological response units.

Toolbox folder: Network
Status: Certified
Keywords: Network, Sub-basins, Topology, Hydrological response units
Authors: Antonello Andrea, Franceschi Silvia, Rigon Riccardo
Class: org.hortonmachine.modules.NetNumbering

Inputs

Parameter

Type

Unit

Default

Description

inFlow

raster file

The map of the drainage directions.

inTca

raster file

The map of total contributing area.

inNet

raster file

The map of the network.

inPoints

vector file

The monitoringpoints vector map.

pDesiredArea

Double

m²

The desired area of the sub-basins, in squared map units.

pDesiredAreaDelta

Double

%

The allowed deviation from the desired area.

Outputs

Parameter

Type

Unit

Description

outNetnum

output file

The map of the numbered network links.

outBasins

output file

The map of the sub-basins of each link.

outDesiredBasins

output file

The map of the sub-basins aggregated to the desired size.

outMindmap

output file

Output mindmap (plantuml).

outDesiredMindmap

output file

Output desired mindmap (plantuml).

outGeoframeTopology

output file

The optional geoframe topology output file.

outBasinsInfo

output file

The optional basins info output file.

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

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

var netNumbering = new NetNumbering()
netNumbering.inFlow = folder + "drain_basin.tif"
netNumbering.inTca = folder + "tca.tif"
netNumbering.inNet = folder + "net_basin.tif"
netNumbering.outNetnum = folder + "netnum.tif"
netNumbering.outBasins = folder + "subbasins.tif"
netNumbering.process()
The sub-basins of the basin of ExtractBasin, one for each link of its network.

The sub-basins of the basin of ExtractBasin, one for each link of its network.