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.
Related articles
Content by Label | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...