source: trunk/SRC/Documentation/xmldoc/wiki/MiniNotice @ 351

Last change on this file since 351 was 351, checked in by pinsard, 16 years ago

new wiki generation technique : form _full.xml instead of .html

File size: 18.1 KB
Line 
1
2
3= Mini Guide for Basic Commands in the XXX Program =
4[[PageOutline]]
5 
6   
7   
8   
9     
10 
11
12
13== Launching XXX ==
14
15
16There is several ways to launch XXX which we will detail in the next sections:
17  {{{
18#!html
19<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">
20    <code class="prompt">idl&gt;</code> <strong class="userinput"><code><span><strong class="command">xxx</strong></span></code></strong>
21    <code class="prompt">idl&gt;</code> <strong class="userinput"><code><span><strong class="command">xxx</strong></span>, <em class="parameter"><code>/separate</code></em></code></strong>
22    <code class="prompt">idl&gt;</code> <strong class="userinput"><code><span><strong class="command">xxx</strong></span>, <em class="parameter"><code>restore = 'file.dat'</code></em></code></strong>
23    <code class="prompt">idl&gt;</code> <strong class="userinput"><code><span><strong class="command">xxx</strong></span>, <em class="parameter"><code>'file.nc'</code></em></code></strong>
24    <code class="prompt">idl&gt;</code> <strong class="userinput"><code><span><strong class="command">xxx</strong></span>, <em class="parameter"><code>'file.nc'</code></em>, <em class="parameter"><code>keywd1 = 
</code></em>, <em class="parameter"><code>keywd2 = 
</code></em></code></strong>
25    <code class="prompt">idl&gt;</code> <strong class="userinput"><code><span><strong class="command">xxx</strong></span>, <em class="parameter"><code>'file.nc'</code></em>, <em class="parameter"><code>'initgrid'</code></em></code></strong>
26    <code class="prompt">idl&gt;</code> <strong class="userinput"><code><span><strong class="command">xxx</strong></span>, <em class="parameter"><code>'file.nc'</code></em>, <em class="parameter"><code>'initgrid'</code></em>, <em class="parameter"><code>keywd1 = 
</code></em>, <em class="parameter"><code>keywd2 = 
</code></em></code></strong>
27    <code class="prompt">idl&gt;</code> <strong class="userinput"><code><span><strong class="command">xxx</strong></span>, <em class="parameter"><code>'file.nc'</code></em>, <em class="parameter"><code>'initgrid'</code></em>, <em class="parameter"><code>'arg1, arg2, 
'</code></em></code></strong>
28  </pre>
29}}}
30
31
32=== idl&gt; xxx ===
33 
34    A window will open with 3 parts to consider.
35
36Window xxx 1
37
38
39
40
41
42
43
44
45[[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_0101.png)]]
46
47
48
49Data file name
50
51
52Grid initialization method
53
54
55Grid initialization parameters
56
57
58
59
60
61
62 
63
64==== Data file name ====
65 
66    The name of the data file. It can be typed directly in the window provided, or selected with the help of the browse button.
67 
68
69==== Grid initialization method ====
70 
71    For visualising grilled data, you need to [wiki:FirstSteps define the grid] on which are located the data. By default, "automatic grid construction with initncdf.pro" is checked. This means that the grid will be defined by using the informations contained in the data file (through the IDL prodecure {{{initncdf}}}) without needing any other auxiliary file. If you checked "grid construction with other IDL batch or procedure", this means that you don't want to use the default {{{initncdf}}} procedure to define the grid and you will provide your own IDL procedure or the so-called IDL batch file (a file which is called by using @, see IDL documentation).
72 
73
74==== Grid initialization parameters ====
75 
76    This third part allows you to specify the name, the argument and the keywords of the routine you want to use to initialize the grid.
77By default the name of the procedure is {{{initncdf}}}, its argument will be automatically defined so you cannot change them. If you If you checked "grid construction with other IDL batch or procedure", you have to select the name of the IDL procedure or batch file and its suitable arguments and keywords. Note that if you select an IDL batch file you cannot give any parameter or keyword.
78   
79      Window xxx 1
80     
81 
82    [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_0102.png)]]
83 
84     
85   
86 
87 
88    Once these two lines have been completed, click on let's go.
89 
90  For example, we choose the IDL batch file "tst_initlev". Compare the result with "automatic grid construction with initncdf.pro" checked. Cf [#Launching XXX]
91 
92
93 
94      Oceania at 125 meters of depth with proper grid initialization
95
96
97  [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_0103.png)]]
98
99     
100 
101
102
103
104
105=== idl&gt; xxx, /separate ===
106
107This is the same as the simple idl&gt; xxx except that once the xxx window open, you will have 2 separate windows (command and plotting window) instead of one.
108
109
110
111=== idl&gt; xxx, restore = 'file.dat' ===
112
113In that case xxx window will open directly in the same state as it was when the file "file.dat" was created. see +++++++
114
115
116
117=== idl&gt; xxx, 'file.nc' ===
118
119In this case, the xxx window directly open the data file 'file.nc' and build the grid automatically with the IDL procedure {{{initncdf}}}. For example:
120  {{{
121#!html
122<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">
123    <code class="prompt">idl&gt;</code> <strong class="userinput"><code><span><strong class="command">xxx</strong></span>, <em class="parameter"><code>'Levitus98_1m_01_12_Temperature_Pot_1x1.nc'</code></em></code></strong>
124  </pre>
125}}}
126
127
128
129=== idl&gt; xxx, 'file.nc', keywd1 = 
, keywd2 = 
 ===
130
131In this case, the xxx window directly open the data file 'file.nc', build the grid automatically with the IDL procedure {{{initncdf}}} and use the keywords keywd1 = 
, keywd2 = 
 in the call of {{{initncdf}}}. For example:
132  {{{
133#!html
134<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">
135    <code class="prompt">idl&gt;</code> <strong class="userinput"><code><span><strong class="command">xxx</strong></span>, <em class="parameter"><code>'Levitus98_1m_01_12_Temperature_Pot_1x1.nc'</code></em>, <em class="parameter"><code>useasmask = 'votemper'</code></em>, <em class="parameter"><code>missing_value = 31.0720</code></em></code></strong>
136  </pre>
137}}}
138
139
140
141=== idl&gt; xxx, 'file.nc', 'initgrid' ===
142
143In this case, the xxx window directly open the data file 'file.nc' and build the grid directly with the IDL procedure or batch file {{{initgrid}}}
144  {{{
145#!html
146<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">
147    <code class="prompt">idl&gt;</code> <strong class="userinput"><code><span><strong class="command">xxx</strong></span>, <em class="parameter"><code>'Levitus98_1m_01_12_Temperature_Pot_ORCA2.nc'</code></em>, <em class="parameter"><code>'tst_initorca2'</code></em></code></strong>
148  </pre>
149}}}
150
151
152
153=== idl&gt; xxx, 'file.nc', 'initgrid', keywd1 = 
, keywd2 = 
 ===
154
155In this case, the xxx window directly open the data file 'file.nc', build the grid directly with the IDL procedure {{{initgrid}}} and use the keywords keywd1 = 
, keywd2 = 
 in the call of {{{initgrid}}}.
156
157
158
159=== idl&gt; xxx, 'file.nc', 'initgrid', 'arg1, arg2, 
' ===
160
161In this case, the xxx window directly open the data file 'file.nc', build the grid directly with the IDL procedure {{{initgrid}}} and use the string 'arg1, arg2, 
' to specify the input arguments in the call of {{{initgrid}}}.
162
163
164
165
166
167== Description of XXX window ==
168
169
170
171
172Window xxx 2
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188[[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_0201.png)]]
189
190
191
192Plot type
193
194
195Menu
196
197
198OK
199
200
201Page layout
202
203
204Variables list
205
206
207Files list
208
209
210Command text
211
212
213Calendar
214
215
216Domdef
217
218
219Spefications
220
221
222
223
224
225
226
227
228=== Plot type list ===
229Allows specification of the type of plot desired.
230
231   
232      Different plot types available
233
234 
235    [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_0202.png)]]
236 
237     
238   
239
240
241
242If the type plt is selected, the selection of plot type
243is made by mouse. Cf [#Launching XXX]
244
245
246
247=== The menu bar made up of 3 sub-menus ===
248==== File sub-menu ====
249
250   
251      The File menu
252
253 
254    [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_0203.png)]]
255 
256     
257   
258
259
260
261* #xA;* #xA;* #xA;
262
263
264==== Save As sub-menu ====
265
266   
267      The Save As menu
268
269 
270    [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_0204.png)]]
271 
272     
273   
274
275
276
277* #xA;* #xA;* #xA;* #xA;* #xA;* #xA;
278
279
280==== Flag options sub-menu ====
281
282   
283      The Flag Option menu
284
285 
286    [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_0205.png)]]
287 
288     
289   
290
291
292
293* #xA;* #xA;* #xA;* #xA;* #xA;
294
295Careful, a selected option remains selected until it is re-clicked.
296
297
298
299=== OK button ===
300Click on this OK button is required to make a new plot appear
301
302
303=== Page Layout ===
304Specify the number of columns and rows for plots on the sheet of paper.
305
306   
307      Number of Column
308
309 
310    [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_0206.png)]]
311 
312     
313   
314
315
316   
317      Example: For 2 columns and 2 rows
318
319 
320    [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_0206a.png)]]
321 
322     
323   
324
325
326
327=== List of variables ===
328You can choose the variable to work on.
329
330   
331      Example of different Variables available
332
333 
334    [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_0207.png)]]
335 
336     
337   
338
339
340
341=== List of open files ===
342You can choose the file to work on.
343
344   
345      Example of list of open files
346
347 
348    [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_0208.png)]]
349 
350     
351   
352
353
354
355=== Command text ===
356
357To specify in the widget part number 7 the computation you want to do on the data
358In all cases bellow, the name given to a field (a, b, c, 
) is of no importance.
359
360==== Linear calculation ====
361
362If you want to make basic linear computation (like difference between fields, add/multiply by a constant 
). you can simply put the following commands: {{{
363#!html
364<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">a - b</pre>
365}}}{{{
366#!html
367<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">numb1*a</pre>
368}}}{{{
369#!html
370<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">a + numb</pre>
371}}} or any command with the following format {{{
372#!html
373<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">numb1*a + numb2*b  + numb3*c 
 + numb</pre>
374}}} where numb1, numb2, 
 correspond to numbers and a, b, c 
 will be the data to read.
375
376
377==== Any kind of computation ====
378
379If you want to make a computation more complicated than a basic linear you must put designate the data you want to read between "" (with anything in between the "). For example: {{{
380#!html
381<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">"a"^2</pre>
382}}}{{{
383#!html
384<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">"a" - abs("b")</pre>
385}}}{{{
386#!html
387<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">grad("a", 'x')</pre>
388}}} 

389
390
391
392
393=== Calendar ===
394
395The calendar is made up of two drop-lists, which allow specification of two dates, the beginning and end of a time series, or the period over which to average before plotting.
396
397   
398      Example: first plot in January, second plot is from January to December
399
400 
401    [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_0301.png)]]
402 
403     
404   
405
406
407
408=== Define the domain ===
409
410  A series of widgets that allow specification of the min/max limits of the domain in longitude/x-index, latitude/y-index, and depth in levels or meters.
411 
412    Domain by default
413
414   
415      [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_0210.png)]]
416   
417     
418 
419 
420    Change Domain area: zoom on Oceania
421
422 
423    [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_0401.png)]]
424 
425     
426 
427 
428    This configuration give us:
429
430   
431      [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_0402.png)]]
432   
433     
434 
435 
436    Change depth area: between depth 125 and 126
437
438   
439      [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_0403.png)]]
440   
441     
442 
443 
444    temperature of the ocean at depth 125 meters without proper land/sea mask
445
446   
447      [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_0404.png)]]
448   
449     
450 
451  As you can see, at this depth, we better define a land/sea mask when loading the grid. Cf [#Launching XXX]
452
453
454
455=== Specify your plot ===
456
457==== Specify min, max and contour interval ====
458
459 
460    min, max, and contour interval specifications
461
462   
463      [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_0501.png)]]
464   
465     
466 
467  You can restore configuration by default by pressing the Default button.
468  The path of the file [../../ToBeReviewed/WIDGET/AUTOUR_de_XXX/definedefaultextra.pro definedefaultextra.pro] that defines the default values for each variable names is displayed when the cursor hovers over the button Default. This file contains a case statement based on the name of the variable and defining the min, max, contour interval and other keywords that should be used as default for the specified variable. You can copy this file in your own {{{${HOME}/My_IDL/}}} directory and easily modify it to suit your favorite default values.
469
470
471
472==== Specify the palette to be used ====
473For the color palette, you can either specify the name or go search for one among the palettes available.
474
475   
476      The Color menu
477
478 
479    [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_0502.png)]]
480 
481     
482   
483
484
485
486==== Add any keyword ====
487
488  The "keywords" window allows specification of all desired keywords. There is a few examples of the use of this "keywords" window.
489 
490    Without any additional keyword
491
492   
493      [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_0209.png)]]
494   
495     
496 
497 
498    Add {{{/realcont}}} keyword
499
500   
501      [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_0210a.png)]]
502   
503     
504 
505 
506    Graphic with {{{/realcont}}} keyword
507
508   
509      [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_0210.png)]]
510   
511     
512 
513 
514    Add /realcont, map=[90,0,0], /ortho, cell_fill=2 keywords
515
516   
517      [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_0211a.png)]]
518   
519     
520 
521 
522    Graphic with /realcont, map=[90,0,0], /ortho, cell_fill=2 keywords
523
524   
525      [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_0211.png)]]
526   
527     
528 
529
530
531
532
533
534== Mouse Actions ==
535
536=== In the graphics window on a horizontal plot ===
537
538Select a domain and select the horizontal plot (plt), vertical plot
539(pltz), or the hovmoeller plot (pltt):
540
541The domain we'd like to select for the plot is determined by one of
542its diagonals, defined therefore by two points.
543The first point is
544defined when the mouse button is pushed, then the mouse is moved, and
545the second point is defined as the mouse button is released
546(click-drag).
547The domains are thus defined by a long click (LC).
548To determine which type of plot should be made of selection, use:
549
550
551If the plot selector is on plt
552
553* #xA;* #xA;* #xA;
554
555
556In summary:
557
558
559
560* #xA;* #xA;
561
562
563* #xA;* #xA;
564
565
566* #xA;* #xA;
567
568
569
570
571If the plot selector is on something other than plt the indicated plot type is made.
572
573
574=== Create multiple plots on the same sheet and make them interact ===
575
576
577Select the number of columns and rows for the page.
578
579Create a first plot.
580It will appear in the first frame.
581
582To create a plot in another frame double-click in the frame with the
583middle button (DCM).
584A black dotted frame will surround the designated frame, the "target" frame.
585A black frame will surround the first plot.
586This is the "reference" frame, in other words the one
587that all the XXX widgets refer to.
588Change for example the date and create a new plot.
589With a left button double-click in the first
590frame, all the widgets change and refer again to the first plot.
591A double-click with the right button in the second frame will erase the
592plot.
593In summary:
594
595
596* #xA;* #xA;
597
598
599* #xA;* #xA;
600
601* #xA;
602
603Here's a series of commands to show how this works.
604
605
606
607load xxx with the command:
608  {{{
609#!html
610<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">
611    <code class="prompt">idl&gt;</code> <strong class="userinput"><code><span><strong class="command">xxx</strong></span>, <em class="parameter"><code>'Levitus98_1m_01_12_Temperature_Pot_ORCA05.nc'</code></em>, <em class="parameter"><code>'tst_initorca05'</code></em></code></strong>
612  </pre>
613}}}
614
615
616
617
618Select a 3-D field and create 6 frames for the sheet of paper.
619
620
621
622
623Create a horizontal plot in Frame 1
624
625
626
627
628
629DCM in frame 2, LCL on the plot in frame 1, to create a horizontal
630zoom in frame 2.
631
632DCM in frame 3, LCM on the plot in frame 1, to create a vertical cut
633in frame 3.
634
635DCM in frame 4, LCR on the plot in frame 1, to create a hovmoeller in frame 4.
636
637
638   
639      Frame with four plot
640     
641 
642    [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_0901.png)]]
643 
644     
645   
646
647
648
649
650
651To redo the hovmoeller with the keyword {{{/nocontour}}}
652
653
654
655DCL in frame 4 which now becomes the reference and target frame.
656
657
658
659
660Add the keyword
661{{{/nocontour}}}
662
663
664   
665      Command text area
666     
667 
668    [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_0902a.png)]]
669 
670     
671   
672
673
674
675
676click OK, and the plot is redone.
677
678
679   
680      The fourth plot with the keyword "nocontour"
681     
682 
683    [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_0902.png)]]
684 
685     
686   
687
688
689
690
691
692in frame 5, let's create the same plot as in frame 2 except we use pltv instead of plt
693
694
695
696DCL on frame 2
697
698
699
700
701DCM on frame 5
702
703
704
705
706change plt for pltv
707
708
709
710
711Click on OK
712
713
714   
715      Frame with five plot
716     
717 
718    [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_0903.png)]]
719 
720     
721   
722
723
724
725
726
727== What should I do when it breakdown ==
728
729
730
731
732
733In the IDL window type (as many time you click on a button since a problem occurs in xxx !!!),
734  {{{
735#!html
736<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">
737<code class="prompt">idl&gt;</code> <strong class="userinput"><code>retall</code></strong>
738</pre>
739}}}
740
741
742
743in the IDL window, type
744  {{{
745#!html
746<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">
747<code class="prompt">idl&gt;</code> <strong class="userinput"><code>domdef</code></strong>
748</pre>
749}}}
750
751
752DCR to erase the problem frame.
753
754
755change the orientation of the plot by pressing Flag options -&gt; Portrait/Landscape. Cf [#Launching XXX]
756
757quit XXX cleanly using quit from the File menu. Cf [#Launching XXX]
758
759
760
761
762
763Always avoid if at all possible closing and killing the XXX
764window, but rather select quit from the File menu.
765XXX uses a large number of pointers, and want only killing the window will
766leave a large number of unused variables in memory, which could in the end
767overflow.
768To clean up this memory:
769  {{{
770#!html
771<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">
772<code class="prompt">idl&gt;</code> <strong class="userinput"><code>ptr_free, ptr_valid()</code></strong>
773</pre>
774}}}
775
776
777
778
Note: See TracBrowser for help on using the repository browser.