vignettes/rfate_tutorial_2_params.Rmd
rfate_tutorial_2_params.Rmd
FATE
requires a quite large number of parameters, which
are stored into .txt
files, presented to and recovered by
the software.
These parameters can be of 3 types :
.tif
(lighter) or .img
To enumerate these settings, 2 types of flag can be found and used within the parameter files :
--PARAM_NAME--
--GLOBAL_PARAMS-- FATE_simulation/DATA/GLOBAL_PARAMETERS/Global_parameters_V1.txt --MASK-- FATE_simulation/DATA/MASK/mask.tif --PFG_PARAMS_LIFE_HISTORY-- FATE_simulation/DATA/PFGS/SUCC/SUCC_PFG1.txt FATE_simulation/DATA/PFGS/SUCC/SUCC_PFG2.txt ...
In this way, each parameter can have several values (filenames), and
each line corresponds to a value.
The transition to a new parameter is made thanks to the presence of a
new flag on the next line.
PARAM_NAME
NAME H2_dryGrass MATURITY 3 LONGEVITY 11 MAX_ABUNDANCE 1 CHANG_STR_AGES 0 10000 10000 10000 10000 ...
Each line corresponds to a parameter, given by the flag (parameter name in capital letters) followed by all values linked to this flag on the same line. Each value has to be separated from another by a space.
The function PRE_FATE.skeletonDirectory allows to create a user-friendly directory tree to store all parameter files and data.
1. Simulation parameterization
2. For each PFG : behavior and characteristics
3. Parameter management