Copies the content of grib files printing values of some keys.
bufr_copy [options] file file ... output_file
Force. Force the execution not to fail on error.
Repack data. Sometimes after setting some keys involving properties of the packing algorithm a repacking of data is needed. This repacking is performed setting this -r option.
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.
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.
As -p adding the declared keys to the default list.
Where clause. Only grib messages matching the key/value constraints are copied to the output_grib_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.
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)
Version.
Minimum width of each column in output. Default is 10.
Multi-field support off. Turn off support for multiple fields in single grib message.
Copy GTS header.
GRIBEX compatibility mode.
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-messages from a file
> bufr_copy -w dataCategory!=0 in.bufr out.bufr |