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

NAME

6       grib_compare - manual page for grib_compare
7

DESCRIPTION

9       NAME    grib_compare
10
11       DESCRIPTION
12
13              Compare  GRIB  messages contained in two files.  If some differ‐
14              ences are found  it  fails  returning  an  error  code.   Float‐
15              ing-point values are compared exactly by default, different tol‐
16              erances can be defined (see -P -A -R).  Default behaviour: abso‐
17              lute error=0, bit-by-bit compare, same order in files.
18
19       USAGE
20
21              grib_compare [options] grib_file1 grib_file2
22
23       OPTIONS
24
25       -r     Compare  files  in which the messages are not in the same order.
26              This option is time expensive.
27
28       -b key,key,...
29
30              All the keys  in  this  list  are  skipped  in  the  comparison.
31              Bit-by-bit compare on.
32
33       -d     Write different messages on files.
34
35       -e     Edition  independent compare. It is used to compare GRIB edition
36              1 and 2.
37
38       -2     Enable two-way comparison.
39
40       -c key[:i|d|s|n],key[:i|d|s|n],...
41
42              Only the listed keys or namespaces (:n) are  compared.  The  op‐
43              tional  letter  after the colon is used to force the type in the
44              comparison: i->integer, d->float, s->string, n->namespace.   See
45              -a option. Incompatible with -H option.
46
47       -S start
48              First field to be processed.
49
50       -E end Last field to be processed.
51
52       -a       -c option modifier. The keys listed with the option -c will be
53              added to the list of keys compared without -c.
54
55       -H     Compare only message headers (everything except  data  and  bit‐
56              map). Bit-by-bit compare on. Incompatible with -c option.
57
58       -R key1=relative_error1,key2=relative_error2,...
59
60              Compare floating-point values using the relative error as toler‐
61              ance.  key1=relative_error1 will compare key1 using relative_er‐
62              ror1.   all=relative_error  will  compare all the floating-point
63              keys using relative_error. Default all=0.
64
65       -A absolute error
66
67              Compare floating-point values using the absolute error as toler‐
68              ance.  Default is absolute error=0
69
70       -P     Compare data values using the packing error as tolerance.
71
72       -T factor
73              Compare  data  values  using  factor multiplied by the tolerance
74              specified in options -P -R -A.
75
76       -w key[:{s|d|i}]{=|!=}value,key[:{s|d|i}]{=|!=}value,...
77
78              Where clause.  Messages are processed only if they match all the
79              key/value  constraints.  A valid constraint is of type key=value
80              or key!=value.  For each key a string (key:s), a double  (key:d)
81              or  an  integer  (key:i)  type can be specified. Default type is
82              string.  In the value you can also use the forward-slash charac‐
83              ter  '/' to specify an OR condition (i.e. a logical disjunction)
84              Note: only one -w clause is allowed.
85
86       -f     Force. Force the execution not to fail on error.
87
88       -V     Version.
89
90       -7     Does not fail when the message has wrong length
91
92       -v     Verbose.
93
94       SEE ALSO
95
96              Full   documentation   and   examples    at:    <https://conflu
97              ence.ecmwf.int/display/ECC/grib_compare>
98
99       NAME    grib_compare
100
101       DESCRIPTION
102
103              Compare  GRIB  messages contained in two files.  If some differ‐
104              ences are found  it  fails  returning  an  error  code.   Float‐
105              ing-point values are compared exactly by default, different tol‐
106              erances can be defined (see -P -A -R).  Default behaviour: abso‐
107              lute error=0, bit-by-bit compare, same order in files.
108
109       USAGE
110
111              grib_compare [options] grib_file1 grib_file2
112
113       OPTIONS
114
115       -r     Compare  files  in which the messages are not in the same order.
116              This option is time expensive.
117
118       -b key,key,...
119
120              All the keys  in  this  list  are  skipped  in  the  comparison.
121              Bit-by-bit compare on.
122
123       -d     Write different messages on files.
124
125       -e     Edition  independent compare. It is used to compare GRIB edition
126              1 and 2.
127
128       -2     Enable two-way comparison.
129
130       -c key[:i|d|s|n],key[:i|d|s|n],...
131
132              Only the listed keys or namespaces (:n) are  compared.  The  op‐
133              tional  letter  after the colon is used to force the type in the
134              comparison: i->integer, d->float, s->string, n->namespace.   See
135              -a option. Incompatible with -H option.
136
137       -S start
138              First field to be processed.
139
140       -E end Last field to be processed.
141
142       -a       -c option modifier. The keys listed with the option -c will be
143              added to the list of keys compared without -c.
144
145       -H     Compare only message headers (everything except  data  and  bit‐
146              map). Bit-by-bit compare on. Incompatible with -c option.
147
148       -R key1=relative_error1,key2=relative_error2,...
149
150              Compare floating-point values using the relative error as toler‐
151              ance.  key1=relative_error1 will compare key1 using relative_er‐
152              ror1.   all=relative_error  will  compare all the floating-point
153              keys using relative_error. Default all=0.
154
155       -A absolute error
156
157              Compare floating-point values using the absolute error as toler‐
158              ance.  Default is absolute error=0
159
160       -P     Compare data values using the packing error as tolerance.
161
162       -T factor
163              Compare  data  values  using  factor multiplied by the tolerance
164              specified in options -P -R -A.
165
166       -w key[:{s|d|i}]{=|!=}value,key[:{s|d|i}]{=|!=}value,...
167
168              Where clause.  Messages are processed only if they match all the
169              key/value  constraints.  A valid constraint is of type key=value
170              or key!=value.  For each key a string (key:s), a double  (key:d)
171              or  an  integer  (key:i)  type can be specified. Default type is
172              string.  In the value you can also use the forward-slash charac‐
173              ter  '/' to specify an OR condition (i.e. a logical disjunction)
174              Note: only one -w clause is allowed.
175
176       -f     Force. Force the execution not to fail on error.
177
178       -V     Version.
179
180       -7     Does not fail when the message has wrong length
181
182       -v     Verbose.
183
184       SEE ALSO
185
186              Full   documentation   and   examples    at:    <https://conflu
187              ence.ecmwf.int/display/ECC/grib_compare>
188
189
190
191grib_compare                     November 2023                 GRIB_COMPARE(1)
Impressum