Versions Compared


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


grib_dump [options] grib_file grib_file ...



Octet mode. WMO documentation style dump.


Debug mode.


Print all data values.


JSON mode (JavaScript Object Notation).


Print type information.


Print octet content in hexadecimal format.


Dump aliases.

-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 type key=value or key!=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.

-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.


Multi-field support off. Turn off support for multiple fields in single GRIB message.

-T T | B | M | A

Message type. T->GTS, B->BUFR, M->METAR (Experimental),A->Any (Experimental). The input file is interpreted according to the message type.


Does not fail when the message has wrong length



-p key1,key2,...
Declaration of keys to dump. Only those keys are dumped (not the whole message).

-X offset

Input file offset in bytes. Processing of the input file will start from "offset".


Fast parsing option, only headers are loaded.


  1. To dump in a WMO documentation style with hexadecimal octet values (-H).

    Code Block
    > grib_dump -OH ../data/reduced_gaussian_model_level.grib1

  2. To add key aliases and type information.

    Code Block
    > grib_dump -OtaH ../data/reduced_gaussian_model_level.grib1

  3. To obtain all the key names (computed keys included) available in a grib file.

    Code Block
    >  grib_dump -D ../data/regular_latlon_surface.grib1