netcdF4 variables
Andreas Perstinger
andipersti at gmail.com
Sat Jun 1 03:21:01 EDT 2013
On 01.06.2013 05:30, Sudheer Joseph wrote:
> some hing like a list
> xx=nc,variables[:]
> should get me all variable names with out other surrounding stuff??
>
> In [4]: ncf.variables
> Out[4]: OrderedDict([(u'LON', <netCDF4.Variable object at 0x254aad0>),
[SNIP]
It looks like "variables" is an OrderedDict. Thus
>>> ncf.variables.keys()
should return a view (or list, depending on your python version) of all
keys, i.e. all variable names.
Bye, Andreas
More information about the Python-list
mailing list