1GRIB_SET(1)                      User Commands                     GRIB_SET(1)
2
3
4

NAME

6       grib_set - manual page for grib_set
7

DESCRIPTION

9       NAME    grib_set
10
11       DESCRIPTION
12
13              Sets key/value pairs in the input GRIB file and writes each mes‐
14              sage to the output_grib_file.  It fails  when  an  error  occurs
15              (e.g. key not found).
16
17       USAGE
18
19              grib_set [options] grib_file grib_file ... output_grib_file
20
21       OPTIONS
22
23       -s key[:{s|d|i}]=value,key[:{s|d|i}]=value,...
24
25              Key/values  to  set.   For  each  key a string (key:s), a double
26              (key:d) or an integer (key:i) type can be  defined.  By  default
27              the native type is set.
28
29       -r     Repack data. Sometimes after setting some keys involving proper‐
30              ties of the packing algorithm a repacking  of  data  is  needed.
31              This repacking is performed setting this -r option.
32
33       -d value
34
35              Set all the data values to "value".
36
37       -p key[:{s|d|i}],key[:{s|d|i}],...
38
39              Declaration  of keys to print.  For each key a string (key:s), a
40              double (key:d) or an integer (key:i) type can be requested.  De‐
41              fault type is string.
42
43       -P key[:{s|d|i}],key[:{s|d|i}],...
44
45              As -p adding the declared keys to the default list.
46
47       -w key[:{s|d|i}]{=|!=}value,key[:{s|d|i}]=value,...
48
49              Where  clause.   Set is only executed for GRIB messages matching
50              all the key/value constraints.  If a GRIB message does not match
51              the  constraints it is copied unchanged to the output_grib_file.
52              This behaviour can be changed setting the option  -S.   A  valid
53              constraint  is  of type key=value or key!=value.  For each key a
54              string (key:s), a double (key:d) or an integer (key:i) type  can
55              be  defined.  Default type is string.  In the value you can also
56              use the forward-slash character '/' to specify an  OR  condition
57              (i.e.  a  logical  disjunction)  Note: only one -w clause is al‐
58              lowed.
59
60       -7     Does not fail when the message has wrong length
61
62       -S     Strict. Only messages matching all the constraints are copied to
63              the output file
64
65       -V     Version.
66
67       -M     Multi-field support off. Turn off support for multiple fields in
68              a single GRIB message.
69
70       -g     Copy GTS header.
71
72       -G     GRIBEX compatibility mode.
73
74       -T T | B | M | A
75              Message type. T->GTS, B->BUFR, M->METAR  (Experimental),  A->Any
76              (Experimental).   The input file is interpreted according to the
77              message type.
78
79       -f     Force. Force the execution not to fail on error.
80
81       -v     Verbose.
82
83       SEE ALSO
84
85              Full   documentation   and   examples    at:    <https://conflu
86              ence.ecmwf.int/display/ECC/grib_set>
87
88       NAME    grib_set
89
90       DESCRIPTION
91
92              Sets key/value pairs in the input GRIB file and writes each mes‐
93              sage to the output_grib_file.  It fails  when  an  error  occurs
94              (e.g. key not found).
95
96       USAGE
97
98              grib_set [options] grib_file grib_file ... output_grib_file
99
100       OPTIONS
101
102       -s key[:{s|d|i}]=value,key[:{s|d|i}]=value,...
103
104              Key/values  to  set.   For  each  key a string (key:s), a double
105              (key:d) or an integer (key:i) type can be  defined.  By  default
106              the native type is set.
107
108       -r     Repack data. Sometimes after setting some keys involving proper‐
109              ties of the packing algorithm a repacking  of  data  is  needed.
110              This repacking is performed setting this -r option.
111
112       -d value
113
114              Set all the data values to "value".
115
116       -p key[:{s|d|i}],key[:{s|d|i}],...
117
118              Declaration  of keys to print.  For each key a string (key:s), a
119              double (key:d) or an integer (key:i) type can be requested.  De‐
120              fault type is string.
121
122       -P key[:{s|d|i}],key[:{s|d|i}],...
123
124              As -p adding the declared keys to the default list.
125
126       -w key[:{s|d|i}]{=|!=}value,key[:{s|d|i}]=value,...
127
128              Where  clause.   Set is only executed for GRIB messages matching
129              all the key/value constraints.  If a GRIB message does not match
130              the  constraints it is copied unchanged to the output_grib_file.
131              This behaviour can be changed setting the option  -S.   A  valid
132              constraint  is  of type key=value or key!=value.  For each key a
133              string (key:s), a double (key:d) or an integer (key:i) type  can
134              be  defined.  Default type is string.  In the value you can also
135              use the forward-slash character '/' to specify an  OR  condition
136              (i.e.  a  logical  disjunction)  Note: only one -w clause is al‐
137              lowed.
138
139       -7     Does not fail when the message has wrong length
140
141       -S     Strict. Only messages matching all the constraints are copied to
142              the output file
143
144       -V     Version.
145
146       -M     Multi-field support off. Turn off support for multiple fields in
147              a single GRIB message.
148
149       -g     Copy GTS header.
150
151       -G     GRIBEX compatibility mode.
152
153       -T T | B | M | A
154              Message type. T->GTS, B->BUFR, M->METAR  (Experimental),  A->Any
155              (Experimental).   The input file is interpreted according to the
156              message type.
157
158       -f     Force. Force the execution not to fail on error.
159
160       -v     Verbose.
161
162       SEE ALSO
163
164              Full   documentation   and   examples    at:    <https://conflu
165              ence.ecmwf.int/display/ECC/grib_set>
166
167
168
169grib_set                         November 2023                     GRIB_SET(1)
Impressum