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)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
)Regenerate: uv run --group example python examples/plot.py

