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              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       NAME    grib_set
84
85       DESCRIPTION
86
87              Sets key/value pairs in the input GRIB file and writes each mes‐
88              sage  to  the  output_grib_file.   It fails when an error occurs
89              (e.g. key not found).
90
91       USAGE
92
93              grib_set [options] grib_file grib_file ... output_grib_file
94
95       OPTIONS
96
97       -s key[:{s|d|i}]=value,key[:{s|d|i}]=value,...
98
99              Key/values to set.  For each key  a  string  (key:s),  a  double
100              (key:d)  or  an  integer (key:i) type can be defined. By default
101              the native type is set.
102
103       -r     Repack data. Sometimes after setting some keys involving proper‐
104              ties  of  the  packing  algorithm a repacking of data is needed.
105              This repacking is performed setting this -r option.
106
107       -d value
108
109              Set all the data values to "value".
110
111       -p key[:{s|d|i}],key[:{s|d|i}],...
112
113              Declaration of keys to print.  For each key a string (key:s),  a
114              double  (key:d) or an integer (key:i) type can be requested. De‐
115              fault type is string.
116
117       -P key[:{s|d|i}],key[:{s|d|i}],...
118
119              As -p adding the declared keys to the default list.
120
121       -w key[:{s|d|i}]{=|!=}value,key[:{s|d|i}]=value,...
122
123              Where clause.  Set is only executed for GRIB  messages  matching
124              all the key/value constraints.  If a GRIB message does not match
125              the constraints it is copied unchanged to the  output_grib_file.
126              This  behaviour  can  be changed setting the option -S.  A valid
127              constraint is of type key=value or key!=value.  For each  key  a
128              string  (key:s), a double (key:d) or an integer (key:i) type can
129              be defined. Default type is string.  In the value you  can  also
130              use  the  forward-slash character '/' to specify an OR condition
131              (i.e. a logical disjunction) Note: only one  -w  clause  is  al‐
132              lowed.
133
134       -7     Does not fail when the message has wrong length
135
136       -S     Strict. Only messages matching all the constraints are copied to
137              the output file
138
139       -V     Version.
140
141       -M     Multi-field support off. Turn off support for multiple fields in
142              single GRIB message.
143
144       -g     Copy GTS header.
145
146       -G     GRIBEX compatibility mode.
147
148       -T T | B | M | A
149              Message  type.  T->GTS, B->BUFR, M->METAR (Experimental), A->Any
150              (Experimental).  The input file is interpreted according to  the
151              message type.
152
153       -f     Force. Force the execution not to fail on error.
154
155       -v     Verbose.
156
157
158
159grib_set                         December 2022                     GRIB_SET(1)
Impressum