source: trunk/SRC/Documentation/idldoc_assistant_output/ToBeReviewed/LECTURE/xncdf_lec.html @ 402

Last change on this file since 402 was 402, checked in by smasson, 15 years ago

update documentation

File size: 11.4 KB
Line 
1
2
3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4  <head>
5    <title>xncdf_lec.pro (SAXO Documentation Assistant)</title>
6  </head>
7
8  <body text="#000000" bgcolor="#FFFFFF">
9
10   
11<!-- Navbar template takes a structure with the following fields:
12       overview_href :
13       overview_selected :
14       dir_overview_href :
15       dir_overview_selected :
16       categories_href :
17       categories_selected :
18       index_href :
19       index_selected :
20       search_href :
21       search_selected :
22       file_selected :
23       source_href :
24       source_selected :
25       help_href :
26       help_selected :
27       etc_selected :
28
29       prev_file_href :
30       next_file_href :
31
32       view_single_page_href :
33       view_frames_href :
34
35       summary_fields_href :
36       summary_routine_href :
37       details_routine_href :
38
39       title :
40       subtitle :
41       user :
42-->
43
44
45<table border="0" cellpadding="0" cellspacing="0" width="98%" bgcolor="#F0F0FF" valign="bottom">
46  <tr>
47    <td width="10%">
48<a href="read_ncdf_varget.html"><img src="./../../prev.gif" border="0" alt="Previous"></a></td>
49    <td width="80%" align="center" valign="center">
50<font size=-1><i>SAXO Documentation Assistant</i>: <a href="./../../home.html">Overview</a></font></td>
51    <td width="10%" align="right">
52<a href=""><img src="./../../next.gif" border="0" alt="Next"></a></td>
53  </tr>
54</table>
55
56
57    <h1><font size="-2">ToBeReviewed/LECTURE/</font></h1>
58    <h2>xncdf_lec.pro</h2>
59
60    <dl>
61    </dl>
62
63   
64 Reading of a NetCdf file with widgets
65
66
67 Procedure called by xmanager when we press on a button of a second widget created by wid_var.
68
69
70 This procedure manage the second created widget when we call xncdf_lec.
71 This widget concern the reading of the variable.
72
73
74 Procedure called by xmanager when we press a button of the first widget
75 created by xncdf_lec
76
77
78   
79    <h2>Routine summary</h2>
80
81    <dl>
82     
83      <dt><a href="#_xncdf_lec"><i>result = </i>xncdf_lec(<i>[name]</i>, ATT=<i>ATT</i>, COUNT=<i>vector</i>, GROUP=<i>GROUP</i>, OFFSET=<i>vector</i>, IODIR=<i>string</i>, SHIFT=<i>vector</i>, STRIDE=<i>vector</i>, VAR=<i>VAR</i>)</a><dt>
84      <dd><font size="-1"> </font></dd>
85     
86      <dt><a href="#_wid_var_event">wid_var_event<i>, event</i></a><dt>
87      <dd><font size="-1"> </font></dd>
88     
89      <dt><a href="#_wid_var">wid_var<i>, widid_pere</i></a><dt>
90      <dd><font size="-1"> </font></dd>
91     
92      <dt><a href="#_xncdf_lec_event">xncdf_lec_event<i>, event</i></a><dt>
93      <dd><font size="-1"> </font></dd>
94     
95    </dl>
96
97    <p>&nbsp;</p>
98   
99
100     
101      <a name="#_xncdf_lec"></a>
102
103      <h2>xncdf_lec  <font size="-1" color="#006633">
104 Widget
105</font></h2>
106
107      <p><font face="Courier"><i>result = </i>xncdf_lec(<i>[<a href="#_xncdf_lec_keyword_name">name</a>]</i>, <a href="#_xncdf_lec_keyword_ATT">ATT</a>=<i>ATT</i>, <a href="#_xncdf_lec_keyword_COUNT">COUNT</a>=<i>vector</i>, <a href="#_xncdf_lec_keyword_GROUP">GROUP</a>=<i>GROUP</i>, <a href="#_xncdf_lec_keyword_OFFSET">OFFSET</a>=<i>vector</i>, <a href="#_xncdf_lec_keyword_IODIR">IODIR</a>=<i>string</i>, <a href="#_xncdf_lec_keyword_SHIFT">SHIFT</a>=<i>vector</i>, <a href="#_xncdf_lec_keyword_STRIDE">STRIDE</a>=<i>vector</i>, <a href="#_xncdf_lec_keyword_VAR">VAR</a>=<i>VAR</i>)</font></p>
108
109   
110
111
112    <h3>Return value</h3>
113  2 different cases:
114  1) None attribute has been selected. In this case, res is the array we
115     wanted to read.
116  2) Some attributes has been selected. In this case, res is a structure
117     whose the first element having the name of the variable is the values
118     array and the other arguments are the select arguments.
119
120
121   
122    <h3>Parameters</h3>
123   
124
125    <a name="#_xncdf_lec_keyword_name"></a>
126    <h4>name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
127      <font size="-1" color="#006633">in</font>
128     
129      <font size="-1" color="#006633">optional</font>
130     
131     
132      <font size="-1" color="#006633">type:</font> <font size="-1" color="#006633"><i>string</i></font>
133     
134     
135    </h4>
136
137   
138 It give the name of the file to be opened.
139
140 If NAME
141 does not contain the separating character of directories ('/' under
142 unix for example), the file will be looked for in the current directory.
143
144   
145   
146
147   
148    <h3>Keywords</h3>
149
150   
151    <a name="#_xncdf_lec_keyword_ATT"></a>
152    <h4>ATT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
153     
154     
155     
156     
157     
158     
159     
160     
161    </h4>
162
163   
164   
165    <a name="#_xncdf_lec_keyword_COUNT"></a>
166    <h4>COUNT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
167     
168     
169     
170     
171     
172      <font size="-1" color="#006633">type:</font> <font size="-1" color="#006633"><i>vector</i></font>
173     
174     
175    </h4>
176
177   
178 An optional vector containing the counts to be used in reading Value.
179
180 COUNT is a 1-based vector with an element for
181 each dimension of the data to be written.
182
183 The default matches
184 the size of the variable so that all data is written out.
185
186   
187    <a name="#_xncdf_lec_keyword_GROUP"></a>
188    <h4>GROUP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
189     
190     
191     
192     
193     
194     
195     
196     
197    </h4>
198
199   
200 The widget ID of the widget that calls XNCDF_LEC.
201
202 When this ID is specified, a death of the caller results in a death
203 of XNCDF_LEC.
204
205   
206    <a name="#_xncdf_lec_keyword_OFFSET"></a>
207    <h4>OFFSET&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
208     
209     
210     
211     
212     
213      <font size="-1" color="#006633">type:</font> <font size="-1" color="#006633"><i>vector</i></font>
214      <font size="-1" color="#006633">default:</font> <font size="-1" color="#006633"><i>[0, 0,...]</i></font>
215     
216    </h4>
217
218   
219 An optional vector containing the starting position
220 for the read.
221
222   
223    <a name="#_xncdf_lec_keyword_IODIR"></a>
224    <h4>IODIR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
225     
226     
227     
228     
229     
230      <font size="-1" color="#006633">type:</font> <font size="-1" color="#006633"><i>string</i></font>
231     
232     
233    </h4>
234
235   
236 It contains the directory where to go look for the file to be read.
237
238 If NAME does not contain the separating character of directories ('/' under
239 unix for example), the file will be called iodir+nom_fichier.
240
241   
242    <a name="#_xncdf_lec_keyword_SHIFT"></a>
243    <h4>SHIFT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
244     
245     
246     
247     
248     
249      <font size="-1" color="#006633">type:</font> <font size="-1" color="#006633"><i>vector</i></font>
250      <font size="-1" color="#006633">default:</font> <font size="-1" color="#006633"><i>[0, 0,...]</i></font>
251     
252    </h4>
253
254   
255 A vector of integers, specifying for each dimension how much we have to shift it.
256
257 See the function <a href="/Applications/itt/idl64/help/online_help/SHIFT.html">SHIFT</a> for more explanations.
258
259 BEWARE,
260 the shift is done on the biggest array before a possible reduction determined
261 by OFFSET and COUNT.
262
263 On the other hand, it is done after the possible extraction
264 created by the STRIDE.
265
266   
267    <a name="#_xncdf_lec_keyword_STRIDE"></a>
268    <h4>STRIDE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
269     
270     
271     
272     
273     
274      <font size="-1" color="#006633">type:</font> <font size="-1" color="#006633"><i>vector</i></font>
275      <font size="-1" color="#006633">default:</font> <font size="-1" color="#006633"><i>[1, 1,...]</i></font>
276     
277    </h4>
278
279   
280 An optional vector containing the strides, or sampling
281 intervals, between accessed values of the netCDF variable.
282
283   
284    <a name="#_xncdf_lec_keyword_VAR"></a>
285    <h4>VAR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
286     
287     
288     
289     
290     
291     
292     
293     
294    </h4>
295
296   
297   
298   
299
300    <h3>Examples</h3><pre>
301
302   IDL> help, xncdf_lec()
303
304    </pre><h3>Version history</h3>
305   
306    <h4>Version</h4>
307 $Id: xncdf_lec.pro 378 2008-08-12 12:35:46Z pinsard $
308
309    <h4>History</h4>
310 Sebastien Masson (smasson@lodyc.jussieu.fr)
311                      24/8/1999
312
313   
314
315   
316   
317   
318   
319   
320
321    <h3>Other attributes</h3>
322   
323   
324    <h4>Uses routines</h4>
325 wididbase, infovariable, resultat, motcle
326
327   
328   
329    <h4>Common blocks used</h4>wididbase
330infovariable
331resultat
332motcle
333
334    <font size="-3"><p>&nbsp;</p></font>
335    <hr size="1" color="#CCCCCC"/>
336     
337      <a name="#_wid_var_event"></a>
338
339      <h2>wid_var_event  </h2>
340
341      <p><font face="Courier">wid_var_event<i>, <a href="#_wid_var_event_keyword_event">event</a></i></font></p>
342
343   
344
345
346   
347
348   
349    <h3>Parameters</h3>
350   
351
352    <a name="#_wid_var_event_keyword_event"></a>
353    <h4>event&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
354      <font size="-1" color="#006633">in</font>
355     
356     
357      <font size="-1" color="#006633">required</font>
358     
359     
360     
361     
362    </h4>
363
364   
365 A structure characterizing the type of event which arrive to a widget number1 2
366
367   
368   
369
370   
371
372   
373    </pre><h3>Version history</h3>
374   
375    <h4>Version</h4>
376 $Id: xncdf_lec.pro 378 2008-08-12 12:35:46Z pinsard $
377
378   
379   
380
381   
382   
383   
384   
385   
386
387    <h3>Other attributes</h3>
388   
389   
390    <h4>Uses routines</h4>
391 wididbase,resultat,infovariable,indicewid,motcle
392
393   
394   
395    <h4>Common blocks used</h4>wididbase
396resultat
397infovariable
398indicewid_var
399motcle
400
401    <font size="-3"><p>&nbsp;</p></font>
402    <hr size="1" color="#CCCCCC"/>
403     
404      <a name="#_wid_var"></a>
405
406      <h2>wid_var  </h2>
407
408      <p><font face="Courier">wid_var<i>, <a href="#_wid_var_keyword_widid_pere">widid_pere</a></i></font></p>
409
410   
411
412
413    <h3>Return value</h3>
414 indirectement res (le tableau ou la structure resultat)
415
416
417   
418    <h3>Parameters</h3>
419   
420
421    <a name="#_wid_var_keyword_widid_pere"></a>
422    <h4>widid_pere&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
423      <font size="-1" color="#006633">in</font>
424     
425     
426      <font size="-1" color="#006633">required</font>
427     
428      <font size="-1" color="#006633">type:</font> <font size="-1" color="#006633"><i>scalar</i></font>
429     
430     
431    </h4>
432
433   
434 It contains the identity of the father widget which was
435 created by xncdf_lec and which has allowed to select the variable to be read.
436
437   
438   
439
440   
441
442   
443    </pre><h3>Version history</h3>
444   
445    <h4>Version</h4>
446 $Id: xncdf_lec.pro 378 2008-08-12 12:35:46Z pinsard $
447   
448   
449
450   
451   
452   
453   
454   
455
456    <h3>Other attributes</h3>
457   
458   
459    <h4>Uses routines</h4>
460 resultat,infovariable,indicewid_var,motcle
461
462   
463   
464    <h4>Common blocks used</h4>resultat
465infovariable
466indicewid_var
467motcle
468
469    <font size="-3"><p>&nbsp;</p></font>
470    <hr size="1" color="#CCCCCC"/>
471     
472      <a name="#_xncdf_lec_event"></a>
473
474      <h2>xncdf_lec_event  </h2>
475
476      <p><font face="Courier">xncdf_lec_event<i>, <a href="#_xncdf_lec_event_keyword_event">event</a></i></font></p>
477
478   
479
480
481   
482
483   
484    <h3>Parameters</h3>
485   
486
487    <a name="#_xncdf_lec_event_keyword_event"></a>
488    <h4>event&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
489     
490     
491     
492     
493     
494     
495     
496     
497    </h4>
498
499   
500 A structure characterising the event type which arrive at the widget number 1.
501
502   
503   
504
505   
506
507   
508    </pre><h3>Version history</h3>
509   
510    <h4>Version</h4>
511 $Id: xncdf_lec.pro 378 2008-08-12 12:35:46Z pinsard $
512
513   
514   
515
516   
517   
518   
519   
520   
521
522    <h3>Other attributes</h3>
523   
524   
525    <h4>Uses routines</h4>
526 resultat, infovariable, motcle
527
528   
529   
530    <h4>Common blocks used</h4>resultat
531infovariable
532motcle
533
534    <font size="-3"><p>&nbsp;</p></font>
535    <hr size="1" color="#CCCCCC"/>
536     
537
538   
539
540    <p><font color="gray" size="-3">&nbsp;&nbsp;Produced by IDLdoc 2.0.</font></p>
541
542  </body>
543</html>
Note: See TracBrowser for help on using the repository browser.