PRE_FATE.params_simulParameters: Create _Simul_parameters_ parameter file for a 'FATE'...

Description Usage Arguments Details Value Note Author(s) See Also Examples

View source: R/PRE_FATE.params_simulParameters.R

Description

This script is designed to create one (or several) parameter file containing PARAMETER FILENAMES used in FATE model.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
PRE_FATE.params_simulParameters(
  name.simulation,
  name.MASK,
  name.SAVED_STATE = NULL,
  name.DIST = NULL,
  name.DROUGHT = NULL,
  name.FIRE = NULL,
  name.ELEVATION = NULL,
  name.SLOPE = NULL,
  opt.global.name = NULL,
  opt.folder.name = NULL
)

Arguments

name.simulation

a string corresponding to the main directory or simulation name of the FATE simulation

name.MASK

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)

name.SAVED_STATE

(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

name.DIST

(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)

name.DROUGHT

(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)

name.FIRE

(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)

name.ELEVATION

(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)

name.SLOPE

(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)

opt.global.name

(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

opt.folder.name

(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

Details

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.

GLOBAL_PARAMS

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)

SAVING_DIR

directory where simulation outputs will be stored

SAVED_STATE (optional)

file containing the results of a previous FATE simulation from which to restart this new simulation

SAVING_YEARS_
ARRAYS (optional)

file containing the years for which simulation maps will be saved
(see PRE_FATE.params_savingYears)

SAVING_YEARS_
OBJECTS (optional)

file containing the years for which simulation outputs will be saved
(see PRE_FATE.params_savingYears)

MASK

raster mask that will define the study area

MASK_CHANGEMASK_YEARS
(optional)

file containing the years to change rasters for the succession module
(see PRE_FATE.params_changingYears)

MASK_CHANGEMASK_FILES
(optional)

file containing the files to change rasters for the succession module
(see PRE_FATE.params_changingYears)

PFG_PARAMS_
LIFE_HISTORY

PFG life history related parameters (one by PFG)
(see PRE_FATE.params_PFGsuccession)

PFG_PARAMS_
LIGHT (optional)

PFG light preferences and tolerance related parameters (one by PFG)
(see PRE_FATE.params_PFGlight)

PFG_PARAMS_
SOIL (optional)

PFG soil contribution and tolerance related parameters (one by PFG)
(see PRE_FATE.params_PFGsoil)

PFG_PARAMS_
DISPERSAL (optional)

PFG dispersal capacity related parameters (one by PFG)
(see PRE_FATE.params_PFGdispersal)

PFG_MASK_HABSUIT
(optional)

raster masks (one by PFG) containing PFG habitat suitability for the study area

HABSUIT_CHANGEMASK_YEARS
(optional)

file containing the years to change rasters for the habitat suitability module
(see PRE_FATE.params_changingYears)

HABSUIT_CHANGEMASK_FILES
(optional)

file containing the files to change rasters for the habitat suitability module
(see PRE_FATE.params_changingYears)

PFG_PARAMS_
DISTURBANCES (optional)

PFG disturbance related parameters in terms of resprouting and mortality (one by PFG)
(see PRE_FATE.params_PFGdisturbance)

DIST_MASK
(optional)

raster masks that will define the disturbance areas

DIST_CHANGEMASK_YEARS
(optional)

file containing the years to change rasters for the disturbance module
(see PRE_FATE.params_changingYears)

DIST_CHANGEMASK_FILES
(optional)

file containing the files to change rasters for the disturbance module
(see PRE_FATE.params_changingYears)

PFG_PARAMS_DROUGHT
(optional)

PFG drought disturbance related parameters in terms of resprouting and mortality (one by PFG)
(see PRE_FATE.params_PFGdrought)

DROUGHT_MASK
(optional)

raster mask that will define the drought intensity of the area

DROUGHT_CHANGEMASK_YEARS
(optional)

file containing the years to change rasters for the drought disturbances module
(see PRE_FATE.params_changingYears)

DROUGHT_CHANGEMASK_FILES
(optional)

file containing the files to change rasters for the drought disturbances module
(see PRE_FATE.params_changingYears)

PFG_MASK_ALIENS
(optional)

raster masks (one by alien) containing alien introduction zones for the study area

ALIENS_CHANGEMASK_YEARS
(optional)

file containing the years to change rasters for the aliens introduction module
(see PRE_FATE.params_changingYears)

ALIENS_CHANGEMASK_FILES
(optional)

file containing the files to change rasters for the aliens introduction module
(see PRE_FATE.params_changingYears)

ALIENS_CHANGEFREQ_YEARS
(optional)

file containing the years to change frequencies for the aliens introduction module
(see PRE_FATE.params_changingYears)

ALIENS_CHANGEFREQ_FILES
(optional)

file containing the files to change frequencies for the aliens introduction module
(see PRE_FATE.params_changingYears)

PFG_PARAMS_FIRE
(optional)

PFG fire disturbance related parameters in terms of resprouting and mortality (one by PFG)
(see PRE_FATE.params_PFGdisturbance)

FIRE_MASK
(optional)

raster mask that will define the fire disturbance areas

FIRE_CHANGEMASK_YEARS
(optional)

file containing the years to change rasters for the fire disturbances module
(see PRE_FATE.params_changingYears)

FIRE_CHANGEMASK_FILES
(optional)

file containing the files to change rasters for the fire disturbances module
(see PRE_FATE.params_changingYears)

FIRE_CHANGEFREQ_YEARS
(optional)

file containing the years to change frequencies for the fire disturbances module
(see PRE_FATE.params_changingYears)

FIRE_CHANGEFREQ_FILES
(optional)

file containing the files to change frequencies for the fire disturbances module
(see PRE_FATE.params_changingYears)

ELEVATION_MASK
(optional)

raster mask that will define the elevation of the area

SLOPE_MASK
(optional)

raster mask that will define the slope of the area

Value

A .txt file into the name.simulation/PARAM_SIMUL/ directory with the following parameters :

Note

Author(s)

Maya Guéguen

See Also

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

Examples

1
2
3
4
           
## ----------------------------------------------------------------------------------------- ##
                                
## Load example data

MayaGueguen/RFate documentation built on Oct. 17, 2020, 8:06 a.m.