...
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).
The "-p" option can take one or more standard keys e.g. grib_dump -p Ni,Nj
prints just those two keys and grib_dump -p pl
prints the "pl" array.
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 |
...
efficient way of checking a set of keys without decoding others. For example if you have a very large data section, the standard grib_dump would decode all its values whereas dumping a given non-data section will skip the data values decoding and hence be quicker. |
Related articles
Content by Label | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...