|
From: Eric F. <ef...@ha...> - 2009-04-08 23:38:30
|
antonv wrote: > I know that using the csv files is very slow but I have no knowledge of > working with the netcdf format and I was in a bit of a rush when I wrote > this. I will take a look again at it. How would you translate a grib in > netcdf? Are there any secific applications or straight through numpy? The program you are already using is said to convert grib2 to netcdf: http://www.nws.noaa.gov/mdl/NDFD_GRIB2Decoder/ and there are several modules providing a netcdf interface for numpy. I like this one: http://code.google.com/p/netcdf4-python/ and it is included in Enthought Python Distribution. For GRIB to numpy, googling turned up http://code.google.com/p/pygrib2/ as well as PyNIO. My guess is that this (pygrib2) will be exactly what you need. It is by Jeffrey Whitaker, the author of the above-mentioned netcdf4 interface as well as of basemap. > > As for pyngl, if i remember correctly I looked at it but it was not working > on windows. Well, I recommend switching to linux anyway, but that is another story. Eric |