netcdf read

Jason Swails jason.swails at gmail.com
Tue Sep 1 17:10:45 EDT 2015


On Tue, Sep 1, 2015 at 2:07 PM, Chris Angelico <rosuav at gmail.com> wrote:

> On Wed, Sep 2, 2015 at 3:23 AM,  <jorge.conrado at cptec.inpe.br> wrote:
> > 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.
>
> My crystal ball tells me you're probably running Windows.
>

​Or Mac OS X.  Unless you go out of your way to specify otherwise, the
default OS X filesystem is case-insensitive.

All the best,
Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20150901/0b70da7b/attachment.html>


More information about the Python-list mailing list