5. Water Balance#

As the model already indicates (PCR-GLOB Water Balance), it’s all about the water balance. While the water balance computations are not direct output of PCR-GLOBWB, their components can be retrieved from the log-file.

class water_balance.water_balance(fo)[source]#

Annual water balance information of a PCR-GLOBWB run. Data is retrieved from the log-file of this run.

Parameters

fo (str) – path to log-file

bar_plot(**kwargs)[source]#

Creates a bar plot of water balance components per year. This adds to the regular plotting options with pandas dataframes.

get_annual_values()[source]#

Get annual values for a range of water balance components by parsing the log-file.

Returns

dataframe containing annual values of water balance components

Return type

dataframe