[SciPy-User] NetCDF to GRIB2 Conversion

Whitcomb, Mr. Tim tim.whitcomb at nrlmry.navy.mil
Wed Aug 19 12:48:06 EDT 2009


 
> I need to bulk convert files from NetCDF to GRIB2 files.  Has anyone
had to deal do this kind of conversion?

There are a few things that come up on a web search, but we're in the
process of writing some GRIB converters now.  You're going to need some
sort of mapping between variable types, level types, the center/model
that the data is from, but when it comes to actually reading and writing
the data with Python, there are two modules that I've found useful:

For reading and writing GRIB2 files:
http://code.google.com/p/pygrib2/

For dealing with NetCDF files:
http://code.google.com/p/netcdf4-python/

I use NumPy to handle any of the numeric operations required.

Hope this helps - and good luck.

Tim



More information about the SciPy-User mailing list