GRIB_GET(1)
π GRIB_GET(1) π
hi bestie!! welcome to grib_get, a page from the User Commands section, manual name GRIB_GET(1). it's short, it's sweet, and it is so useful. grab a strawberry π and let's go.
β¨ NAME β¨
grib_get β the manual page for grib_get π
πΈ DESCRIPTION πΈ
okay so real talk: this page contains its own NAME, DESCRIPTION, USAGE, OPTIONS and SEE ALSO sections nested inside its DESCRIPTION, and then prints the entire thing a second time. iconic of it, honestly π β but you're getting the tea once, fully, with every single crumb preserved. no skips, no summarising, we don't do that here π«Ά
π NAME π
grib_get
π¦ DESCRIPTION π¦
Get values of some keys from a GRIB file. it's giving similar-to-grib_ls energy β¨ but here's the plot twist, and it's the whole point: grib_get fails returning an error code when an error occurs (e.g. when a key is not found). so likeβ¦ grib_ls is the chill friend who lets it slide, and grib_get is the friend who will send it back to the group chat. that's the vibe. periodt π
β¨ USAGE β¨
grib_get [options] grib_file grib_file ...
π OPTIONS π
one bullet per flag, every flag, in order, no cap:
-fβ Force. makes it not fail on error. the "no thoughts, just vibes, keep going" flag.-p key[:{s|d|i}],key[:{s|d|i}],...β declaration of keys to print π for each key you can request a string (key:s), a double (key:d) or an integer (key:i) type. default type is string.-F formatβ C-style format for floating-point values. for when you want your numbers to serve a certain look β¨-B 'order by' directiveβ Order by. the output will be ordered according to the'order by'directive. example:"step:i asc, centre desc"(that's step numeric ascending and centre descending, iykyk). default sort mode is'asc'.-l latitude,longitude[,MODE,file]β value close to the point of alatitude,longitude(nearest neighbour). allowed values for MODE are:4β 4 values in the nearest points are printed. default is1(the value at the nearest point is printed).fileβfileis used as mask. the closer point with mask value>=0.5is printed.
-P key[:{s|d|i}],key[:{s|d|i}],...β same as-p, but it adds the declared keys to the default list. best of both worlds, we love a generous queen π-w key[:{s|d|i}]{=|!=}value,key[:{s|d|i}]{=|!=}value,...β Where clause. messages are processed only if they match all the key/value constraints. a valid constraint is of typekey=valueorkey!=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. one. just one. that's the rule π«
-n namespaceβ all the keys belonging to the given namespace are printed.-s key[:{s|d|i}]=value,key[:{s|d|i}]=value,...β key/values to set. for each key a string (key:s), a double (key:d) or an integer (key:i) type can be defined. by default the native type is set.-Vβ Print version. short flag, big "hi what's your name" energy π-W widthβ minimum width of each column in output. default is10.-mβ all the keys belonging to the'mars'namespace are printed.-Mβ Multi-field support off. turns off support for multiple fields in a single GRIB message.-gβ copy GTS header.-Gβ GRIBEX compatibility mode.-T T | B | Aβ Message type.T->GTS,B->BUFR,A->Any (Experimental). the input file is interpreted according to the message type.-7β does not fail when the message has wrong length. chaotic but brave π-X offsetβ input file offset in bytes. processing of the input file will start from the given offset.-i indexβ the data value corresponding to the given index is printed.-hβ display this help text and exit. the "nvm, tell me" button π
π SEE ALSO π
Full documentation and examples at:
https://confluence.ecmwf.int/display/ECC/grib_get
and that's the whole thing, bestie!! that's grib_get, dated October 2026, filed under GRIB_GET(1) π go get those key values, slay, and remember: it will fail loudly if something's wrong, and that's a feature, not a bug ππ«Άβ¨
π¦ 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