DESCRIPTION
Copies the content of BUFR files printing values of some keys.
USAGE
bufr_copy [options] file file ... output_file
OPTIONS
-f
Force. Force the execution not to fail on error.
-p key[:{s/d/l}],key[:{s/d/l}],...
Declaration of keys to print. For each key a string (key:s) or a double (key:d) or a long (key:l) type can be requested. Default type is string.
-s key[:{s/d/l}]=value,key[:{s/d/l}]=value,...
Key/values to set. For each key a string (key:s) or a double (key:d) or a long (key:l) type can be defined. By default the native type is set.
-P key[:{s/d/l}],key[:{s/d/l}],...
As -p adding the declared keys to the default list.
-w key[:{s/d/l}]=value,key[:{s/d/l}]=value,...
Where clause. Only BUFR messages matching the key/value constraints are copied to the output_bufr_file. For each key a string (key:s) or a double (key:d) or a long (key:l) type can be defined. Default type is string.
-B order by directive
Order by. The output will be ordered according to the order by directive. Order by example: "step asc, centre desc" (step ascending and centre descending)
-V
Version.
-W width
Minimum width of each column in output. Default is 10.
-g
Copy GTS header.
-7
Does not fail when the message has wrong length
-v
Verbose.
bufr_copy examples
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