Will create BUFR message(s) printed to STDOUT from content of input
file, which should match exactly what you would get by running
bufrread.pl on the final BUFR message(s).
Normal use:
/metno/local/bin/bufr_reencode.pl bufr.decoded > bufr.reencoded
after first having done
bufrread.pl <BUFR file> > bufr.decoded
Edit file bufr.decoded as desired
Options:
--width n
The decoded message(s) was created by using bufrread.pl with option --width n
--tablepath <path to BUFR tables>
If used, will set path to BUFR tables. If not set, will fetch tables
from the environment variable BUFR_TABLES, or if this is not set: will use
/usr/local/lib/bufrtables
--outfile <filename>
Will print encoded BUFR messages to <filename> instead of STDOUT
--strict_checking n n=0 Disable strict checking of BUFR format
n=1 Issue warning if (recoverable) error in
BUFR format
n=2 (default) Croak if (recoverable) error in BUFR format.
Nothing more in this message will be encoded.
--verbose n
Set verbose level to n, 0<=n<=3 (default 0). Verbose output is sent to STDOUT,
so ought to be combined with option --outfile
--help
Will print this help message and then exit
Note: 'Optional section present' will always be set to 0, as
reencode_message in BUFR.pm currently does not provide encoding
of section 2. A warning will be printed to STDERR if 'Optional
section present' originally was 1.