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 |
|---|---|---|---|---|
|
raster file |
The map of the drainage directions. |
||
|
raster file |
The map of total contributing area. |
||
|
raster file |
The map of the network. |
||
|
vector file |
The monitoringpoints vector map. |
||
|
Double |
m² |
The desired area of the sub-basins, in squared map units. |
|
|
Double |
% |
The allowed deviation from the desired area. |
Outputs
Parameter |
Type |
Unit |
Description |
|---|---|---|---|
|
output file |
The map of the numbered network links. |
|
|
output file |
The map of the sub-basins of each link. |
|
|
output file |
The map of the sub-basins aggregated to the desired size. |
|
|
output file |
Output mindmap (plantuml). |
|
|
output file |
Output desired mindmap (plantuml). |
|
|
output file |
The optional geoframe topology output file. |
|
|
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.¶