Usage:
bufralter.pl <bufr file>
[--data <descriptor=value>]
[--bufr_edition <value>]
[--centre <value>]
[--subcentre <value>]
[--update_number <value>]
[--category <value>]
[--subcategory <value>]
[--int_subcategory <value>]
[--loc_subcategory <value>]
[--master_table_version <value>]
[--local_table_version <value>]
[--year <value>]
[--year_of_century <value>]
[--month <value>]
[--day <value>]
[--hour <value>]
[--minute <value>]
[--second <value>]
[--observed 0|1]
[--compress 0|1]
[--remove_sec2]
[--remove_qc]
[--outfile <file>]
[--strict_checking n]
[--tablepath <path to BUFR tables>]
[--verbose n]
[--help]
Options:
--data <descriptor=value> Set data value in section 4 for descriptor.
Use 'missing' to set a missing value and repeat the
option if more sequence descriptors are to be set.
Example: --value 004005=10 --value 012101=missing
This will set the data value for first (and only first!)
occurrence of these 2 descriptors in every subset and
every message in <bufr file> to the given value.
--bufr_edition <value> Set BUFR edition to <value>. If the new edition
involves some metadata not present in the old edition,
some educated guesses for these new metadata are made,
but you should also consider setting these new metadata
explicitely
--centre <value> Set originating centre to <value>
--subcentre <value>
Set originating subcentre to <value>
--update_number <value>
Set update sequence number to <value>. Use the special
value -1 to increment existing update sequence number,
-2 to decrement it
--category <value> Set data category to <value>
--subcategory <value> Set data sub-category to <value>
--int_subcategory <value> Set international data sub-category to <value>
--loc_subcategory <value> Set local data sub-category to <value>
--master_table_version <value>
Set master table version number to <value>
--local_table_version <value>
Set local table version number to <value>
--<time_var> <value> Set <time_var> (= year | year_of_century | month |
day | hour | minute | second) in section 1 to <value>
--observed 0|1 Set observed data in section 3 to 0 or 1
--compress 0|1 Set compression in section 3 to 0 or 1
--remove_sec2 Remove optional section 2 if present
--remove_qc Remove all quality information,
i.e. remove all descriptors from 222000 on
--outfile <filename>
Will print to <filename> instead of STDOUT
--strict_checking n n=0 (default) Disable strict checking of BUFR format
n=1 Issue warning if (recoverable) error in
BUFR format
n=2 Croak if (recoverable) error in BUFR format.
Nothing more in this message will be
decoded/encoded.
--tablepath <path to BUFR tables>
Set path to BUFR tables (overrides ENV{BUFR_TABLES})
--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 Display Usage and explain the options used. Almost
the same as consulting perldoc bufralter.pl
Options may be abbreviated, e.g. "--he" or "-he" for "--help".
To avoid having to use the "--tablepath" option, you are adviced to set
the environment variable BUFR_TABLES to the directory where your BUFR
tables are located (unless the default path provided by bufralter.pl
works for you).