The climate in the simulated river was described by daily water temperature and flow. As explained in the [input](howtouse) section, the time series of temperature and flow of a real river can be used for parameterization purpose or specific simulations.
However, for further simulations and to obtain realistic replicates of time series of these two environmental factors, a random autoregressive sinusoidal function was used for each of these factors:
Link to [code](https://github.com/Ibasam/IBASAM/blob/master/IBASAM/R/sinus_model_resid_ar.R)