Hi, is there an option that I can use XyGrib to convert a grib2 file into a grib 1 file? Or does anyone know a tool for this?

Mazhathullikilukkam movie songs free download. I know there is software like wgrib2 that will convert files in grib and grib2 format to NetCDF files, but I need to go the other way: from NetCDF to grib2, because the local weather offices here can only consume gridded data in grib2 format.
It appears that one solution could be in Python, using the NetCDF4-Python library (or other) to read the NetCDF files and using pygrib to write grib2.
Is there a better way?
msi_gervaAfter some more research, I ended up using the British Met Office 'Iris' package (http://scitools.org.uk/iris/docs/latest/index.html) which can read NetCDF as well as OPeNDAP, GRIB and several other formats, and allows to save as NetCDF or GRIB.
Basically the code looks like:
But if your netcdf file doesn't contain sufficient metadata, you may need to add it, which you can also do with Iris. Here's a full working example:
Rich SignellRich SignellOne can also use climate data operators (cdo's) for the task -https://code.zmaw.de/projects/cdo/wiki
but need to install the software with all additional libraries.
msi_gervaI know CDO is mentioned above, but I thought it would be useful to give the full command
Adrian TompkinsAdrian TompkinsECMWF has a command line based tool to do just this: https://software.ecmwf.int/wiki/display/GRIB/grib_to_netcdf

