Get all variable names from nc file

cfvar_names(nc)

Arguments

nc

An object of class ncdf4 (as returned from ncOpen), indicating what file to read from.