Copies the content of BUFR files printing values of some keys.
bufr_copy [options] file file ... output_file
Force. Force the execution not to fail on error.
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.
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.
As -p adding the declared keys to the default list.
Where clause. Only BUFR messages matching the key/value constraints are copied to the output_bufr_file. For each key a string (key:s), a double (key:d) or an integer (key:i) type can be defined. Default type is string.
Order by. The output will be ordered according to the order by directive. Order by example: "step:i asc, centre desc" (step numeric ascending and centre descending)
Version.
Minimum width of each column in output. Default is 10.
Copy GTS header.
Does not fail when the message has wrong length
Verbose.
To copy only the SYNOP messages from a file
> bufr_copy -w dataCategory=0 in.bufr out.bufr |
To copy only the non-SYNOP messages from a file
> bufr_copy -w dataCategory!=0 in.bufr out.bufr |
Use the square brackets to insert the value of a key in the name of the output file.
> bufr_copy in.bufr out_[dataCategory].bufr |