Versions Compared

Key

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

...

bufr_set [options] file file ... output_file

OPTIONS


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


-p key[:{s/d/i}],key[:{s/d/i}],...

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


-P key[:{s/d/i}],key[:{s/d/i}],...

As -p adding the declared keys to the default list.


-w key[:{s/d/i}]=value,key[:{s/d/i}]=value,...

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_grib_file. This behaviour can be changed setting the option -S. For each key a string (key:s), a double (key:d) or an integer (key:i) type can be defined. Default type is string.


-7

Does not fail when the message has wrong length


-S

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


-V

Version.


-g

Copy GTS header.


-f

Force. Force the execution not to fail on error.


-v

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