Skip to content

avkoehl/confluence

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

confluence

Given a vector stream network, compute topology and derived attributes: Strahler order, mainstem, network and path IDs, upstream/downstream queries, and cross sections.

from confluence import analyze_network

annotated = analyze_network(vector_network)

Derived network attributes: Strahler order with inlets/outlets, mainstem, path id, and reach/upstream/downstream lengths

Only the largest connected network (by network_id) is shown.

from confluence import create_cross_sections

cross_sections = create_cross_sections(
    annotated.geometry, interval_distance=200, width=500
)

Cross-section lines generated at regular intervals along the stream network

Regenerate: uv run --group example python examples/plot.py

About

Label stream network with topology attributes (stream order, mainstem), build cross sections

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages