Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #46649
| Date | 2013-06-01 09:21 +0200 |
|---|---|
| From | Andreas Perstinger <andipersti@gmail.com> |
| Subject | Re: netcdF4 variables |
| References | <de9d0c8d-d7cc-45a8-a53e-06efed145700@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2519.1370071265.3114.python-list@python.org> (permalink) |
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
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
netcdF4 variables Sudheer Joseph <sjo.india@gmail.com> - 2013-05-31 20:30 -0700
Re: netcdF4 variables Andreas Perstinger <andipersti@gmail.com> - 2013-06-01 09:21 +0200
Re: netcdF4 variables Sudheer Joseph <sjo.india@gmail.com> - 2013-06-01 04:54 -0700
csiph-web