pastas.recharge.FlexModel.simulate#

pastas.recharge.FlexModel.simulate(prec: pastas.typing.ArrayLike, evap: pastas.typing.ArrayLike, temp: pastas.typing.ArrayLike, p: pastas.typing.ArrayLike, dt: float = 1.0, return_full: bool = False, **kwargs) pastas.typing.ArrayLike#

Simulate the soil water balance model.

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

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

  • temp (array_like) – Temperature in degrees Celsius.

  • p (array_like) – array_like object with the values as floats representing the model parameters. Must be length self.nparam.

  • dt (float, optional) – time step for the calculation of the recharge. Only dt=1 is possible now.

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

Returns:

r – Recharge flux calculated by the model.

Return type:

array_like