|
From: Eric F. <ef...@ha...> - 2009-06-11 22:09:29
|
Gökhan SEVER wrote: > On Thu, Jun 11, 2009 at 1:09 PM, JPKay <ka...@va... > <mailto:ka...@va...>> wrote: > > > Hello, > I am trying to use matplotlib to create a quiver plot of a NetCDF > file with > the extension .nc. The Netcdf file is a series of arrays that contain > information about the stress tensors on a globe. > > I am struggling to import the file into python and having the quiver > data > show up. > To import the file I have been using: > “ncdump file.nc <http://file.nc>” > > > Any thoughts would be appreciated. > Thanks, > Jon > -- > View this message in context: > http://www.nabble.com/Quiver-plot-of-a-netcdf-file-tp23986313p23986313.html > Sent from the matplotlib - users mailing list archive at Nabble.com. > > > I recommend you to check netcdf4-python > (http://code.google.com/p/netcdf4-python/) > You can load both netcdf3 and 4 files. Additionally, there are date > conversion utilities which help to do transforms between numbers and > dates and vice versa. Caution: it's great, and I use it, but it is not trivial to build and install. I think the OP would do best to start with pupynere. The web site for download looks like it is working: http://pypi.python.org/pypi/pupynere/ Eric |