pywatershed.HruSegmentFlowAdapter#

class pywatershed.HruSegmentFlowAdapter(parameters, sroff_vol, ssres_flow_vol, gwres_flow_vol)[source]#

Adapt volumetric flows from HRUs to lateral inflows on PRMS segments.

This class specifically maps from PRMS HRU outflows to PRMS segment inflows using the parameters known to PRMSChannel. This reproduces the PRMS variable hru_streamflow_out.

This class is a subclass of Adapter which means that it makes existing or known flows available over time (but dosent calculate a process). This class is meant to force a stand-alone FlowGraph runoff outside the context of a Model. The calculated lateral flows (in cubic feet per second) are availble from the current_value property.

See FlowGraph for discussion and an example.

__init__(parameters, sroff_vol, ssres_flow_vol, gwres_flow_vol)[source]#

Instantiate an HruSegmentFlowAdapter.

Parameters:

Methods

__init__(parameters, sroff_vol, ...)

Instantiate an HruSegmentFlowAdapter.

advance()

Advance the Segement inflows in time.

Attributes

current

Current time of the Adapter instance.

advance()[source]#

Advance the Segement inflows in time. Here we move to flows from flow volumes.

property current#

Current time of the Adapter instance.