pastas.recharge.Peterson.simulate#

pastas.recharge.Peterson.simulate(prec: pastas.typing.ArrayLike, evap: pastas.typing.ArrayLike, p: pastas.typing.ArrayLike, dt: float = 1.0, return_full: bool = False, **kwargs) pastas.typing.ArrayLike | tuple[pastas.typing.ArrayLike, pastas.typing.ArrayLike, pastas.typing.ArrayLike, pastas.typing.ArrayLike]#

Simulate the recharge flux.

Parameters:
  • prec (array_like) – Precipitation flux in mm/d. Must have the same length as evap.

  • evap (array_like) – Potential evapotranspiration flux in mm/d.

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

  • dt (float, optional) – time step for the calculation of the recharge.

  • return_full (bool) – return all fluxes and states as NumPy arrays.

Returns:

r – Recharge flux calculated by the model is the argument full_output is False, otherwise a list with all fluxes and states.

Return type:

array_like or list of array_like