CDI GRIB2 warnings in gribapiEncode
Dear Uwe @m214003 , Dear Sergey @m300488
with the upgrade to CDI 2.2.x some additional GRIB2 checks have been implemented in cdilib.c/gribapiEncode
, which check if the GRIB2 shortName matches the (ICON) internal variable name. If not, a warning is printed at every output date of the form
cdi warning (gribapiEncode): *** GRIB2 shortName does not correspond to chosen variable name: "p" ("pres").
cdi warning (gribapiEncode): *** GRIB2 shortName does not correspond to chosen variable name: "asob_s_cs" ("asobclr_s").
cdi warning (gribapiEncode): *** GRIB2 shortName does not correspond to chosen variable name: "aswdifd_s" ("asodifd_s").
...
From our perspective it is good to have such a check, but we would prefer to have it optional. It increases the size of the ICON LOG file quite significantly and makes it look even more messy than before ;-)
Would it be possible to put this check into an if (CDI_Debug) ...
condition?
The fact that the GRIB2 shortName differs from the internal variable name is not unusual in my opinion, as GRIB2 shortNames are site specific. Even if we would modify all the internal variable names to match e.g. the DWD-specific GRIB2 shortNames, the warning would pop up again, as soon as any partner institution runs the model using their own set of shortNames.
Than you, Daniel