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

NAME

6       grib_get - manual page for grib_get
7

DESCRIPTION

9       NAME    grib_get
10
11       DESCRIPTION
12
13              Get  values  of  some  keys  from a GRIB file.  It is similar to
14              grib_ls, but fails returning an error code when an error  occurs
15              (e.g. key not found).
16
17       USAGE
18
19              grib_get [options] grib_file grib_file ...
20
21       OPTIONS
22
23       -f     Force. Force the execution not to fail on error.
24
25       -p key[:{s|d|i}],key[:{s|d|i}],...
26
27              Declaration  of keys to print.  For each key a string (key:s), a
28              double (key:d) or an integer (key:i) type can be requested.  De‐
29              fault type is string.
30
31       -F format
32
33              C style format for floating-point values.
34
35       -B 'order by' directive
36
37              Order by. The output will be ordered according to the 'order by'
38              directive.  Example: "step:i asc, centre desc" (step numeric as‐
39              cending and centre descending) Default sort mode is 'asc'
40
41       -l latitude,longitude[,MODE,file]
42
43              Value close to the point of a latitude,longitude (nearest neigh‐
44              bour).  Allowed values for MODE are:
45
46              4 (4 values in the nearest points are printed)  Default  1  (the
47              value at the nearest point is printed)
48
49              file  (file  is  used  as  mask.  The  closer  point  with  mask
50              value>=0.5 is printed)
51
52       -P key[:{s|d|i}],key[:{s|d|i}],...
53
54              As -p adding the declared keys to the default list.
55
56       -w key[:{s|d|i}]{=|!=}value,key[:{s|d|i}]{=|!=}value,...
57
58              Where clause.  Messages are processed only if they match all the
59              key/value  constraints.  A valid constraint is of type key=value
60              or key!=value.  For each key a string (key:s), a double  (key:d)
61              or  an  integer  (key:i)  type can be specified. Default type is
62              string.  In the value you can also use the forward-slash charac‐
63              ter  '/' to specify an OR condition (i.e. a logical disjunction)
64              Note: only one -w clause is allowed.
65
66       -n namespace
67
68              All the keys belonging to the given namespace are printed.
69
70       -s key[:{s|d|i}]=value,key[:{s|d|i}]=value,...
71
72              Key/values to set.  For each key  a  string  (key:s),  a  double
73              (key:d)  or  an  integer (key:i) type can be defined. By default
74              the native type is set.
75
76       -V     Version.
77
78       -W width
79
80              Minimum width of each column in output. Default is 10.
81
82       -m     Mars keys are printed.
83
84       -M     Multi-field support off. Turn off support for multiple fields in
85              a single GRIB message.
86
87       -g     Copy GTS header.
88
89       -G     GRIBEX compatibility mode.
90
91       -T T | B | M | A
92              Message  type.  T->GTS, B->BUFR, M->METAR (Experimental), A->Any
93              (Experimental).  The input file is interpreted according to  the
94              message type.
95
96       -7     Does not fail when the message has wrong length
97
98       -X offset
99
100              Input  file  offset  in bytes. Processing of the input file will
101              start from the given offset.
102
103       -i index
104
105              Data value corresponding to the given index is printed.
106
107       SEE ALSO
108
109              Full   documentation   and   examples    at:    <https://conflu
110              ence.ecmwf.int/display/ECC/grib_get>
111
112       NAME    grib_get
113
114       DESCRIPTION
115
116              Get  values  of  some  keys  from a GRIB file.  It is similar to
117              grib_ls, but fails returning an error code when an error  occurs
118              (e.g. key not found).
119
120       USAGE
121
122              grib_get [options] grib_file grib_file ...
123
124       OPTIONS
125
126       -f     Force. Force the execution not to fail on error.
127
128       -p key[:{s|d|i}],key[:{s|d|i}],...
129
130              Declaration  of keys to print.  For each key a string (key:s), a
131              double (key:d) or an integer (key:i) type can be requested.  De‐
132              fault type is string.
133
134       -F format
135
136              C style format for floating-point values.
137
138       -B 'order by' directive
139
140              Order by. The output will be ordered according to the 'order by'
141              directive.  Example: "step:i asc, centre desc" (step numeric as‐
142              cending and centre descending) Default sort mode is 'asc'
143
144       -l latitude,longitude[,MODE,file]
145
146              Value close to the point of a latitude,longitude (nearest neigh‐
147              bour).  Allowed values for MODE are:
148
149              4 (4 values in the nearest points are printed)  Default  1  (the
150              value at the nearest point is printed)
151
152              file  (file  is  used  as  mask.  The  closer  point  with  mask
153              value>=0.5 is printed)
154
155       -P key[:{s|d|i}],key[:{s|d|i}],...
156
157              As -p adding the declared keys to the default list.
158
159       -w key[:{s|d|i}]{=|!=}value,key[:{s|d|i}]{=|!=}value,...
160
161              Where clause.  Messages are processed only if they match all the
162              key/value  constraints.  A valid constraint is of type key=value
163              or key!=value.  For each key a string (key:s), a double  (key:d)
164              or  an  integer  (key:i)  type can be specified. Default type is
165              string.  In the value you can also use the forward-slash charac‐
166              ter  '/' to specify an OR condition (i.e. a logical disjunction)
167              Note: only one -w clause is allowed.
168
169       -n namespace
170
171              All the keys belonging to the given namespace are printed.
172
173       -s key[:{s|d|i}]=value,key[:{s|d|i}]=value,...
174
175              Key/values to set.  For each key  a  string  (key:s),  a  double
176              (key:d)  or  an  integer (key:i) type can be defined. By default
177              the native type is set.
178
179       -V     Version.
180
181       -W width
182
183              Minimum width of each column in output. Default is 10.
184
185       -m     Mars keys are printed.
186
187       -M     Multi-field support off. Turn off support for multiple fields in
188              a single GRIB message.
189
190       -g     Copy GTS header.
191
192       -G     GRIBEX compatibility mode.
193
194       -T T | B | M | A
195              Message  type.  T->GTS, B->BUFR, M->METAR (Experimental), A->Any
196              (Experimental).  The input file is interpreted according to  the
197              message type.
198
199       -7     Does not fail when the message has wrong length
200
201       -X offset
202
203              Input  file  offset  in bytes. Processing of the input file will
204              start from the given offset.
205
206       -i index
207
208              Data value corresponding to the given index is printed.
209
210       SEE ALSO
211
212              Full   documentation   and   examples    at:    <https://conflu
213              ence.ecmwf.int/display/ECC/grib_get>
214
215
216
217grib_get                         November 2023                     GRIB_GET(1)
Impressum