readNcdfVarName: Get name of variable in netCDF file

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


Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.