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
import matplotlib.pyplot as plt
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 plot
method on StreamObject
.
[2]:
fig, ax = plt.subplots()
dem.plot(ax,cmap="terrain")
s.plot(ax=ax,color='k');