comparison macros_operations.xml @ 0:d5355f6fa02b draft default tip

"planemo upload for repository https://github.com/NordicESMhub/galaxy-tools/tree/master/tools/cdo commit da614bb8e3e9b19a5167ff19b625a71d9976108a"
author climate
date Sat, 15 Jan 2022 23:21:03 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:d5355f6fa02b
1 <macros>
2 <xml name="stat_selection">
3 <param name="stat" type="select" label="Select statistical function" multiple="false">
4 <option value="min">minimum</option>
5 <option value="max">maximum</option>
6 <option value="sum">sum</option>
7 <option value="mean">mean</option>
8 <option value="avg">average</option>
9 <option value="var">variance</option>
10 <option value="std">standard deviation</option>
11 </param>
12 </xml>
13 <xml name="add_cdo_input">
14 <param name="add_file" type="data" optional="true" label="Additional input file" format="netcdf"/>
15 </xml>
16 <xml name="cdo_option">
17 <conditional name="option_type">
18 <param name="add_opt" type="select" label="Provide cdo options" multiple="false">
19 <option value="-a">Generate an absolute time axis (-a)</option>
20 <option value="--cmor">CMOR conform NetCDF output (--cmor)</option>
21 <option value="-f">-Output format (-f format)</option>
22 <option value="-g">-g grid</option>
23 <option value="-gf">-g grid filename</option>
24 <option value="-M">-Indicate that the I/O streams have missing values (-M)</option>
25 <option value="-m">Set the default missing value. Default is-9e+33 (-m missval)</option>
26 <option value="--percentile">Percentile method (--percentile method)</option>
27 <option value="--reduce_dim">Reduce NetCDF dimensions (--reduce_dim)</option>
28 <option value="-R">Convert GRIB1 data from reduced to regular grid (-R)</option>
29 <option value="--seed">Seed for a new sequence of pseudo-random numbers (--seed seed)</option>
30 <option value="--sortname">Alphanumeric sorting of NetCDF parameter names (--sortname)</option>
31 <option value="-r">Generate a relative time axis (-r)</option>
32 </param>
33 <when value="-a"/>
34 <when value="--cmor"/>
35 <when value="-f">
36 <param name="output_format" type="select" label="Select output format" multiple="false">
37 <option value="nc4">NetCDF-4 (HDF5)</option>
38 <option value="nc4c">NetCDF-4 classic</option>
39 <option value="nc5">NetCDF version 5</option>
40 </param>
41 </when>
42 <when value="-g">
43 <param name="grid" type="text" label="Grid" help="(option -g grid)"/>
44 </when>
45 <when value="-gf">
46 <param name="gridfile" type="data" label="Grid file" help="(option -g gridfile)" format="txt"/>
47 </when>
48 <when value="-M"/>
49 <when value="-m">
50 <param name="missval" type="float" value="-9e+33" label="Set the default missing value"/>
51 </when>
52 <when value="--percentile">
53 <param name="percentile" type="select" label="Percentile method">
54 <option value="nrank">nrank</option>
55 <option value="nist">nist</option>
56 <option value="rtype8">rtype8</option>
57 <option value="numpy">numpy</option>
58 <option value="numpy_lower">numpy_lower</option>
59 <option value="numpy_higher">numpy_higher</option>
60 <option value="numpy_nearest">numpy_nearest</option>
61 </param>
62 </when>
63 <when value="--reduce_dim"/>
64 <when value="-R"/>
65 <when value="--seed">
66 <param name="seed" type="float" value="0.0" label="Seed for a new sequence of pseudo-random numbers"/>
67 </when>
68 <when value="--sortname"/>
69 <when value="-r"/>
70 </conditional>
71 </xml>
72 <xml name="cdo_operator">
73 <conditional name="operator">
74 <param name="opt" type="select" label="Select cdo operator" multiple="false">
75 <option value="copy">copy (Copy datasets)</option>
76 <option value="cat">cat (Concatenate datasets)</option>
77 <option value="replace">replace (Replace variables)</option>
78 <option value="duplicate">duplicate (Duplicates a dataset)</option>
79 <option value="mergegrid">mergegrid (Merge grid)</option>
80 <option value="merge">merge (Merge datasets with different fields)</option>
81 <option value="mergetime">mergetime (Merge datasets sorted by date and time)</option>
82 <option value="splitcode">splitcode (Split code numbers)</option>
83 <option value="splitparam">splitparam (Split parameter identifiers)</option>
84 <option value="splitname">splitname (Split variable names)</option>
85 <option value="splitlevel">splitlevel (Split levels)</option>
86 <option value="splitgrid">splitgrid (Split grids)</option>
87 <option value="splitzaxis">splitzaxis (Split z-axes)</option>
88 <option value="splittabnum">splittabnum (Split parameter table numbers)</option>
89 <option value="splithour">splithour (Split hours)</option>
90 <option value="splitday">splitday (Split days)</option>
91 <option value="splitseas">splitseas (Split seasons)</option>
92 <option value="splityear">splityear (Split years)</option>
93 <option value="splityearmon">splityearmon (Split in years and months)</option>
94 <option value="splitmon">splitmon (Split months)</option>
95 <option value="splitsel">splitsel (Split time selection)</option>
96 <option value="distgrid">distgrid (Distribute horizontal grid)</option>
97 <option value="collgrid">collgrid (Collect horizontal grid)</option>
98 <option value="select">select (Select all fields with parameters in a user given list.)</option>
99 <option value="delete">delete (Delete all fields with parameters in a user given list.)</option>
100 <option value="selname">selname (Select parameters by name)</option>
101 <option value="delname">delname (Delete parameters by name)</option>
102 <option value="seltimestep">seltimestep (Select timesteps)</option>
103 <option value="sellonlatbox">sellonlatbox (Select a latitude/longitude box)</option>
104 <option value="invertlat">invertlat (Invert latitudes)</option>
105 <option value="addc">addc (Add a constant)</option>
106 <option value="subc">subc (Substract a constant)</option>
107 <option value="mulc">mulc (Multiply with a constant)</option>
108 <option value="divc">divc (Divide with a constant)</option>
109 <option value="expr">expr (Evaluate expressions)</option>
110 <option value="ml2pl">ml2pl (Model to pressure level interpolation)</option>
111 <option value="ml2hl">ml2hl (Model to height level interpolation)</option>
112 <option value="intlevel">intlevel (Linear level interpolation)</option>
113 <option value="sp2gp">sp2gp (Spectral to gridpoint)</option>
114 <option value="gp2sp">gp2sp (Gridpoint to spectral)</option>
115 <option value="ens">Ensemble statistics</option>
116 <option value="zon">Zonal statistics</option>
117 <option value="tim">Time statistics</option>
118 <option value="vert">Vertical statistics</option>
119 <option value="day">Daily statistics</option>
120 <option value="year">Yearly statistics</option>
121 <option value="mon">Monthly statistics</option>
122 <option value="seas">Seasonal statistics</option>
123 <option value="fld">Statistical values over a field</option>
124 <option value="add">Add two fields </option>
125 <option value="sub">Subtract two fields </option>
126 <option value="mul">Multiply two fields </option>
127 <option value="div">Divide two fields </option>
128 <option value="min">Minimum of two fields </option>
129 <option value="max">Maximum of two fields </option>
130 <option value="setattribute">Set/modify attributes</option>
131 </param>
132 <when value="copy">
133 <param name="add_file" type="data" multiple="true" min="0" label="Additional input file" format="netcdf"/>
134 </when>
135 <when value="cat">
136 <param name="add_file" type="data" multiple="true" min="0" label="Additional input file" format="netcdf"/>
137 </when>
138 <when value="replace">
139 <param name="add_file" type="data" multiple="true" min="0" max="2" label="Additional input file" format="netcdf"/>
140 </when>
141 <when value="duplicate">
142 <param name="ndup" type="integer" label="Number of duplicates" value="2"/>
143 <expand macro="add_cdo_input"/>
144 </when>
145 <when value="mergegrid">
146 <expand macro="add_cdo_input"/>
147 </when>
148 <when value="merge">
149 <param name="add_file" type="data" multiple="true" min="0" label="Additional input file" format="netcdf"/>
150 </when>
151 <when value="mergetime">
152 <param name="add_file" type="data" multiple="true" min="0" label="Additional input file" format="netcdf"/>
153 </when>
154 <when value="splitcode">
155 <expand macro="add_cdo_input"/>
156 </when>
157 <when value="splitparam">
158 <expand macro="add_cdo_input"/>
159 </when>
160 <when value="splitname">
161 <expand macro="add_cdo_input"/>
162 </when>
163 <when value="splitlevel">
164 <expand macro="add_cdo_input"/>
165 </when>
166 <when value="splitgrid">
167 <expand macro="add_cdo_input"/>
168 </when>
169 <when value="splitzaxis">
170 <expand macro="add_cdo_input"/>
171 </when>
172 <when value="splittabnum">
173 <expand macro="add_cdo_input"/>
174 </when>
175 <when value="splithour">
176 <expand macro="add_cdo_input"/>
177 </when>
178 <when value="splitday">
179 <expand macro="add_cdo_input"/>
180 </when>
181 <when value="splitseas">
182 <expand macro="add_cdo_input"/>
183 </when>
184 <when value="splityear">
185 <expand macro="add_cdo_input"/>
186 </when>
187 <when value="splityearmon">
188 <expand macro="add_cdo_input"/>
189 </when>
190 <when value="splitmon">
191 <expand macro="add_cdo_input"/>
192 </when>
193 <when value="splitsel">
194 <param name="nset" type="integer" value="0" label="Number of input timesteps for each output file"/>
195 <param name="noffset" type="integer" optional="true" label="Number of input timesteps skipped before the first timestep range (optional)"/>
196 <param name="nskip" type="integer" optional="true" label="Number of input timesteps skipped between timestep ranges (optional)"/>
197 <expand macro="add_cdo_input"/>
198 </when>
199 <when value="distgrid">
200 <param name="nx" type="integer" value="1" label="Number of regions in x direction, or number of pieces for unstructured grids"/>
201 <param name="ny" type="integer" label="Number of regions in y direction" value="1"/>
202 <expand macro="add_cdo_input"/>
203 </when>
204 <when value="collgrid">
205 <param name="nx" type="integer" label="Number of regions in x direction" optional="true"/>
206 <param name="names" type="text" label="Comma-separated list of variable names" optional="true"/>
207 <param name="add_file" type="data" multiple="true" min="0" label="Additional input file" format="netcdf"/>
208 </when>
209 <when value="select">
210 <param name="params" type="text" value="" label="Parameters for selection"/>
211 <param name="add_file" type="data" multiple="true" min="0" label="Additional input file" format="netcdf"/>
212 </when>
213 <when value="delete">
214 <param name="params" type="text" label="Parameters for deletion"/>
215 <param name="add_file" type="data" multiple="true" min="0" label="Additional input file" format="netcdf"/>
216 </when>
217 <when value="selname">
218 <param name="params" type="text" value="" label="Parameters for selection"/>
219 <expand macro="add_cdo_input"/>
220 </when>
221 <when value="delname">
222 <param name="params" type="text" value="" label="Parameters for selection"/>
223 <expand macro="add_cdo_input"/>
224 </when>
225 <when value="seltimestep">
226 <param name="params" type="text" value="" label="Timesteps for selection"/>
227 <expand macro="add_cdo_input"/>
228 </when>
229 <when value="sellonlatbox">
230 <param name="params" type="text" value="" label="Parameters for latitude/longitude box in the form of lon1,lon2,lat1,lat2)"/>
231 <expand macro="add_cdo_input"/>
232 </when>
233 <when value="invertlat">
234 <expand macro="add_cdo_input"/>
235 </when>
236 <when value="addc">
237 <param name="const_value" type="float" label="Constant value to add to the fields" value="1"/>
238 <expand macro="add_cdo_input"/>
239 </when>
240 <when value="subc">
241 <param name="const_value" type="float" label="Constant value to substract to the fields" value="1"/>
242 <expand macro="add_cdo_input"/>
243 </when>
244 <when value="mulc">
245 <param name="const_value" type="float" label="Constant value to scale the fields" value="1"/>
246 <expand macro="add_cdo_input"/>
247 </when>
248 <when value="divc">
249 <param name="const_value" type="float" label="Constant value to scale the fields" value="1"/>
250 <expand macro="add_cdo_input"/>
251 </when>
252 <when value="expr">
253 <param name="params" type="text" value="" label="Expression for evaluation"/>
254 <expand macro="add_cdo_input"/>
255 </when>
256 <when value="ml2pl">
257 <param name="params" type="text" value="" label="Pressure levels (comma separated)"/>
258 <expand macro="add_cdo_input"/>
259 </when>
260 <when value="ml2hl">
261 <param name="params" type="text" value="" label="Height levels (comma separated)"/>
262 <expand macro="add_cdo_input"/>
263 </when>
264 <when value="intlevel">
265 <param name="params" type="text" value="" label="Levels (comma separated)"/>
266 <expand macro="add_cdo_input"/>
267 </when>
268 <when value="sp2gp">
269 <param name="trunc" type="integer" optional="true" value="" label="New spectral resolution"/>
270 <expand macro="add_cdo_input"/>
271 </when>
272 <when value="gp2sp">
273 <param name="trunc" type="integer" optional="true" label="New spectral resolution"/>
274 <expand macro="add_cdo_input"/>
275 </when>
276 <when value="ens">
277 <expand macro="stat_selection" />
278 <expand macro="add_cdo_input"/>
279 </when>
280 <when value="zon">
281 <expand macro="stat_selection" />
282 <expand macro="add_cdo_input"/>
283 </when>
284 <when value="tim">
285 <expand macro="stat_selection" />
286 <expand macro="add_cdo_input"/>
287 </when>
288 <when value="vert">
289 <expand macro="stat_selection" />
290 <expand macro="add_cdo_input"/>
291 </when>
292 <when value="day">
293 <expand macro="stat_selection" />
294 <expand macro="add_cdo_input"/>
295 </when>
296 <when value="year">
297 <expand macro="stat_selection" />
298 <expand macro="add_cdo_input"/>
299 </when>
300 <when value="mon">
301 <expand macro="stat_selection" />
302 <expand macro="add_cdo_input"/>
303 </when>
304 <when value="seas">
305 <expand macro="stat_selection" />
306 <expand macro="add_cdo_input"/>
307 </when>
308 <when value="fld">
309 <expand macro="stat_selection" />
310 <expand macro="add_cdo_input"/>
311 </when>
312 <when value="add">
313 <expand macro="add_cdo_input"/>
314 </when>
315 <when value="sub">
316 <expand macro="add_cdo_input"/>
317 </when>
318 <when value="mul">
319 <expand macro="add_cdo_input"/>
320 </when>
321 <when value="div">
322 <expand macro="add_cdo_input"/>
323 </when>
324 <when value="min">
325 <expand macro="add_cdo_input"/>
326 </when>
327 <when value="max">
328 <expand macro="add_cdo_input"/>
329 </when>
330 <when value="setattribute">
331 <param name="attr_file" type="data" format="txt" label="Text file containing the list of attributes (one per line)"/>
332 <expand macro="add_cdo_input"/>
333 </when>
334 </conditional>
335 </xml>
336 </macros>