Catchment delineationΒΆ
A common task in hydrology is identifying the catchment area for a given point in a river network. This process, known as catchment delineation, involves determining the area that drains into a specific point.
In earthkit-hydro, this is accomplished by specifying certain start locations, and labelling all nodes flowing towards those start locations. If start locations belong to the same catchment, the node furthest downstream takes priority and overwrites any upstream start locations.
This can be done in earthkit-hydro using the catchments.find method.
network = ekh.river_network.load("efas", "5")
labelled_field = ekh.catchments.find(network, locations)
Subcatchments can also be found by making use of the overwrite keyword.
labelled_field = ekh.catchments.find(
network,
locations,
overwrite=False
)