set_nml | R Documentation |
This function sets values in nml object for GLM config.
set_nml(glm_nml, arg_name, arg_val, arg_list = NULL)
glm_nml |
a nml (a list) for GLM config |
arg_name |
a string representing a valid field in glm_nml |
arg_val |
value for the valid field in glm_nml specified by |
arg_list |
a list made up of valid |
glm_nml a modified nml
Jordan S. Read
get_nml_value, read_nml
sim_folder <- run_example_sim(verbose = FALSE)
nml_file <- file.path(sim_folder, 'glm3.nml')
glm_nml <- read_nml(nml_file)
get_nml_value(glm_nml, arg_name = 'Kw')
glm_nml <- set_nml(glm_nml, arg_name = 'Kw', arg_val = 1.4)
glm_nml <- set_nml(glm_nml, arg_list = list('Kw' = 1.4))
print(glm_nml)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.