This is an old revision of the document!
BUFR.pm
Bufr.pm is a CPAN module for BUFR decoding and encoding developed at the Norwegian Meteorological Institute (met.no).
Below is listed some programs using this module which are all developed and used actively at met.no, with examples of use and complete source code. Hopefully this will demonstrate the power of BUFR.pm as well as providing potential users of BUFR.pm an easy start.
A line consisting solely of three dots (…) in the examples of output from running the programs marks that a (not so interesting) part of the output has been left out.
bufrread.pl
Decodes and prints section 0-4 in BUFR messages in input file(s).
Example: Executing bufrread.pl without arguments
Example: buffread.pl --help
Example: Processing a multisubset multimessage BUFR SYNOP file with no options set
Example: Processing a BUFR TEMP file with option --codetables set (to resolve code and flag values)
Example: Processing a file containing operators 222000 and 223000 with option --bitmap set (to display bimaped entities on same line)
Example: Processing a file containing associated fields and change scale and data width operators
Example: Same as above, but with options --all_operators and --data_only set
Example: Processing a BUFR BUOY file with recoverable formatting errors with option --strict_checking set
bufrresolve.pl
Displays information in BUFR tables.
Example: Executing bufrresolve.pl without arguments (or with --help, for this program this amounts to the same)
Example: Executing bufrresolve.pl on a table D descriptor (309052)
Example: Same as above, but with option --partial
Example: Same as above, but with option --simple
Example: Executing bufrresolve.pl on a sequence of descriptors with option --noexpand
Example: Showing content of code table (option --code)
Example: Resolving flag value (option --flag)