Project

General

Profile

CDO netcdf to grib2 failing

Added by James W almost 4 years ago

Trying to convert some .nc data to grib2, using CDO on the command line, e.g.

cdo -f grb2 -copy -chname,unspecified_1,refc 20200601T0000Z_HWT_km2p2_RA2M_pa024.nc out.grib2

But this fails with:

ECCODES ERROR : concept: no match for shortName=refc
ECCODES ERROR : concept: input handle edition=2
!!! grib_set_string( grib_handle* h, "shortName", "refc") !!!
Warning (gribapiDefParam): grib_api: No match for shortName=refc

Even though the shortName i'm assigning should be known about in the EC database? https://apps.ecmwf.int/codes/grib/param-db/?id=260390


Replies (1)

RE: CDO netcdf to grib2 failing - Added by Brendan DeTracey almost 4 years ago

Hard to know without a file sample. Perhaps you need to manually specify:
discipline 0
parameterCategory 16
parameterNumber 196

1. Check the CDO manual. I believe there are commands that do this for grib2.
2. Check your ecCodes and make sure it has those tables installed. You'll have to google this. My knowledge of GRIB and ecCodes is shallow.

    (1-1/1)