pastas.model.Model.get_output_series#

Model.get_output_series(tmin=None, tmax=None, add_contributions=True, split=True)[source]#

Method to get all the modeled output time series from the Model.

Parameters:
  • tmin (str, optional) – String with a start date for the simulation period (E.g. ‘1980’). If none is provided, the tmin from the oseries is used.

  • tmax (str, optional) – String with an end date for the simulation period (E.g. ‘2010’). If none is provided, the tmax from the oseries is used.

  • add_contributions (bool, optional) – Add the contributions from the different stresses or not.¬

  • split (bool, optional) – Passed on to ml.get_contributions. Split the contribution from recharge into evaporation and precipitation. See also ml.get_contributions.

Returns:

df – Pandas DataFrame with the time series as columns and DatetimeIndex.

Return type:

pandas.DataFrame

Notes

Export the observed, simulated time series, the noise and residuals series, and the contributions from the different stressmodels.

Examples

>>> df = ml.get_output_series(tmin="2000", tmax="2010")
>>> df.to_csv("fname.csv")