Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #95842

netcdf read

Path csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.freenet.ag!takemy.news.telefonica.de!telefonica.de!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail
Return-Path <jorge.conrado@cptec.inpe.br>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.026
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; 'lines:': 0.09; 'nameerror:': 0.09; 'received:150': 0.09; 'typed': 0.09; 'python': 0.10; 'numpy': 0.16; 'scripts.': 0.16; '"",': 0.22; 'defined': 0.23; 'import': 0.24; '(most': 0.24; 'script': 0.25; 'header:User- Agent:1': 0.26; 'this.': 0.28; "i'm": 0.30; 'work.': 0.30; 'run': 0.33; 'traceback': 0.33; 'file': 0.34; 'to:addr:python-list': 0.36; 'charset:us-ascii': 0.37; 'starting': 0.37; 'hi,': 0.38; 'why': 0.39; "didn't": 0.39; 'to:addr:python.org': 0.40; 'from:no real name:2**0': 0.60; 'please,': 0.63; 'received:br': 0.66; 'subject:read': 0.84
X-Virus-Scanned Debian amavisd-new at tornado
To python-list@python.org
Subject netcdf read
X-PHP-Originating-Script 33:rcube.php
MIME-Version 1.0
Content-Type text/plain; charset=US-ASCII; format=flowed
Content-Transfer-Encoding 7bit
Date Tue, 01 Sep 2015 14:23:34 -0300
From jorge.conrado@cptec.inpe.br
X-Sender jorge.conrado@cptec.inpe.br
User-Agent Roundcube Webmail/1.0.3
X-Mailman-Approved-At Tue, 01 Sep 2015 19:41:42 +0200
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.52.1441129303.23514.python-list@python.org> (permalink)
Lines 50
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1441129303 news.xs4all.nl 23792 [2001:888:2000:d::a6]:39529
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:95842

Show key headers only | View raw


Hi,


I'm starting in the Python scripts. I run this script:


import numpy as np

import netCDF4

f = netCDF4.Dataset('uwnd.mon.ltm.nc','r')


f.variables


and I had the message:


netcdf4.py
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
NameError: name 'netcdf4' is not defined


What can I do to solve this.



I typed  this three lines:


import netCD4

f = netCDF4.Dataset('uwnd.mon.ltm.nc','r')


f.variables


and it work.


Please, why my script didn't work.


Conrado

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

netcdf read jorge.conrado@cptec.inpe.br - 2015-09-01 14:23 -0300

csiph-web