Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #95842
| Subject | netcdf read |
|---|---|
| Date | 2015-09-01 14:23 -0300 |
| From | jorge.conrado@cptec.inpe.br |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.52.1441129303.23514.python-list@python.org> (permalink) |
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
netcdf read jorge.conrado@cptec.inpe.br - 2015-09-01 14:23 -0300
csiph-web