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


--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to