Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

CDO supports GRIB2 but needs the GRIB_API library from ECMWF in order to work correctly. If you find the CDO commands below do not work, you can either build CDO yourself, making sure a recent version of grib_api is used, or you can use a workaround below. Use the grib_set command (from the grib_api installation) to change the GRIB edition number for all messages. Note this will only work if you are using less than 128 model levels and it does not actually convert the message to GRIB1 if there are any GRIB2 specific elements in the messages.

 

Code Block
titleWorkaround if CDO does not understand GRIB2
grib_set -s editionNumber=1 <input grib2 file> <output grib1 file>
Warning

Note this will only work if you are using less than 128 model levels and it does not actually convert the message to GRIB1 if there are any GRIB2 specific elements in the messages.

CDO can be used to interpolate from the reduced Gaussian grid to a regular Gaussian grid (model resolutions T21 & T42 use a regular Gaussian grid)

...

Excerpt Include
Credits
nopaneltrue
Credits