sim_var_units: Get units of variable from a GLM simulation

View source: R/sim_var_units.R

sim_var_unitsR Documentation

Get units of variable from a GLM simulation

Description

Get units of variable from a GLM simulation

Usage

sim_var_units(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_longname

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_units(nc_file, 'u_mean')

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