I am writing a function in R to extract some air quality simulation data from netCDF files. I have installed the package "ncdf".
To let other users or me choose which variables are extracted from the netCDF file, I would like to extract the names of all the variables in the file so that I can list them in a simple list, not just the print.ncdf() file, to provide too much information. Is there any way to do this?
I tried unlist() in the var field of the ncdf object, but it seemed like it also returned the contents ...
I googled and looked for a stack overflow *, but didn't seem to find an answer, so your help is much appreciated.
Thank you very much in advance.
r netcdf
elarry
source share