View source: R/sim_var_longname.R
sim_var_longname | R Documentation |
Get long name of variable from a GLM simulation
sim_var_longname(file = "output.nc", var_name)
file |
a string with the path to the netcdf output from GLM |
var_name |
name of a valid variable from a simulation (see |
Jordan S. Read
sim_vars
, sim_var_units
sim_folder <- run_example_sim(verbose = FALSE)
nc_file <- file.path(sim_folder, 'output/output.nc')
vars <- sim_vars(file = nc_file)
sim_var_units(nc_file, vars[1,]$name)
sim_var_longname(nc_file, 'u_mean')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.