netcdF4 variables
Sudheer Joseph
sjo.india at gmail.com
Sat Jun 1 07:54:35 EDT 2013
Thank you very much it works for me.
with best regards,
Sudheer
On Saturday, June 1, 2013 12:51:01 PM UTC+5:30, Andreas Perstinger wrote:
> 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