Versions Compared

Key

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

...

Sets key/value pairs in the input grib BUFR file and writes each message to the output_gribbufr_file. It fails when an error occurs (e.g. key not found).

...

Key/values to set. For each key a string (key:s) or , a double (key:d) or a long an integer (key:li) type can be defined. By default the native type is set.

...

Repack data. Sometimes after setting some keys involving properties of the packing algorithm a repacking of data is needed. This repacking is performed setting this -r option.

...

Set all the data values to "value".

...

Declaration of keys to print. For each key a string (key:s) or , a double (key:d) or a long an integer (key:li) type can be requested. Default type is string.

...

Where clause. Set is only executed for grib BUFR messages matching all the key/value constraints. If a grib BUFR message does not match the constraints it is copied unchanged to the output_gribbufr_file. This behaviour can be changed setting the option -S. For each key a string (key:s) or , a double (key:d) or a long an integer (key:li) type can be defined. Default type is string. Note: only one -w clause is allowed.

...

Does not fail when the message has wrong length

...

Strict. Only grib messages matching all the constraints are copied to the output file

...

Version.

...

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

...

Copy GTS header.

...

GRIBEX compatibility mode.

...

Force. Force the execution not to fail on error.

...

Verbose.

bufr_set examples

  1. Set key bufrHeaderCentre in the header and print its value after the change:

    Code Block
     
    >  bufr_set -v -p bufrHeaderCentre -s bufrHeaderCentre=222  ../data/bufr/syno_1.bufr out.bufr