POST_FATE.relativeAbund: Create relative abundance maps for each Plant Functional...

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

View source: R/POST_FATE.relativeAbund.R

Description

This script is designed to produce raster maps of PFG simulated relative abundances for one (or several) specific FATE simulation year.

Usage

1
2
3
4
5
6
POST_FATE.relativeAbund(
  name.simulation,
  file.simulParam = NULL,
  years,
  opt.no_CPU = 1
)

Arguments

name.simulation

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

file.simulParam

default NULL.
A string corresponding to the name of a parameter file that will be contained into the PARAM_SIMUL folder of the FATE simulation

years

an integer, or a vector of integer, corresponding to the simulation year(s) that will be used to extract PFG abundance maps

opt.no_CPU

(optional) default 1.
The number of resources that can be used to parallelize the unzip/zip of raster files

Details

This function allows to obtain, for a specific FATE simulation and a specific parameter file within this simulation, raster maps of PFG relative abundance.

For each PFG and each selected simulation year, raster maps are retrieved from the results folder ABUND_perPFG_allStrata and unzipped. Informations extracted lead to the production of the same number of raster before the maps are compressed again :

These raster files can then be used by other functions :

Value

One result folder is created :

ABUND_REL_perPFG
_allStrata

containing relative abundance raster maps for each PFG across all strata

Author(s)

Maya Guéguen

See Also

POST_FATE.graphic_validationStatistics

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## Not run:                       
POST_FATE.relativeAbund(name.simulation = "FATE_simulation"
                        , file.simulParam = "Simul_parameters_V1.txt"
                        , years = 850
                        , opt.no_CPU = 1)
                                    
POST_FATE.relativeAbund(name.simulation = "FATE_simulation"
                        , file.simulParam = "Simul_parameters_V1.txt"
                        , years = c(850, 950)
                        , opt.no_CPU = 1)

## End(Not run)
                                                        
                                                        
                                                        
## ----------------------------------------------------------------------------------------- ##
## Load example data
                                    

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