Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The environment variable ECCODES_DEFINITION_PATH can be set to locate local BUFR tables. This is similar to how the PATH environment variable works in Unix, it is a list of directories separated by colons (":") on Unix and semi-colons (";") on Windows:

   export ECCODES_DEFINITION_PATH=/path/to/local/defs:/path/to/default/defs

The library searches for each required definition file first in /path/to/local/defs and then in /path/to/default/defs.  If the file is found in /path/to/local/defs then it is used by the decoding engine.

...

Code Block
% codes_info
ecCodes Version 2.230.0

Default definition files path is used: /usr/local/apps/eccodes/2.230.0/share/eccodes/definitions
Definition files path can be changed by setting ECCODES_DEFINITION_PATH environment variable

Default SAMPLES path is used: /usr/local/apps/eccodes/2.230.0/share/eccodes/samples
SAMPLES path can be changed by setting ECCODES_SAMPLES_PATH environment variable

On this platform, ecCodes is installed in /usr/local/apps/eccodes/2.230.0 and the definitions are in /usr/local/apps/eccodes/2.230.0/share/eccodes/definitions.

...

Code Block
% def=`codes_info -d`
% echo $def
/usr/local/apps/eccodes/2.230.0/share/eccodes/definitions

...