Description Usage Arguments Details Value See Also Examples
Defines a Hi-sAFe experiment - the input parameters to one or more Hi-sAFe simulations.
1 2 3 4 5 6 7 8 9 10 11 |
path |
A character string of the path (relative or absolute) to the directory where the simulation/experiment is to be built. |
exp.name |
A character string of the name of the experiment folder. Only used if defining more than one simulation. |
profiles |
A character vector of Hi-sAFe export profiles to be exported by Hi-sAFe. If "all" (the default), then the basic set of profiles for all data levels will be exported. |
freqs |
A numeric vector of export frequencies (days) for the export profiles specified in |
template |
A character string of the path to the directory containing the template set of Hi-sAFe simulation folders/files to use. hisafer comes with a variety of "default" templates than can be used by specificying specific character strings:
|
factorial |
If |
force |
Logical indicating wether the supplied values should be forced past the constraint checks. Use |
bulk.pass |
Any Hi-sAFe input parameter in the .SIM, .PLD, .TREE, and .PAR files can be passed here grouped as a list,
just as can be passed to |
... |
Any Hi-sAFe input parameter in the .SIM, .PLD, .TREE, .PLT, .TEC, and .PAR files can be passed.
Parameters in .TREE, .PLT, and .TEC files will be applied to **all** .TREE, .PLT, and .TEC files in each simulation.
To display supported parameters, use
Passing |
It is strongly recommended to name each simulation in your experiment. This can be done via the SimulationName
parameter.
If no names are provided, then generic names of "Sim_1", "Sim_2", etc. will be generated.
The only additional input parameter that is available but not part of the input files is **weatherFile**, which specifies a path to a .WTH file to use.
An object of class "hip". This is a list of 5 elements:
"exp.plan" - A data frame (tibble) of manipulated Hi-sAFe input parameters, with each row a Hi-sAFe simulation and each column a Hi-sAFe input parameter.
"template" - A character string of the path to the directory containing the template set of Hi-sAFe simulation folders/files used.
"profiles" - A character vector of the names of the Hi-sAFe export profiles that will be exported by Hi-sAFe.
"freqs" - A numeric vector of the exportFrequencies at which the Hi-sAFe export profiles will be exported by Hi-sAFe.
"path" - A character string of the absolute path to the directory where the simulation/experiment is to be built.
If a relative path is via path
, it is converted to an absolute path to maximize "hip" object versaitility.
Other hisafe definition functions:
define_hisafe_file()
,
layer_init_params()
,
layer_params()
,
root_init_params()
,
tree_init_params()
,
variety_params()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
# To define a Hi-sAFe simulation using all default parameter values:
default.exp <- define_hisafe(path = "./")
# To define a Hi-sAFe experiment analyzing only variation in latitude:
latitude.exp <- define_hisafe(path = "./", SimulationName = c("Lat15", "Lat30", "Lat45", "Lat60"),
latitude = seq(15, 60, 15))
# To define a factorial Hi-sAFe experiment analyzing
# simultaneous variation in latitude and tree line orientation:
lat.orient.exp <- define_hisafe(path = "./",
latitude = seq(15, 60, 15),
treeLineOrientation = c(0,90))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.