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
Adapterwhich means that it makes existing or known flows available over time (but dosent calculate a process). This class is meant to force a stand-aloneFlowGraphrunoff outside the context of aModel. The calculated lateral flows (in cubic feet per second) are availble from the current_value property.See
FlowGraphfor discussion and an example.- __init__(parameters, sroff_vol, ssres_flow_vol, gwres_flow_vol)[source]#
Instantiate an HruSegmentFlowAdapter.
- Parameters:
parameters (
Parameters) – AParametersobject forPRMSChannel.ssres_flow_vol (
Adapter) – An Adapter of subsurface reservoir outflow volumegwres_flow_vol (
Adapter) – An Adapter of groundwater reservoir outflow volume
Methods
__init__(parameters, sroff_vol, ...)Instantiate an HruSegmentFlowAdapter.
advance()Advance the Segement inflows in time.
Attributes
Current time of the Adapter instance.
- property current#
Current time of the Adapter instance.