sim_var_longname: Get long name of variable from a GLM simulation

View source: R/sim_var_longname.R

sim_var_longnameR Documentation

Get long name of variable from a GLM simulation

Description

Get long name of variable from a GLM simulation

Usage

sim_var_longname(file = "output.nc", var_name)

Arguments

file

a string with the path to the netcdf output from GLM

var_name

name of a valid variable from a simulation (see sim_vars)

Author(s)

Jordan S. Read

See Also

sim_vars, sim_var_units

Examples

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')

USGS-R/glmtools documentation built on March 26, 2024, 5:43 p.m.