build_hisafe: Build a Hi-sAFe simulation or experiment

Description Usage Arguments Value Examples

View source: R/build.R

Description

Builds a Hi-sAFe simulation or experiment (a group of simulations) - creates the folder structure and input files.

Usage

1
2
3
4
5
6
7
build_hisafe(
  hip,
  files = "all",
  plot.scene = TRUE,
  summary.files = TRUE,
  stics.diagnostics = FALSE
)

Arguments

hip

An object of class "hip". To create a hip object see define_hisafe.

files

A character string of file types indicating which simulation files to build. Use "all" to write all required simulation files. Otherwise, select one or more of "sim", "pld", "wth", "tree", "plt", "tec", "par", and "pro".

plot.scene

Logical indicating whether plot_hisafe_scene should be used to export plots of each scene during the build.

summary.files

Logical indicating whether or not to write out summary .CSV files about the experiment and each simulation during the build.

stics.diagnostics

Logical indicating whether or not STICS diagnostics files should be exported in the simulation.

Value

Invisibly returns a list containing the original hip object.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
# For a single Hi-sAFe simulation
mysim <- define_hisafe(path = "./simulations", latitude = 30)

# Building the simulation folder structure & files:
build_hisafe(mysim)

# Once a group Hi-sAFe simulations (experiment) is defined:
myexp <- define_hisafe(path = "./simulations", latitude = c(30,60))

# Building the experiment folder structure & files:
build_hisafe(myexp)

## End(Not run)

kevinwolz/hisafer documentation built on Oct. 19, 2020, 4:43 p.m.