... | ... | @@ -48,15 +48,15 @@ During simulations, three temporal series of environmental features influenced t |
|
|
|
|
|
1. These series can be observed data for the parameterization of the model (see [section](riverclimate)). To do so, use the R functions called from the [demoIbasam](IBASAM/IBASAM/R/demoIbasam.R) file:
|
|
|
|
|
|
[code](https://github.com/Ibasam/IBASAM/blob/0a80e276155c90c66fe19db7ad2c315796ad6f08/IBASAM/R/demoIbasam.R#L22-L24)
|
|
|
|
|
|
1. Load your data:
|
|
|
|
|
|
* Load your data:
|
|
|
``` R
|
|
|
mm <- data.frame(temperatures=your_temp_data, logrelflow=your_flow_data)
|
|
|
```
|
|
|
with *mm* being a data frame containing daily water temperatures (in Celsius) and water flow (log of m^3/s) over the period to be simulated (years*365).
|
|
|
|
|
|
2. Comment the [line](https://github.com/Ibasam/IBASAM/blob/0a80e276155c90c66fe19db7ad2c315796ad6f08/IBASAM/R/demoIbasam.R#L7) corresponding to the river_climate_model function (which generates environmental values):
|
|
|
* Comment the [line](https://github.com/Ibasam/IBASAM/blob/0a80e276155c90c66fe19db7ad2c315796ad6f08/IBASAM/R/demoIbasam.R#L7) corresponding to the river_climate_model function (which generates environmental values):
|
|
|
``` R
|
|
|
demoIbasam <-
|
|
|
function (nYears, CC_Temp, CC_Amp, plotting = TRUE, window = FALSE, returning = FALSE,
|
... | ... | @@ -70,8 +70,9 @@ function (nYears, CC_Temp, CC_Amp, plotting = TRUE, window = FALSE, returning = |
|
|
setup_environment_parameters(def$envParam)
|
|
|
...
|
|
|
```
|
|
|
See [code](https://github.com/Ibasam/IBASAM/blob/0a80e276155c90c66fe19db7ad2c315796ad6f08/IBASAM/R/demoIbasam.R#L22-L24)
|
|
|
|
|
|
3. Load the modified demoIbasam function:
|
|
|
* Load the modified demoIbasam function:
|
|
|
``` R
|
|
|
source(demoIbasam.R)
|
|
|
```
|
... | ... | |