NetDiff

Calculates, for each stretch of the river network, the difference of a quantity between its upstream and downstream ends, and assigns it to all the cells of the stretch. With the elevation, it gives the drop of each link or branch, the base of the slope of the channels and of the stream power along the network.

The stretches are defined by a map of the network with a value for each of them, as the links of NetNumbering. The drainage directions must have the outlet marked with the value 10, for example with MarkOutlets.

Details

The stream map splits the network in stretches of cells with the same value, for example the Strahler order or the link numbers of NetNumbering. Every cell of a stretch gets the absolute difference of the input map between the first, most upstream, and the last cell of the stretch: with the elevation and the Strahler order, the drop along each Strahler branch; with the link numbers, the drop of each link. The cells outside the network are no-data.

Parameters

Calculates the difference between the value of a quantity in one point and the value of the same quantity in another point across a basin

Toolbox folder: Network
Status: Certified
Keywords: Network, Pitfiller, OmsDrainDir, OmsFlowDirections
Authors: Daniele Andreis, Erica Ghesla, Antonello Andrea, Cozzini Andrea, Franceschi Silvia, Pisoni Silvano, Rigon Riccardo
Class: org.hortonmachine.modules.NetDiff

Inputs

Parameter

Type

Unit

Default

Description

inFlow

raster file

The map of flowdirections.

inStream

raster file

The map of the stream.

inRaster

raster file

The map of to evaluate the difference.

Outputs

Parameter

Type

Unit

Description

outDiff

output file

The map of difference.

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

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

var netDiff = new NetDiff()
// the drainage directions of the basin of ExtractBasin, with the outlet marked
netDiff.inFlow = folder + "drain_marked.tif"
// the links of NetNumbering
netDiff.inStream = folder + "netnum.tif"
// the drop of the elevation along each link
netDiff.inRaster = folder + "pit.tif"
netDiff.outDiff = folder + "netdiff.tif"
netDiff.process()
The elevation drop of each link of the network of the basin of ExtractBasin, in meters: the steep source links drop the most.

The elevation drop of each link of the network of the basin of ExtractBasin, in meters: the steep source links drop the most.