pastas.stressmodels.RechargeModel.set_stress#

pastas.stressmodels.RechargeModel.set_stress(prec: pandas.Series | None = None, evap: pandas.Series | None = None, temp: pandas.Series | None = None, settings: str | pastas.typing.StressSettingsDict | None = None, metadata: dict[str, Any] | None = None) None#

Set the stress time series for the RechargeModel.

Parameters:
  • prec (pandas.Series, optional) – pandas.Series with pandas.DatetimeIndex containing the precipitation series. By default this is None.

  • evap (pandas.Series, optional) – pandas.Series with pandas.DatetimeIndex containing the potential evaporation series. By default this is None.

  • temp (pandas.Series, optional) – pandas.Series with pandas.DatetimeIndex containing the temperature series. By default this is None.

  • settings (str or dict, optional) – The settings of the time series. By default this is None. This can be a string referring to a predefined settings dict (defined in ps.rcParams[“timeseries”]), or a dict with the settings to apply. For more information refer to time series settings section on class initialization for more information.

  • metadata (dict, optional) – Dictionary with metadata of the stress time series.

Return type:

None