pywatershed.FlowNodeMaker#

class pywatershed.FlowNodeMaker(discretization=None, parameters=None)[source]#

FlowNodeMaker instantiates FlowNodes with their data.

See FlowGraph for related examples and discussion.

__init__(discretization=None, parameters=None)[source]#

Intitalize the FlowNodeMaker.

Parameters:
  • discretization (Parameters) – Discretization data to parcel out to the FlowNodes.

  • parameters (Parameters) – Parmeter data to parcel to the FlowNodes.

Methods

__init__([discretization, parameters])

Intitalize the FlowNodeMaker.

get_node(control, index)

Instantiate FlowNode at a given index.

get_node(control, index)[source]#

Instantiate FlowNode at a given index.

Parameters:
  • control (Control) – A Control object.

  • index (int) – The index in the discretization and parameter data to use when instantiating a FlowNode.

Return type:

FlowNode