|
|
|
|
|
# Run IBASAM in R
|
|
|
# INPUT
|
|
|
|
|
|
1. Load Ibasam library:
|
|
|
1. Model parameterization
|
|
|
|
|
|
By default, Ibasam use the [default parameters](https://github.com/Ibasam/IBASAM/blob/master/IBASAM/src/defaultParameters.h).
|
|
|
Ibasam load the default parameters using the function [defaultParameters()](
|
|
|
https://github.com/Ibasam/IBASAM/blob/master/IBASAM/R/defaultParameters.R). One can change parameters by modifying values in [defaultParameters.h](https://github.com/Ibasam/IBASAM/blob/master/IBASAM/src/defaultParameters.h) and then compile a new package (see [installation](installation) section), or by modifying [demoIbasam](https://github.com/Ibasam/IBASAM/blob/master/IBASAM/R/demoIbasam.R) function as :
|
|
|
|
|
|
In R:
|
|
|
|
|
|
> source(demoIbasam.R)
|
|
|
|
|
|
|
|
|
# OUTPUT
|
|
|
|
|
|
1. Load Ibasam library in R:
|
|
|
> library(Ibasam)
|
|
|
|
|
|
2. Run a simulation using the [demoIbasam](https://github.com/Ibasam/IBASAM/blob/master/IBASAM/R/demoIbasam.R) function:
|
... | ... | @@ -17,17 +30,7 @@ demoIbasam(nYears, CC_Temp, CC_Amp, plotting = TRUE, window = FALSE, returning = |
|
|
* CC_Temp: increase of average water temperature (in degrees Celsius) over the simulation (ex: CC_Temp = 3).
|
|
|
* CC_Amp: increase of amplitude of water flow over the simulation (ex: CC_Amp = 1.25, i.e. +25%).
|
|
|
|
|
|
3. Model parameterization
|
|
|
|
|
|
By default, Ibasam use the [default parameters](https://github.com/Ibasam/IBASAM/blob/master/IBASAM/src/defaultParameters.h).
|
|
|
Ibasam load the default parameters using the function [defaultParameters()](
|
|
|
https://github.com/Ibasam/IBASAM/blob/master/IBASAM/R/defaultParameters.R). One can change parameters by modifying values in [defaultParameters.h](https://github.com/Ibasam/IBASAM/blob/master/IBASAM/src/defaultParameters.h) and then compile a new package (see [installation](installation) section), or by modifying [demoIbasam](https://github.com/Ibasam/IBASAM/blob/master/IBASAM/R/demoIbasam.R) function as :
|
|
|
|
|
|
|
|
|
In R:
|
|
|
|
|
|
> source(demoIbasam.R)
|
|
|
|
|
|
|
|
|
|
|
|
4. Sensitivity |
|
|
\ No newline at end of file |
|
|
# Sensitivity |
|
|
\ No newline at end of file |