...
Section | ||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
CDO supports GRIB-2 but needs either the grib_api or ecCodes library from ECMWF to be included. This is necessary in order to work correctly with OpenIFS model output.
Code Block | ||||
---|---|---|---|---|
| ||||
cdo --version Climate Data Operators version 1.79.26 (http://mpimet.mpg.de/cdo) ........... Libraries: HDF5/1.10.4 proj/5.2 xml2/2.9.4 Filetypes: srv ext ieg grb1 grb2 nc1 nc2 nc4 nc4c nc5 CDI library version : 1.9.6 cgribex library version : 1.79.2 ofecCodes Auglibrary 10version 2016 09:22:26 CGRIBEX: 2.12.5 NetCDF library version : 14.7.5 of Jun 3 2016 14:44:00 GRIB_API6.2 of Feb 14 2019 10:13:27 $ hdf5 library version : 1.1510.04 threadsafe NetCDF exse library version : 41.4.1 of Aug FILE 3library 2016version 11:10:49 $ 1.8.3 ......... |
If you find the CDO commands below do not work, you can either build CDO yourself, making sure a recent version of grib_api or ecCodes is used, or you can use the workaround below.
...
Info |
---|
If you have files with a mix of GRIB-1 and GRIB-2, then either split the file first or compile cdo with "--disable-cgribex --with-grib_apieccodes=yes" If variable names are lost, add the "-t ecmwf" option. |
...
Note |
---|
cdo commands can be combined into a single command for greater efficiency. |
Using EMOSLIB to interpolate to regular grid
...
Possible problems and solutions
...
cdo -R option does not work with GRIB-2 fields to convert to regular grid
...
Code Block |
---|
cdo vct in.grb > pv.txt |
Parameter names are lost for GRIB-1 fields
...
Warning |
---|
Do not use this option for GRIB-2 fields. It sets the GRIB table default to be specific to the GRIB-1 ECMWF tables. If problems persist, we recommend using grib_to_netcdf to convert to netCDF. |
...
Acknowledgements
Thanks to Paul Dando of User Support for help with the contents of this page.
HTML |
---|
<script type="text/javascript" src="https://software.ecmwf.int/issues/s/en_UKet2vtj/787/12/1.2.5/_/download/batch/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector.js?collectorId=5fd84ec6"></script> |
...