1GRIB_COPY(1) User Commands GRIB_COPY(1)
2
3
4
6 grib_copy - manual page for grib_copy
7
9 NAME grib_copy
10
11 DESCRIPTION
12
13 Copies the content of GRIB files printing values of some keys.
14 If the name of the output_grib_file contains a key enclosed in
15 square brackets, its value will be used.
16
17 USAGE
18
19 grib_copy [options] grib_file grib_file ... output_grib_file
20
21 OPTIONS
22
23 -f Force. Force the execution not to fail on error.
24
25 -r Repack data. Sometimes after setting some keys involving proper‐
26 ties of the packing algorithm a repacking of data is needed.
27 This repacking is performed setting this -r option.
28
29 -p key[:{s|d|i}],key[:{s|d|i}],...
30
31 Declaration of keys to print. For each key a string (key:s), a
32 double (key:d) or an integer (key:i) type can be requested. De‐
33 fault type is string.
34
35 -P key[:{s|d|i}],key[:{s|d|i}],...
36
37 As -p adding the declared keys to the default list.
38
39 -w key[:{s|d|i}]{=|!=}value,key[:{s|d|i}]=value,...
40
41 Where clause. Only GRIB messages matching the key/value con‐
42 straints are copied to the output_grib_file. A valid constraint
43 is of type key=value or key!=value. For each key a string
44 (key:s), a double (key:d) or an integer (key:i) type can be de‐
45 fined. Default type is string. In the value you can also use
46 the forward-slash character '/' to specify an OR condition (i.e.
47 a logical disjunction) Note: only one -w clause is allowed.
48
49 -B 'order by' directive
50
51 Order by. The output will be ordered according to the 'order by'
52 directive. Example: "step:i asc, centre desc" (step numeric as‐
53 cending and centre descending) Default sort mode is 'asc'
54
55 -V Version.
56
57 -W width
58
59 Minimum width of each column in output. Default is 10.
60
61 -M Multi-field support off. Turn off support for multiple fields in
62 single GRIB message.
63
64 -T T | B | M | A
65 Message type. T->GTS, B->BUFR, M->METAR (Experimental), A->Any
66 (Experimental). The input file is interpreted according to the
67 message type.
68
69 -g Copy GTS header.
70
71 -G GRIBEX compatibility mode.
72
73 -7 Does not fail when the message has wrong length
74
75 -X offset
76
77 Input file offset in bytes. Processing of the input file will
78 start from the given offset.
79
80 -v Verbose.
81
82 NAME grib_copy
83
84 DESCRIPTION
85
86 Copies the content of GRIB files printing values of some keys.
87 If the name of the output_grib_file contains a key enclosed in
88 square brackets, its value will be used.
89
90 USAGE
91
92 grib_copy [options] grib_file grib_file ... output_grib_file
93
94 OPTIONS
95
96 -f Force. Force the execution not to fail on error.
97
98 -r Repack data. Sometimes after setting some keys involving proper‐
99 ties of the packing algorithm a repacking of data is needed.
100 This repacking is performed setting this -r option.
101
102 -p key[:{s|d|i}],key[:{s|d|i}],...
103
104 Declaration of keys to print. For each key a string (key:s), a
105 double (key:d) or an integer (key:i) type can be requested. De‐
106 fault type is string.
107
108 -P key[:{s|d|i}],key[:{s|d|i}],...
109
110 As -p adding the declared keys to the default list.
111
112 -w key[:{s|d|i}]{=|!=}value,key[:{s|d|i}]=value,...
113
114 Where clause. Only GRIB messages matching the key/value con‐
115 straints are copied to the output_grib_file. A valid constraint
116 is of type key=value or key!=value. For each key a string
117 (key:s), a double (key:d) or an integer (key:i) type can be de‐
118 fined. Default type is string. In the value you can also use
119 the forward-slash character '/' to specify an OR condition (i.e.
120 a logical disjunction) Note: only one -w clause is allowed.
121
122 -B 'order by' directive
123
124 Order by. The output will be ordered according to the 'order by'
125 directive. Example: "step:i asc, centre desc" (step numeric as‐
126 cending and centre descending) Default sort mode is 'asc'
127
128 -V Version.
129
130 -W width
131
132 Minimum width of each column in output. Default is 10.
133
134 -M Multi-field support off. Turn off support for multiple fields in
135 single GRIB message.
136
137 -T T | B | M | A
138 Message type. T->GTS, B->BUFR, M->METAR (Experimental), A->Any
139 (Experimental). The input file is interpreted according to the
140 message type.
141
142 -g Copy GTS header.
143
144 -G GRIBEX compatibility mode.
145
146 -7 Does not fail when the message has wrong length
147
148 -X offset
149
150 Input file offset in bytes. Processing of the input file will
151 start from the given offset.
152
153 -v Verbose.
154
155
156
157grib_copy December 2022 GRIB_COPY(1)