Users can define their own local BUFR tables to adapt ecCodes to their own needs e.g. to use a local descriptor.
Please note:
According to the WMO, tThe use of local tables in messages intended for non-local or international exchange is strongly discouraged.
The local BUFR tables are stored in the following definitions directories:
definitions/bufr/tables/[masterTableNumber]/local/[localTablesVersionNumber]/[bufrHeaderCentre]/[bufrHeaderSubCentre]
e.g. definitions/bufr/tables/0/local/101/98/0/ (98 is for ecmwf)
The environment variable ECCODES_DEFINITION_PATH can be set to locate local BUFR tables:
export ECCODES_DEFINITION_PATH=/path/to/local/defs:/path/to/default/defs