Ticket #175: context_atm.xml

File context_atm.xml, 12.1 KB (added by jderouillat, 5 months ago)
Line 
1<!-- -->
2<context id="atm">
3 
4  <calendar type="Gregorian" time_origin="1850-01-01 00:00:00" /> 
5 
6  <domain_definition>
7    <domain id="domain" />
8    <domain id="other_domain" />
9    <domain id="square_domain" ni_glo="36" nj_glo="36" type="rectilinear"/>
10  </domain_definition>
11
12  <axis_definition>
13    <axis id="axis" />
14    <axis id="domain_X" />
15    <axis id="domain_Y" />
16    <axis id="ensemble" />
17
18
19    <axis id="other_axis" />
20    <axis id="other_domain_X" />
21    <axis id="other_domain_Y" />
22    <axis id="other_ensemble" />
23  </axis_definition>
24
25  <scalar_definition>
26    <scalar id="scalar" /> 
27    <scalar id="other_scalar" /> 
28  </scalar_definition>
29 
30 
31 
32  <grid_definition>
33   
34    <grid id="grid3D">
35      <domain domain_ref="domain" />
36      <axis axis_ref="axis" />
37    </grid>
38   
39    <grid id="grid2D">
40      <domain domain_ref="domain" />
41    </grid>
42
43    <grid id="grid1D">
44      <axis axis_ref="axis" />
45    </grid>
46   
47    <grid id="grid2D_zoom">
48      <domain domain_ref="domain">
49      <zoom_domain ni="10" ibegin="15" nj="16" jbegin="0"/>
50      </domain> 
51    </grid>
52
53    <grid id="grid2D_extract">
54      <domain domain_ref="domain">
55      <extract_domain ni="10" ibegin="15" nj="16" jbegin="0"/>
56      </domain> 
57    </grid>
58
59    <grid id="grid3D_zoom">
60      <domain domain_ref="domain">
61      <zoom_domain ni="10" ibegin="15" nj="16" jbegin="0"/>
62      </domain> 
63      <axis axis_ref="axis" />
64    </grid>
65
66    <grid id="grid3D_extract">
67      <domain domain_ref="domain">
68      <extract_domain ni="10" ibegin="15" nj="16" jbegin="0"/>
69      </domain> 
70      <axis axis_ref="axis" />
71    </grid>
72
73    <grid id="grid2D_square">
74      <domain domain_ref="square_domain">
75      <generate_rectilinear_domain lon_start="-175"/>
76      <interpolate_domain order="1"/>
77      </domain> 
78    </grid>
79
80    <grid id="grid2D_reorder">
81      <domain domain_ref="domain">
82      <reorder_domain invert_lat="true" />
83      </domain> 
84    </grid>
85
86    <grid id="grid2D_expand">
87      <domain domain_ref="domain">
88      <expand_domain order="1" type="node"/>
89      </domain> 
90    </grid>
91
92
93
94
95
96
97
98    <grid id="grid_X">
99      <axis axis_ref="domain_X" />
100    </grid>
101
102    <grid id="grid_Y">
103      <axis axis_ref="domain_Y" />
104    </grid>
105
106    <grid id="grid_XY">
107      <axis axis_ref="domain_X" />
108      <axis axis_ref="domain_Y" />
109    </grid>
110
111    <grid id="grid_XYZ">
112      <axis axis_ref="domain_X" />
113      <axis axis_ref="domain_Y" />
114      <axis axis_ref="axis" />
115    </grid>
116
117    <grid id="grid_XZ">
118      <axis axis_ref="domain_X" />
119      <axis axis_ref="axis" />
120    </grid>
121
122    <grid id="grid_YZ">
123      <axis axis_ref="domain_Y" />
124      <axis axis_ref="axis" />
125    </grid>
126
127
128    <grid id="grid3D_W">
129      <domain domain_ref="domain" />
130      <axis axis_ref="axis" />
131      <axis axis_ref="ensemble" />
132    </grid>
133   
134    <grid id="grid2D_W">
135      <domain domain_ref="domain" />
136      <axis axis_ref="ensemble" />
137    </grid>
138
139    <grid id="grid1D_W">
140      <axis axis_ref="axis" />
141      <axis axis_ref="ensemble" />
142    </grid>
143
144    <grid id="grid_XW">
145      <axis axis_ref="domain_X" />
146      <axis axis_ref="ensemble" />
147    </grid>
148
149    <grid id="grid_YW">
150      <axis axis_ref="domain_Y" />
151      <axis axis_ref="ensemble" />
152    </grid>
153
154    <grid id="grid_XYW">
155      <axis axis_ref="domain_X" />
156      <axis axis_ref="domain_Y" />
157      <axis axis_ref="ensemble" />
158    </grid>
159
160    <grid id="grid_XYZW">
161      <axis axis_ref="domain_X" />
162      <axis axis_ref="domain_Y" />
163      <axis axis_ref="axis" />
164      <axis axis_ref="ensemble" />
165    </grid>
166
167    <grid id="grid_XZW">
168      <axis axis_ref="domain_X" />
169      <axis axis_ref="axis" />
170      <axis axis_ref="ensemble" />
171    </grid>
172
173    <grid id="grid_YZW">
174      <axis axis_ref="domain_Y" />
175      <axis axis_ref="axis" />
176      <axis axis_ref="ensemble" />
177    </grid>
178
179 
180 
181    <grid id="other_grid3D">
182      <domain domain_ref="other_domain" />
183      <axis axis_ref="other_axis" />
184    </grid>
185   
186    <grid id="other_grid2D">
187      <domain domain_ref="other_domain" />
188    </grid>
189
190    <grid id="other_grid1D">
191      <axis axis_ref="other_axis" />
192    </grid>
193
194    <grid id="other_grid_X">
195      <axis axis_ref="other_domain_X" />
196    </grid>
197
198    <grid id="other_grid_Y">
199      <axis axis_ref="other_domain_Y" />
200    </grid>
201
202    <grid id="other_grid_XY">
203      <axis axis_ref="other_domain_X" />
204      <axis axis_ref="other_domain_Y" />
205    </grid>
206
207    <grid id="other_grid_XYZ">
208      <axis axis_ref="other_domain_X" />
209      <axis axis_ref="other_domain_Y" />
210      <axis axis_ref="other_axis" />
211    </grid>
212
213    <grid id="other_grid_XZ">
214      <axis axis_ref="other_domain_X" />
215      <axis axis_ref="other_axis" />
216    </grid>
217
218    <grid id="other_grid_YZ">
219      <axis axis_ref="other_domain_Y" />
220      <axis axis_ref="other_axis" />
221    </grid>
222
223
224    <grid id="other_grid3D_W">
225      <domain domain_ref="other_domain" />
226      <axis axis_ref="other_axis" />
227      <axis axis_ref="other_ensemble" />
228    </grid>
229   
230    <grid id="other_grid2D_W">
231      <domain domain_ref="other_domain" />
232      <axis axis_ref="other_ensemble" />
233    </grid>
234
235    <grid id="other_grid1D_W">
236      <axis axis_ref="other_axis" />
237      <axis axis_ref="other_ensemble" />
238    </grid>
239
240    <grid id="other_grid_XW">
241      <axis axis_ref="other_domain_X" />
242      <axis axis_ref="other_ensemble" />
243    </grid>
244
245    <grid id="other_grid_YW">
246      <axis axis_ref="other_domain_Y" />
247      <axis axis_ref="other_ensemble" />
248    </grid>
249
250    <grid id="other_grid_XYW">
251      <axis axis_ref="other_domain_X" />
252      <axis axis_ref="other_domain_Y" />
253      <axis axis_ref="other_ensemble" />
254    </grid>
255
256    <grid id="other_grid_XYZW">
257      <axis axis_ref="other_domain_X" />
258      <axis axis_ref="other_domain_Y" />
259      <axis axis_ref="other_axis" />
260      <axis axis_ref="other_ensemble" />
261    </grid>
262
263    <grid id="other_grid_XZW">
264      <axis axis_ref="other_domain_X" />
265      <axis axis_ref="other_axis" />
266      <axis axis_ref="other_ensemble" />
267    </grid>
268
269    <grid id="other_grid_YZW">
270      <axis axis_ref="other_domain_Y" />
271      <axis axis_ref="other_axis" />
272      <axis axis_ref="other_ensemble" />
273    </grid>
274
275   
276  </grid_definition>
277 
278 
279  <field_definition level="1" prec="8" operation="instant" freq_op="1ts" enabled=".true." default_value="1.e+20" detect_missing_value="true">
280    <field id="field2D" grid_ref="grid2D" />
281    <field id="field3D" grid_ref="grid3D"  />
282    <field id="pressure" grid_ref="grid3D"  />
283    <field id="field3D_recv" read_access="true" grid_ref="grid3D"  field_ref="field3D" />
284    <field id="field3D_resend" grid_ref="grid3D" />
285
286    <field id="field_X" grid_ref="grid_X" />
287    <field id="field_Y" grid_ref="grid_Y" />
288    <field id="field_Z" grid_ref="grid1D" />
289    <field id="field_XY" grid_ref="grid_XY" />
290    <field id="field_XYZ" grid_ref="grid_XYZ" />
291    <field id="field_XZ" grid_ref="grid_XZ" />
292    <field id="field_YZ" grid_ref="grid_YZ" />
293
294
295    <field id="field2D_W" grid_ref="grid2D_W"/>
296    <field id="field3D_W" grid_ref="grid3D_W"  />
297    <field id="pressure_W" grid_ref="grid3D_W"  />
298    <field id="field3D_recv_W" read_access="true" grid_ref="grid3D_W"  field_ref="field3D_W"/>
299    <field id="field3D_resend_W" grid_ref="grid3D_W" />
300
301    <field id="field_XW" grid_ref="grid_XW" />
302    <field id="field_YW" grid_ref="grid_YW" />
303    <field id="field_ZW" grid_ref="grid1D_W" />
304    <field id="field_XYW" grid_ref="grid_XYW" />
305    <field id="field_XYZW" grid_ref="grid_XYZW" />
306    <field id="field_XZW" grid_ref="grid_XZW" />
307    <field id="field_YZW" grid_ref="grid_YZW" />
308
309
310    <field id="other_field2D" grid_ref="other_grid2D"/>
311    <field id="other_field3D" grid_ref="other_grid3D"  />
312    <field id="other_pressure" grid_ref="other_grid3D"  />
313    <field id="other_field3D_recv" read_access="true" grid_ref="other_grid3D"  field_ref="other_field3D"/>
314    <field id="other_field3D_resend" grid_ref="other_grid3D" />
315
316    <field id="other_field_X" grid_ref="other_grid_X" />
317    <field id="other_field_Y" grid_ref="other_grid_Y" />
318    <field id="other_field_Z" grid_ref="other_grid1D" />
319    <field id="other_field_XY" grid_ref="other_grid_XY" />
320    <field id="other_field_XYZ" grid_ref="other_grid_XYZ" />
321    <field id="other_field_XZ" grid_ref="other_grid_XZ" />
322    <field id="other_field_YZ" grid_ref="other_grid_YZ" />
323
324    <field id="other_field2D_W" grid_ref="other_grid2D_W"/>
325    <field id="other_field3D_W" grid_ref="other_grid3D_W"  />
326    <field id="other_pressure_W" grid_ref="other_grid3D_W"  />
327    <field id="other_field3D_recv_W" read_access="true" grid_ref="other_grid3D_W"  field_ref="other_field3D_W"/>
328    <field id="other_field3D_resend_W" grid_ref="other_grid3D_W" />
329
330    <field id="other_field_XW" grid_ref="other_grid_XW" />
331    <field id="other_field_YW" grid_ref="other_grid_YW" />
332    <field id="other_field_ZW" grid_ref="other_grid1D_W" />
333    <field id="other_field_XYW" grid_ref="other_grid_XYW" />
334    <field id="other_field_XYZW" grid_ref="other_grid_XYZW" />
335    <field id="other_field_XZW" grid_ref="other_grid_XZW" />
336    <field id="other_field_YZW" grid_ref="other_grid_YZW" />
337
338   
339   
340  </field_definition>
341
342
343
344<!-- implementation of specifics test case -->
345<!-- simplest test cases : output data to file -->
346
347 
348
349  <file_definition  type="one_file" >
350    <file id="atm_output_domain_transformation_zoom" output_freq="12ts" type="one_file" enabled="false">
351       <field field_ref="field2D" />
352       <field field_ref="field3D" />
353       <field id="field2D_zoom" field_ref="field2D" grid_ref="grid2D_zoom" />
354       <field id="field3D_zoom" field_ref="field3D" grid_ref="grid3D_zoom" />
355    </file>
356
357    <file id="atm_output_domain_transformation_extract" output_freq="12ts" type="one_file" enabled="true">
358       <field field_ref="field2D" />
359       <field field_ref="field3D" />
360       <field id="field2D_extract" field_ref="field2D" grid_ref="grid2D_extract" />
361       <field id="field3D_extract" field_ref="field3D" grid_ref="grid3D_extract" />
362    </file>
363
364    <file id="atm_output_domain_transformation_interpolate" output_freq="12ts" type="one_file" enabled="true">
365       <field field_ref="field2D" />
366       <field id="field2D_interpolate" field_ref="field2D" grid_ref="grid2D_square" />
367    </file>
368
369   <file id="atm_output_domain_transformation_reorder" output_freq="12ts" type="one_file" enabled="true">
370       <field field_ref="field2D" />
371       <field id="field2D_reorder" field_ref="field2D" grid_ref="grid2D_reorder" />
372    </file>
373
374   <file id="atm_output_domain_transformation_expand" output_freq="12ts" type="one_file" enabled="true">
375       <field id="field2D_expand" field_ref="field2D" grid_ref="grid2D_expand" />
376    </file>
377
378
379
380    <file id="atm_output" output_freq="1ts" type="one_file" enabled="false">
381       <field field_ref="field3D" />
382       <field field_ref="field2D" /> 
383       <field field_ref="field_X" />
384       <field field_ref="field_Y" />
385       <field field_ref="field_XY" />
386       <field field_ref="field_Z" />
387       <field field_ref="field_XYZ" />
388       <field field_ref="field_XZ" />
389       <field field_ref="field_YZ" />
390       <field field_ref="pressure"  /> 
391       <field field_ref="field3D_resend" />
392    </file>
393
394    <file id="atm_output_other" output_freq="1ts" type="one_file" enabled="false">
395       <field field_ref="other_field3D" />
396       <field field_ref="other_field2D" /> 
397       <field field_ref="other_field_X" />
398       <field field_ref="other_field_Y" />
399       <field field_ref="other_field_XY" />
400       <field field_ref="other_field_Z" />
401       <field field_ref="other_field_XYZ" />
402       <field field_ref="other_field_XZ" />
403       <field field_ref="other_field_YZ" />
404       <field field_ref="other_pressure"  /> 
405       <field field_ref="other_field3D_resend" />
406    </file>
407
408    <file id="atm_output_W" output_freq="1ts" enabled="false">
409       <field field_ref="field3D_W" />
410       <field field_ref="field2D_W" /> 
411       <field field_ref="field_XW" />
412       <field field_ref="field_YW" />
413       <field field_ref="field_XYW" />
414       <field field_ref="field_ZW" />
415       <field field_ref="field_XYZW" />
416       <field field_ref="field_XZW" />
417       <field field_ref="field_YZW" />
418    </file>
419   
420   
421  </file_definition>
422 
423 
424</context>