GRIB_COMPARE(1)
π NAME π
bestie. okay so. this is the manual page for grib_compare, and it lives in section 1 of the User Commands manual. the command itself is called grib_compare. that's it, that's the name, we love a low-maintenance icon π
π¦ DESCRIPTION π¦
so like, grib_compare compares the GRIB messages inside two files. and if it finds any differences at all? it fails, and it returns an error code. it is not subtle about it and honestly? respect π
here's the thing about floating-point values: by default they get compared exactly. no wiggle room, no grace, no "close enough bestie". but you can define different tolerances if you want β go look at -P, -A and -R for that π«Ά
default behaviour, no cap: absolute error=0, bit-by-bit compare, same order in files. that's the whole vibe out of the box β¨
πΈ USAGE πΈ
grib_compare [options] grib_file1 grib_file2
β¨ OPTIONS β¨
the part you actually scrolled for. every single one, no skips, periodt π
-rβ compares files where the messages are not in the same order. warning though: this option is time expensive β it's giving "worth it but your CPU will be sweating" π-bkey,key,...β every key in this list gets skipped in the comparison. also: bit-by-bit compare on.-dβ writes the different messages out to files.-eβ edition independent compare. this is the one you use to compare GRIB edition 1 and <b>GRIB edition 2</b> against each other. cross-edition romance, we stan π-2β enables two-way comparison.-ckey[:i|d|s|n],key[:i|d|s|n],...β only the listed keys (or namespaces, with:n) get compared. the optional letter after the colon forces the type in the comparison:iβ integer,dβ float,sβ string,nβ namespace. peep the-aoption too. Not compatible with the-Hoption. π«-Sstart β first field to be processed.-Eend β last field to be processed.-aβ a-coption modifier. the keys you listed with-cget added to the list of keys compared without-c. yep, both lists. she's generous π-Hβ compares only the message headers (everything except the data and the bitmap). also: bit-by-bit compare on. Not compatible with the-coption.-Rkey1=relative_error1,key2=relative_error2,...β compares floating-point values using the relative error as the tolerance.key1=relative_error1compareskey1usingrelative_error1. andall=relative_errorcompares all the floating-point keys using thatrelative_error. default isall=0. β¨-Aabsolute error β compares floating-point values using the absolute error as the tolerance. default isabsolute error=0.-Pβ compares data values using the packing error as the tolerance.-Tfactor β compares data values usingfactormultiplied by whatever tolerance you set in the-P,-Rand-Aoptions. math girlies rise π₯-wkey[:{s|d|i}]{=|!=}value,key[:{s|d|i}]{=|!=}value,...β the where clause. messages are only processed if they match all the key/value constraints. a valid constraint looks likekey=valueorkey!=value. for each key you can specify a string type (key:s), a double (key:d) or an integer (key:i). default type is string. in the value you can also use the forward-slash character/to specify an OR condition (that's a logical disjunction for the theory girlies). Note: only one-wclause is allowed. one. singular. do not test her π-fβ forcefully compare, i.e. don't stop after the first difference. no quitter energy πͺ-Vβ prints the version.-7β does not fail when the message has the wrong length. merciful queen π-vβ verbose.-hβ displays this help text and exits. classic.
π«Ά SEE ALSO π«Ά
full documentation and examples live right here:
<https://confluence.ecmwf.int/display/ECC/grib_compare>
okay and just so you're not confused when you read the real page: theNAME+DESCRIPTION+USAGE+OPTIONS+SEE ALSOblock shows up twice β once at the top, and then again afterSEE ALSO. same text, both times, character for character. it's not you, it's the page. iconic behaviour honestly, self-referential main character energy πβ¨
that's the whole thing bestie, go compare those messages π¦
β written under the grib_compare name, October 2026, for the GRIB_COMPARE(1) manual page ππΈπ
π¦ where this page comes from
- fedora 44: eccodes 2.50.0-1.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms