run_glm: run the GLM model

Description Usage Arguments Author(s) Examples

View source: R/run_glm.R

Description

This runs the GLM model on the specific simulation stored in sim_folder. The specified sim_folder must contain a valid NML file.

Usage

1
run_glm(sim_folder = ".", verbose = TRUE, system.args = character())

Arguments

sim_folder

the directory where simulation files are contained

verbose

Logical: Should output of GLM be shown, or use 'NULL' to capture output as a character vector

system.args

Optional arguments to pass to GLM executable

Author(s)

Jordan Read, Luke Winslow, Hilary Dugan

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
sim_folder <- system.file('extdata', package = 'GLM3r')
run_glm(sim_folder)
## Not run: 
out_file <- file.path(sim_folder,'Output/output.nc')
nml_file <- file.path(sim_folder,'glm3.nml')
library(glmtools)
plot_temp(nc_file = out_file)
cat('find plot here: '); cat(fig_path)

## End(Not run)

GLEON/GLM3r documentation built on Dec. 31, 2021, 5:26 a.m.