Scroll to navigation





Compare grib 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.


grib_compare [options] grib_file grib_file


All the keys in this list are skipped in the comparison. Bit-by-bit compare on.
Only the listed keys or namespaces (:n) are compared. The optional letter after the colon is used to force the type in the comparison: l->integer, d->float, s->string, n->namespace. See -a option. Incompatible with -H option.
Compare floating point values using the relative error as tolerance. key1=relative_error will compare key1 using relative_error1. all=relative_error will compare all the floating point keys using relative_error. Default all=0.
Compare floating point values using the absolute error as tolerance. Default is absolute error=0
Where clause. Grib 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) or a double (key:d) or a long (key:l) type can be specified. Default type is string.
-7 Does not fail when the message has wrong length


This manpage has been autogenerated by Enrico Zini <>from the command line help of grib_compare.

April 2009 grib_compare