Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #46649
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!news.unit0.net!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <andipersti@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.038 |
| X-Spam-Evidence | '*H*': 0.92; '*S*': 0.00; 'keys,': 0.09; 'python': 0.11; '[4]:': 0.16; 'andreas': 0.16; 'bye,': 0.16; 'wrote:': 0.18; 'variable': 0.18; '>>>': 0.22; 'header:User-Agent:1': 0.23; 'looks': 0.24; '(or': 0.24; 'header:In-Reply-To:1': 0.27; 'thus': 0.29; 'names.': 0.31; 'received:google.com': 0.35; 'i.e.': 0.36; 'should': 0.36; 'list': 0.37; 'received:10': 0.37; 'skip:o 20': 0.38; 'message-id:@gmail.com': 0.38; 'to:addr:python-list': 0.38; 'list,': 0.38; 'to:addr:python.org': 0.39; 'skip:x 10': 0.40; 'skip:n 10': 0.64; 'surrounding': 0.68 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=lDN2EAKPBTwSoMfYuMahgttstTjXiNwC79AuJIdaHiw=; b=tKgyuk+wTP1o0b56++os79sK72MQLu8jDfaIymYFJMbM0ZAYvZKnvPq4QFaa4W8yMA 3WW7+ICTbt28l4pfF3kxOsicZiNOZBceLnhvcnNr99o/cMvVvZB5F2+TzAMbEjjgn0DQ +MZ7h4B0lAyXynh2kkKv70O0QvUL7OtL9jaO49WEwmKTNX5lkZHQxC/yCoQi3u6NBbLn Cja0R+HuCuuAaKHJF2pvrCJcYxZs070pSeROvGOrMfi2FKz/+sseSbg3Y/e8FlqOTaZ3 QB9cbDyxTqVZjq+W8RPHRx496mFvQi2PvMZ3gy0RWqAXKZtH39UIapZz+SsD/0iXOhxm pVSA== |
| X-Received | by 10.14.251.193 with SMTP id b41mr15577691ees.126.1370071264601; Sat, 01 Jun 2013 00:21:04 -0700 (PDT) |
| Date | Sat, 01 Jun 2013 09:21:01 +0200 |
| From | Andreas Perstinger <andipersti@gmail.com> |
| User-Agent | Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: netcdF4 variables |
| References | <de9d0c8d-d7cc-45a8-a53e-06efed145700@googlegroups.com> |
| In-Reply-To | <de9d0c8d-d7cc-45a8-a53e-06efed145700@googlegroups.com> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2519.1370071265.3114.python-list@python.org> (permalink) |
| Lines | 17 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1370071265 news.xs4all.nl 15940 [2001:888:2000:d::a6]:45880 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:46649 |
Show key headers only | View raw
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