Users can define their own local BUFR tables to adapt ecCodes to their own needs e.g., to use a local descriptor.
...
Download an example here.
This tarball contains a BUFR file which uses local descriptors as well as the definition files needed to decode the tables.
- Try decoding the BUFR file "
ikco_217.local.bufr
" using bufr_dump. This file uses a local table version (localTablesVersionNumber=66).
Decoding should fail as ecCodes does not know about these descriptors. - Run the
codes_info
tool to find the location of the default definitions. - Now set
ECCODES_DEFINITION_PATH
to include the provided "mydefs
" directory.
E.g.export ECCODES_DEFINITION_PATH=`pwd`/mydefs:`codes_info -d`
- Now see if ecCodes can decode the BUFR file.
- Search the output of bufr_dump for the overridden unit "
MyOwnUnits
".
This was added as an example of a centre defining its own parameter attributes
...