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


Groups > comp.lang.python > #95842 > unrolled thread

netcdf read

Started byjorge.conrado@cptec.inpe.br
First post2015-09-01 14:23 -0300
Last post2015-09-01 14:23 -0300
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

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

#95842 — netcdf read

Fromjorge.conrado@cptec.inpe.br
Date2015-09-01 14:23 -0300
Subjectnetcdf read
Message-ID<mailman.52.1441129303.23514.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web