FATE
simulationR/PRE_FATE.params_simulParameters.R
PRE_FATE.params_simulParameters.Rd
This script is designed to create one (or several) parameter
file containing PARAMETER FILENAMES
used in FATE
model.
PRE_FATE.params_simulParameters(
name.simulation,
name.MASK,
name.SAVED_STATE = NULL,
name.SOIL = NULL,
name.DIST = NULL,
name.DROUGHT = NULL,
name.ALIENS = NULL,
name.FIRE = NULL,
name.ELEVATION = NULL,
name.SLOPE = NULL,
opt.global.name = NULL,
opt.folder.name = NULL
)
a string
corresponding to the main directory
or simulation name of the FATE
simulation
a string
corresponding to the file name of a raster
mask, with either 0
or 1
within each pixel, 1
corresponding to the cells of the studied area in which the succession
(core) module of the FATE
simulation will take place (see
PRE_FATE.params_globalParameters
)
(optional)
a string
corresponding
to the file name of a FATE
object, obtained from a previous
simulation and from which to restart this new simulation
(optional)
a string
corresponding to
the name of a raster file, with a numeric
value within each pixel
corresponding to the initial soil resources of this pixel for the soil
interaction module of the FATE
simulation (see
PRE_FATE.params_globalParameters
)
(optional)
a string
corresponding to the
file name of a raster mask, with either 0
or 1
within each
pixel, 1
corresponding to the cells of the studied area in which the
disturbance module of the FATE
simulation will take place (see
PRE_FATE.params_globalParameters
)
(optional)
a string
corresponding to
the name of a raster file, with a numeric
value within each pixel
corresponding to the drought intensity experienced by this pixel through
the drought (or fire) disturbance module of the FATE
simulation (see
PRE_FATE.params_globalParameters
)
(optional)
a string
corresponding to the
file name of a raster mask, with either 0
or 1
within each
pixel, 1
corresponding to the cells of the studied area in which the
aliens introduction module of the FATE
simulation will take place (see
PRE_FATE.params_globalParameters
)
(optional)
a string
corresponding to the
file name of a raster mask, with either 0
or 1
within each
pixel, 1
corresponding to the cells of the studied area in which the
fire disturbance module of the FATE
simulation will take place (see
PRE_FATE.params_globalParameters
)
(optional)
a string
corresponding to
the name of a raster file, with a numeric
value within each pixel
corresponding to the elevation of this pixel and used by the fire
disturbance module of the FATE
simulation (see
PRE_FATE.params_globalParameters
)
(optional)
a string
corresponding to
the name of a raster file, with a numeric
value within each pixel
corresponding to the slope of this pixel and used by the fire
disturbance module of the FATE
simulation (see
PRE_FATE.params_globalParameters
)
(optional)
a string
corresponding
to the name of the global parameter file in the folder
name.simulation/DATA/GLOBAL_PARAMETERS/
that will be used to build
the simulation parameter file
(optional)
a string
corresponding
to the name of the folder in each name.simulation/DATA/PFGS/module/
from which PFG file names will be extracted to build the simulation
parameter file
A .txt
file into the name.simulation/PARAM_SIMUL/
directory with the following parameters :
--GLOBAL_PARAMS--
--SAVING_DIR--
--SAVED_STATE-- (optional)
--SAVING_YEARS_MAPS-- (optional)
--SAVING_YEARS_OBJECTS-- (optional)
--MASK--
--MASK_CHANGEMASK_YEARS-- (optional)
--MASK_CHANGEMASK_FILES-- (optional)
--PFG_PARAMS_LIFE_HISTORY--
--PFG_PARAMS_LIGHT-- (optional)
--PFG_PARAMS_SOIL-- (optional)
--SOIL_MASK-- (optional)
--PFG_PARAMS_DISPERSAL-- (optional)
--PFG_MASK_HABSUIT-- (optional)
--HABSUIT_CHANGEMASK_YEARS-- (optional)
--HABSUIT_CHANGEMASK_FILES-- (optional)
--PFG_PARAMS_DISTURBANCES-- (optional)
--DIST_MASK-- (optional)
--DIST_CHANGEMASK_YEARS-- (optional)
--DIST_CHANGEMASK_FILES-- (optional)
--PFG_PARAMS_DROUGHT-- (optional)
--DROUGHT_MASK-- (optional)
--DROUGHT_CHANGEMASK_YEARS-- (optional)
--DROUGHT_CHANGEMASK_FILES-- (optional)
--PFG_MASK_ALIENS-- (optional)
--ALIENS_CHANGEMASK_YEARS-- (optional)
--ALIENS_CHANGEMASK_FILES-- (optional)
--ALIENS_CHANGEFREQ_YEARS-- (optional)
--ALIENS_CHANGEFREQ_FILES-- (optional)
--PFG_PARAMS_FIRE-- (optional)
--FIRE_MASK-- (optional)
--FIRE_CHANGEMASK_YEARS-- (optional)
--FIRE_CHANGEMASK_FILES-- (optional)
--FIRE_CHANGEFREQ_YEARS-- (optional)
--FIRE_CHANGEFREQ_FILES-- (optional)
--ELEVATION_MASK-- (optional)
--SLOPE_MASK-- (optional)
--END_OF_FILE--
The FATE
software takes only one input parameter : a file
containing links to other files containing all the parameters and data
needed by the program to run.
file where parameters related to the simulation
definition are referred (e.g. number of PFG involved, number of height
strata, simulation duration, computer resources, modules loaded, etc)
(see PRE_FATE.params_globalParameters
)
directory where simulation outputs will be stored
file containing the results of a
previous FATE
simulation from which to restart this new simulation
file containing the
years for which simulation maps will be saved
(see PRE_FATE.params_savingYears
)
file containing the
years for which simulation outputs will be saved
(see PRE_FATE.params_savingYears
)
raster mask that will define the study area
file containing the years
to change rasters for the succession module
(see PRE_FATE.params_changingYears
)
file containing the files
to change rasters for the succession module
(see PRE_FATE.params_changingYears
)
PFG life history related parameters
(one by PFG)
(see PRE_FATE.params_PFGsuccession
)
PFG light preferences and
tolerance related parameters (one by PFG)
(see PRE_FATE.params_PFGlight
)
PFG soil contribution and
tolerance related parameters (one by PFG)
(see PRE_FATE.params_PFGsoil
)
raster mask that will define the initialization soil resources values
PFG dispersal
capacity related parameters (one by PFG)
(see PRE_FATE.params_PFGdispersal
)
raster masks (one by PFG) containing PFG habitat suitability for the study area
file containing the years
to change rasters for the habitat suitability module
(see PRE_FATE.params_changingYears
)
file containing the files
to change rasters for the habitat suitability module
(see PRE_FATE.params_changingYears
)
PFG disturbance
related parameters in terms of resprouting and mortality (one by PFG)
(see PRE_FATE.params_PFGdisturbance
)
raster masks that will define the disturbance areas
file containing the years
to change rasters for the disturbance module
(see PRE_FATE.params_changingYears
)
file containing the files
to change rasters for the disturbance module
(see PRE_FATE.params_changingYears
)
PFG drought disturbance
related parameters in terms of resprouting and mortality (one by PFG)
(see PRE_FATE.params_PFGdrought
)
raster mask that will define the drought intensity of the area
file containing the
years to change rasters for the drought disturbances module
(see PRE_FATE.params_changingYears
)
file containing the
files to change rasters for the drought disturbances module
(see PRE_FATE.params_changingYears
)
raster masks (one by alien) containing alien introduction zones for the study area
file containing the
years to change rasters for the aliens introduction module
(see PRE_FATE.params_changingYears
)
file containing the
files to change rasters for the aliens introduction module
(see PRE_FATE.params_changingYears
)
file containing the
years to change frequencies for the aliens introduction module
(see PRE_FATE.params_changingYears
)
file containing the
files to change frequencies for the aliens introduction module
(see PRE_FATE.params_changingYears
)
PFG fire disturbance
related parameters in terms of resprouting and mortality (one by PFG)
(see PRE_FATE.params_PFGdisturbance
)
raster mask that will define the fire disturbance areas
file containing the
years to change rasters for the fire disturbances module
(see PRE_FATE.params_changingYears
)
file containing the
files to change rasters for the fire disturbances module
(see PRE_FATE.params_changingYears
)
file containing the
years to change frequencies for the fire disturbances module
(see PRE_FATE.params_changingYears
)
file containing the
files to change frequencies for the fire disturbances module
(see PRE_FATE.params_changingYears
)
raster mask that will define the elevation of the area
raster mask that will define the slope of the area
The function produces links to files that are NOT absolute
paths BUT relative ones.
When relative paths are used, the user should be careful of the
folder from which the simulation is launched.
A function allows to transform these relative paths into absolute
ones. (see examples of .setPattern
).
The order of files matters!
For instance the first link below --PFG_PARAMS_LIFE_HISTORY--
flag
(e.g. PFG Albert) has to match with the first item below the
--PFG_PARAMS_DISPERSAL--
flag (must be PFG Albert too).
PRE_FATE.skeletonDirectory
,
PRE_FATE.params_globalParameters
,
PRE_FATE.params_PFGsuccession
,
PRE_FATE.params_PFGlight
,
PRE_FATE.params_PFGsoil
,
PRE_FATE.params_PFGdispersal
,
PRE_FATE.params_PFGdisturbance
,
PRE_FATE.params_PFGdrought
,
PRE_FATE.params_savingYears
,
PRE_FATE.params_changingYears
,
.setPattern