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.

mainstem#

Linear indices of its cells, from P_min down to the pit.

Type:

ndarray of int

predecessor#

The mainstem cell just above P_min, held by predecessor_part; -1 when P_min is the source.

Type:

int

cut_outlets#

The most downstream cell of each tributary that enters it, in mainstem order.

Type:

ndarray of int

cut_inlets#

The mainstem cell that each of cut_outlets drains into.

Type:

ndarray of int

cut_parts#

The part that holds each of cut_outlets.

Type:

ndarray of int32

predecessor_part#

The part that holds the mainstem above P_min.

Type:

int

__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