nc_variables: List the variables in a netcdf file.

Description Usage Arguments Value Examples

View source: R/variables.R

Description

This function will tell you the variables in a netcdf file.

Usage

1
nc_variables(ff, detailed = FALSE)

Arguments

ff

This is the file to read variables from.

details

Do you want a data frame that provides the long name and units of the variable?

Value

list of variables

Examples

1
2
3
4
5
# Get the variable names in the NOAA WOA sample file
ff <- system.file("extdata", "woa18_decav_t01_01.nc", package = "rcdo")
nc_variables(ff)
# A data frame showing the variables, their long names and units
nc_variables(ff, details = TRUE)

r4ecology/rcdo documentation built on July 21, 2019, 9 p.m.