pastas.stressmodels.RechargeModel.get_water_balance#

RechargeModel.get_water_balance(p=None, tmin=None, tmax=None, freq=None)[source]#

Method to obtain the water balance components.

Parameters
  • p (array_like, optional) – array_like object with the values as floats representing the model parameters.

  • tmin (string, optional) –

  • tmax (string, optional) –

  • freq (string, optional) –

Returns

wb – Dataframe with the water balance components, both fluxes and states.

Return type

pandas.DataFrame

Notes

This method return a data frame with all water balance components, fluxes and states. All ingoing fluxes have a positive sign (e.g., precipitation) and all outgoing fluxes have negative sign (e.g., recharge).

Warning

This is an experimental method and may change in the future.

Examples

>>> sm = ps.RechargeModel(prec, evap, ps.Gamma(), ps.rch.FlexModel(),
>>>                       name="rch")
>>> ml.add_stressmodel(sm)
>>> ml.solve()
>>> wb = sm.get_water_balance(ml.get_parameters("rch"))
>>> wb.plot(subplots=True)