FATE simulationR/PRE_FATE.skeletonDirectory.R
PRE_FATE.skeletonDirectory.RdThis script is designed to create a user-friendly directory
tree to run a FATE simulation.
PRE_FATE.skeletonDirectory(name.simulation = "FATE_simulation")A directory tree with folders to contain the parameter files, the simulation files and the results.
FATE requires only one input parameter (see
PRE_FATE.params_simulParameters),
which is a file containing the names of parameter files,
which may themselves contain
parameters (e.g. succession, dispersal files...)
or other file names (e.g. disturbance or environmental change masks).
The user could give names of files stored everywhere on a machine, and does
not have to put them all in one same place.
But as this is more practical, this function proposes a way to
organize all those files or parameter files that will or could be
used by a FATE simulation.
The tree structure is detailed below :
DATAthis folder will contain all the data or parameters that are needed by the model
GLOBAL_PARAMETERSfiles containing global parameters for
the simulation
(see PRE_FATE.params_globalParameters)
MASKraster maps used in the model
SCENARIOfiles containing information about changes in
raster maps input
(see PRE_FATE.params_changingYears)
SAVEfiles containing information about simulation times
to save outputs
(see PRE_FATE.params_savingYears)
PFGSSUCClife history parameter files
(see PRE_FATE.params_PFGsuccession)
LIGHTresponse to light interaction parameter files
(see PRE_FATE.params_PFGlight)
SOILresponse to soil interaction parameter files
(see PRE_FATE.params_PFGsoil)
DISPdispersal parameter files
(see PRE_FATE.params_PFGdispersal)
HABSUIThabitat suitability maps
DISTresponse to disturbances parameter files
(see PRE_FATE.params_PFGdisturbance)
DROUGHTresponse to drought disturbance parameter files
(see PRE_FATE.params_PFGdrought)
ALIENSaliens introduction maps
PARAM_SIMULthis folder will contain simulation files that can be
given as input to the software
(see
PRE_FATE.params_simulParameters)
RESULTSthis folder will collect all the results produced by the software with a folder for each simulation
NB :
All the functions of the RFate package are based on this folder
structure.
## Create a skeleton folder with the default name ('FATE_simulation') ------------------------
PRE_FATE.skeletonDirectory()
## Create a skeleton folder with a specific name ---------------------------------------------
PRE_FATE.skeletonDirectory(name.simulation = 'FATE_AlpineForest')