Sets key/value pairs in the input BUFR file and writes each message to the output_bufr_file. It fails when an error occurs (e.g. key not found).
bufr_set [options] file file ... output_file
Key/values to set. For each key a string (key:s), a double (key:d) or an integer (key:i) type can be defined. By default the native type is set.
Declaration of keys to print. For each key a string (key:s), a double (key:d) or an integer (key:i) type can be requested. Default type is string.
As -p adding the declared keys to the default list.
Where clause. Set is only executed for BUFR messages matching all the key/value constraints. If a BUFR message does not match the constraints it is copied unchanged to the output_bufr_file. This behaviour can be changed setting the option -S. For each key a string (key:s), a double (key:d) or an integer (key:i) type can be defined. Default type is string. Note: only one -w clause is allowed.
Does not fail when the message has wrong length
Strict. Only messages matching all the constraints are copied to the output file
Version.
Copy GTS header.
Force. Force the execution not to fail on error.
Verbose.
Set key bufrHeaderCentre in the header and print its value after the change:
> bufr_set -v -p bufrHeaderCentre -s bufrHeaderCentre=222 ../data/bufr/syno_1.bufr out.bufr |