View on
Pål Sannes > Geo-BUFR >


Annotate this POD


Open  0
View/Report Bugs


  1) <descriptor(s)>
     [--bufrtable <name of BUFR B table]
     [--tablepath <path to BUFR tables>]
     [--verbose n]

  2) --code <code or flag table>
     [--bufrtable <name of BUFR B table>]
     [--tablepath <path to BUFR tables>]
     [--verbose n]

  3) --flag <value> --code <flag table>
     [--bufrtable <name of BUFR B table]
     [--tablepath <path to BUFR tables>]
     [--verbose n]


Utility program for fetching info from BUFR tables.

Execute without arguments for Usage, with option --help for some additional info. See also for examples of use.

It is supposed that the code and flag tables are contained in a file with same name as corresponding B table except for having prefix C instead of B. The tables used can be chosen by the user with options --bufrtable and --tablepath. Default is the hard coded DEFAULT_TABLE in directory DEFAULT_TABLE_PATH, but this last one will be overriden if the environment variable BUFR_TABLES is set. You should consider edit the source code if you are not satisfied with the defaults chosen.


   --partial    Expand D descriptors only once, ignoring replication
   --simple     Like --partial, but displaying the resulting
                descriptors on one line
   --noexpand   Don't expand D descriptors at all

   --bufrtable <name of BUFR B or D table>  Set BUFR tables
   --tablepath <path to BUFR tables>  Set BUFR table path
   --verbose n  Display path and tables used if n > 0

   --help       Display Usage and explain the options used. Almost
                the same as consulting perldoc

Usage 1): Resolves the given descriptor(s) fully into table B descriptors, with name, unit, scale, reference value and width (in bits) written on each line (except for --simple). --partial, --simple and --noexpand are mutually exclusive (full expansion is default).

Usage 2): Prints the contents of the requested code or flag table (named by the table B descriptor).

Usage 3): Displays the bits set when the data value for the requested flag table is <value>.

Options may be abbreviated, e.g. --h or -h for --help


n > 1 in --verbose n does not provide any more output than n=1, so demanding an argument to --verbose looks funny. But if not, sooner or later someone would type 307080 --verbose 1 which by Perl would be interpreted as if the arguments were 307080 000001 --verbose, which probably is not what the user intended.


Pål Sannes <>


Copyright (C) 2010-2016 MET Norway

syntax highlighting: