DOKK / manpages / debian 10 / libgrib-api-tools / grib_set.1.en
GRIB_SET(1) User Commands GRIB_SET(1)

grib_set

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

grib_set [options] grib_file grib_file ... output_grib_file

Key/values to set. For each key a string (key:s) or a double (key:d) or a long (key:l) type can be defined. By default the native type is set.
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 (key:l) type can be requested. Default type is string.
As -p adding the declared keys to the default list.
Where clause. Set is only executed for grib messages matching all the key/value constraints. If a grib message does not match the constraints it is copied unchanged to the output_grib_file. This behaviour can be changed setting the option -S. A valid constraint is of type key=value or key!=value. For each key a string (key:s) or a double (key:d) or a long (key:l) type can be defined. Default type is string.
-7 Does not fail when the message has wrong length
the output file
The input file is interpreted according to the message type.

This manpage has been autogenerated by Enrico Zini <enrico@debian.org>from the command line help of grib_set.

April 2009 grib_set