pywatershed.ObsInFlowNode#
- class pywatershed.ObsInFlowNode(control, node_obs_data)[source]#
A FlowNode that takes inflows but returns observed/specified flows.
This FlowNode replicates the obsin and obsout seg functionality in PRMS but does so by inserting a new node in a FlowGraph rather than altering the flow on an existing node. This node is NOT mass conservative and tracks a sink_source term to describe mass lost and created at each subtimestep.
See
FlowGraphfor examples and discussion.- __init__(control, node_obs_data)[source]#
Initialize an ObsInFlowNode.
- Parameters:
control (
Control) – a Control object.node_obs_data (
Series) – A pandas Series object of observations at this location given by pyPRMS.Streamflow.
Methods
__init__(control, node_obs_data)Initialize an ObsInFlowNode.
advance()Advance this FlowNode to the next timestep.
calculate_subtimestep(isubstep, ...)Calculate the subtimestep.
Finalize the current timestep at this FlowNode.
Prepare the subtimestep for subtimestep calculations.
Attributes
The average outflow of the FlowNode over the current timestep.
The outflow of the FlowNode over the sub-timestep.
Average sink and source through the last subtimestep Sink is negative, indicating that incoming flow is being discarded (if it were being stored, the storage change would be the opposite sign).
The storage of the FlowNode at the current subtimestep.
The storage change of the FlowNode at the current subtimestep.
- calculate_subtimestep(isubstep, inflow_upstream, inflow_lateral)[source]#
Calculate the subtimestep.
- property outflow#
The average outflow of the FlowNode over the current timestep.
- property outflow_substep#
The outflow of the FlowNode over the sub-timestep.
- property sink_source#
Average sink and source through the last subtimestep Sink is negative, indicating that incoming flow is being discarded (if it were being stored, the storage change would be the opposite sign). Source is positive, indicating that incoming flow is being augmented (if it were being stored, the storage change would be the opposite sign).
- property storage#
The storage of the FlowNode at the current subtimestep.
- property storage_change#
The storage change of the FlowNode at the current subtimestep.