Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #95842 > unrolled thread
| Started by | jorge.conrado@cptec.inpe.br |
|---|---|
| First post | 2015-09-01 14:23 -0300 |
| Last post | 2015-09-01 14:23 -0300 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
netcdf read jorge.conrado@cptec.inpe.br - 2015-09-01 14:23 -0300
| From | jorge.conrado@cptec.inpe.br |
|---|---|
| Date | 2015-09-01 14:23 -0300 |
| Subject | netcdf 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
Back to top | Article view | comp.lang.python
csiph-web