tank_capacity#
module wntr.metrics.hydraulic
- tank_capacity(pressure, wn)[source]#
Compute tank capacity, the ratio of water volume stored in tanks to the maximum volume of water that can be stored.
- Parameters:
pressure (pandas DataFrame) – A pandas DataFrame containing tank water level (pressure) (index = times, columns = tank names).
wn (wntr WaterNetworkModel) – Water network model. The water network model is needed to get the tank object to compute current and max volume.
- Returns:
Tank capacity (index = times, columns = tank names)
- Return type:
pandas DataFrame