Closed torfsen closed 2 years ago
Hello @torfsen,
Once you have the tables downloaded and put somewhere on disk, you need to set the environment variable "ECCODES_DEFINITION_PATH" to point to where the new tables are. See the bottom of this page, which also describes how to create the tables (which you do not need to do of course!) https://confluence.ecmwf.int/display/UDOC/Creating+your+own+local+definitions+-+ecCodes+GRIB+FAQ
Cheers, Iain
Thanks, @iainrussell, that was exactly what I was looking for. Adding the path of the custom code tables (and that of the base tables that come with ecCodes) to ECCODES_DEFINITION_PATH
worked wonderfully.
Brilliant, thanks for letting me know @torfsen !
I've posted this question on StackOverflow before but didn't get any answers. Feel free to answer it there and/or close this ticket.
I'm trying to load GRIB2 files from DWD's ICON model using
xarray
andcfgrib
. Most variables work fine, but for some (like for exampleCLCL
),xarray.open_dataset
raises the following error:when I inspect the file via
grib_ls
I getI've read in the issues #195 and #213 that this is probably due to the use of local codes and that I might be able to fix the issue using the appropriate code tables. DWD does provide GRIB tables for ecCodes, but I'm not sure how to use them in combination with
cfgrib
.How can I use the custom code tables with
cfgrib
? Or is there another way to load these variables?