pyflwdir.partition.MainstemSection#
- class pyflwdir.partition.MainstemSection(mainstem: ndarray, predecessor: int, cut_outlets: ndarray, cut_inlets: ndarray, cut_parts: ndarray, predecessor_part: int)[source]#
The cells of one opened mainstem that are accumulated after the parts.
They run from
P_min, the most upstream mainstem cell where a tributary of another part enters, down to the pit.- predecessor#
The mainstem cell just above
P_min, held bypredecessor_part; -1 whenP_minis the source.- Type:
- cut_outlets#
The most downstream cell of each tributary that enters it, in mainstem order.
- Type:
ndarray of int
- cut_parts#
The part that holds each of
cut_outlets.- Type:
ndarray of int32
- __init__(mainstem: ndarray, predecessor: int, cut_outlets: ndarray, cut_inlets: ndarray, cut_parts: ndarray, predecessor_part: int) None#
Methods
__init__(mainstem, predecessor, cut_outlets, ...)Attributes