Compare BUFR messages contained in two files. If some differences are found it fails returning an error code. Floating-point values are compared exactly by default, different tolerance can be defined see -P -A -R. Default behaviour: absolute error=0, bit-by-bit compare, same order in files.
bufr_compare [options] bufr_file1 bufr_file2
All the keys in this list are skipped in the comparison. Bit-by-bit compare on.
Write different messages on files.
Enable two-way comparison.
Only the listed keys or namespaces (:n) are compared. The optional letter after the colon is used to force the type in the comparison: i->integer, d->float, s->string, n->namespace. See -a option. Incompatible with -H option.
First field to be processed.
Last field to be processed.
-c option modifier. The keys listed with the option -c will be added to the list of keys compared without -c.
Compare only message headers. Bit-by-bit compare on. Incompatible with -c option.
Compare floating-point values using the relative error as tolerance. key1=relative_error1 will compare key1 using relative_error1. all=relative_error will compare all the floating-point keys using relative_error. Default all=0.
-A absolute error
Compare floating-point values using the absolute error as tolerance. Default is absolute error=0
Compare data values using factor multiplied by the tolerance specified in options -P -R -A.
Where clause. Messages are processed only if they match all the key/value constraints. A valid constraint is of type key=value or key!=value. For each key a string (key:s), a double (key:d) or an integer (key:i) type can be specified. Default type is string. In the value you can also use the forward-slash character '/' to specify an OR condition (i.e. a logical disjunction) Note: only one -w clause is allowed.
Force. Force the execution not to fail on error.
Does not fail when the message has wrong length