Obtain factor levels from a netCDF file

ncFactorLevels(nc, factorname = NA, split = " *, *")

Arguments

nc

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

factorname

The leves of factor name will be returned. All levels will be returned if NA is specified.

split

character called by strsplit