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 |
|---|---|---|---|---|
|
raster file |
The map of the total contributing areas. |
||
|
raster file |
The map of the drainage directions, needed in the modes with slope or topographic classes. |
||
|
raster file |
The optional map of slope. |
||
|
raster file |
The optional map of aggregated topographic classes. |
||
|
int |
|
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. |
|
|
String |
|
The criterion for the network cells. Allowed values: |
|
|
double |
|
Exponent of the total contributing area in the modes with slope or topographic classes. |
Outputs
Parameter |
Type |
Unit |
Description |
|---|---|---|---|
|
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.¶