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, args = character())

Arguments

sim_folder

the directory where simulation files are contained

verbose

should output of GLM be shown

args

Optional arguments to pass to GLM executable

Author(s)

Jordan Read, Luke Winslow

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
sim_folder <- system.file('extdata', package = 'GLMr')
run_glm(sim_folder)
## Not run: 
out_file <- file.path(sim_folder,'output.nc')
nml_file <- file.path(sim_folder,'glm2.nml')
library(glmtools)
fig_path <- tempfile("temperature", fileext = '.png')
plot_temp(file = out_file, fig_path = fig_path)
cat('find plot here: '); cat(fig_path)

## End(Not run)

GLEON/GLMr documentation built on June 4, 2020, 7:14 a.m.