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
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to