Derive, modify and plot the stream network

Derive, modify and plot the stream network#

The stream network is a subset of the flow network. Often, this subset is defined as having a minimum upstream area. The idea is that if upstream area exceeds a critical value than flow becomes channelized in stream networks.

StreamObject stores stream networks. Here we simply assume that streams initiate at upstream areas greater than 1000 pixels.

[1]:
import topotoolbox as tt3

dem = tt3.load_dem('tibet')
fd  = tt3.FlowObject(dem);
s   = tt3.StreamObject(fd,threshold=1000,units='pixels')

Plot the stream network#

The stream network can be plotted using the show method on StreamObject. By passing the dem to the overlay parameter, the stream network is displayed on top of the DEM.

[2]:
s.show(overlay=dem)
../_images/tutorial_stream_3_0.png