Get name of variable in netCDF file

Share:

Description

readNcdfVarName tries to automatically detect the name of the "main" variable in a netCDF file. The name returned is the name of a non coordinate variable. If more than one of such variables are existent, the name of the variable which spans all available dimensions or with a name appearing as a pattern in the file name is used.

Usage

1

Arguments

file

connection to the netCDF file.

Value

character string: name of the variable.

Author(s)

Jannis v. Buttlar

See Also

RNetCDF, infoNcdfVars

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.