Versions Compared

Key

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

...

CDO's -R option, to convert from reduced Gaussian grid to regular Gaussian grid, only works with GRIB 1 format (cgribex only) (as the CGRIBEX decoder this uses does not work with GRIB-2 (see cdo man page). This is a problem as multi-level output from OpenIFS is encoded as GRIB-2 data.

The preferred way to deal with this is to use the setgridtype operator as described above:

Code Block
cdo -f nc setgridtype,regular <input grib> <output netcdf>

However, if this does not work for any reason, a A workaround is to temporarily change the edition number to 1 of the GRIB file. Use the grib_set command (from ecCodes or grib_api) to change the GRIB edition number for all messages:

...