Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

You want to dump a specific section of a GRIB message rather than all sections.

Step-by-step guide

You can use the "-p" option of the grib_dump command

...

If a given section does not exist e.g. section 2 is optional in GRIB 2, then you get an error (Key/value not found).

Of course you can use the other grib_dump options e.g. "-j" to do a JSON dump or "-H" to see values in hex.

Note: This can be a very quick way of checking a set of keys without decoding others. For example if you have a very large data section, the standard grib_dump decodes would decode all its values whereas dumping a given non-data section will not decode skip the data values decoding and hence be quicker.

Content by Label
showLabelsfalse
max5
spacesUDOC
showSpacefalse
sortmodified
reversetrue
typepage
excludeCurrenttrue
cqllabel in ("grib_dump","grib","kb-how-to-article") and label = "grib_dump" and type = "page" and space = "UDOC"
labelsgrib kb-how-to-article grib_dump

...