cdo grib2 grib processing problem??
Added by Laurens Ganzeveld over 11 years ago
Hi, I was normally using some ECMWF data to constrain 1-D model simulations but have now a problem that recent data are provided in grb2 format instead of grib. I am aware that I need to change some programs on the use of gribex/grib_api but initially wanted to solve this issue simply reformating the grib2 data to grib using cdo. It initially seemed to work but apparently in the transformation something goes wrong losing information/producing a file that doesn't contain the proper grib information. Are there any particular options/steps to be included with CDO to check out what goes wrong/to solve this problem? I am using one of the most recent versions of CDO.
Laurens Ganzeveld
Replies (2)
RE: cdo grib2 grib processing problem?? - Added by Uwe Schulzweida over 11 years ago
The conversion from grib2 to grib1 is not always lossless because the edition 2 format has been extended to allow a wider set of scientific fields to be coded. Try to use the GRIB_API for this conversion. The GRIB_API can handle grib code tables much better than CDO. Here is an example for the GRIB edition 1 to 2 conversion (https://software.ecmwf.int/wiki/display/GRIB/GRIB+edition+1+to+2+conversion). The other way around should be very similar.
RE: cdo grib2 grib processing problem?? - Added by Laurens Ganzeveld over 11 years ago
Thanks Uwe for that quick reply. I get the point and will see how I can actually start using the grib_api routines to actually do this conversion/use directly the grib2 data,
Laurens Ganzeveld