[1]:
import earthkit.hydro as ekh
import matplotlib.pyplot as plt
StreamorderΒΆ
Streamorder is used in hydrology to indicate the level of branching in a river network and commonly used for topological properties and estimating river importance. There exist numerous different types of streamorder, with
Strahler streamorder
Shreve streamorder
available in the streamorder submodule.
[2]:
network = ekh.river_network.load("efas", "5", use_cache=False)
Cache disabled.
Cache disabled.
[3]:
da = ekh.streamorder.strahler(network)
da.plot.contourf(cmap="viridis", levels=100)
plt.show()
[4]:
da = ekh.streamorder.shreve(network)
da.plot.contourf(cmap="viridis", levels=100)
plt.show()