Ignore:
Timestamp:
04/21/08 17:15:35 (16 years ago)
Author:
pinsard
Message:

some improvements in wiki production

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Documentation/xmldoc/wiki/MiniNotice

    r351 r352  
    1  
    2  
    31= Mini Guide for Basic Commands in the XXX Program = 
    42[[PageOutline]] 
    5    
     3 
    64     
    75     
     
    97      
    108   
    11  
    12  
    139== Launching XXX == 
    14  
    1510 
    1611There is several ways to launch XXX which we will detail in the next sections: 
     
    2924}}} 
    3025 
    31  
    3226=== idl> xxx === 
    33    
     27 
    3428    A window will open with 3 parts to consider. 
    3529 
     
    6054 
    6155 
    62    
    63  
    6456==== Data file name ==== 
    65    
     57 
    6658    The name of the data file. It can be typed directly in the window provided, or selected with the help of the browse button. 
    6759   
    68  
    6960==== Grid initialization method ==== 
    70    
     61 
    7162    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). 
    7263   
    73  
    7464==== Grid initialization parameters ==== 
    75    
     65 
    7666    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. 
    7767By 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. 
     
    8474       
    8575     
    86    
    87    
    8876    Once these two lines have been completed, click on let's go. 
    89    
    9077  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    
    9478      Oceania at 125 meters of depth with proper grid initialization 
    9579 
     
    9983       
    10084   
    101  
    102  
    103  
    104  
    10585=== idl> xxx, /separate === 
    10686 
    10787This is the same as the simple idl> xxx except that once the xxx window open, you will have 2 separate windows (command and plotting window) instead of one. 
    10888 
    109  
    110  
    11189=== idl> xxx, restore = 'file.dat' === 
    11290 
    11391In 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  
    11792=== idl> xxx, 'file.nc' === 
    11893 
     
    125100}}} 
    126101 
    127  
    128  
    129102=== idl> xxx, 'file.nc', keywd1 = 
, keywd2 = 
 === 
    130103 
     
    137110}}} 
    138111 
    139  
    140  
    141112=== idl> xxx, 'file.nc', 'initgrid' === 
    142113 
    143 In 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   {{{ 
     114In 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}}}{{{ 
    145115#!html 
    146116<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen"> 
     
    149119}}} 
    150120 
    151  
    152  
    153121=== idl&gt; xxx, 'file.nc', 'initgrid', keywd1 = 
, keywd2 = 
 === 
    154122 
    155123In 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}}}. 
    156124 
    157  
    158  
    159125=== idl&gt; xxx, 'file.nc', 'initgrid', 'arg1, arg2, 
' === 
    160126 
    161127In 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}}}. 
    162128 
    163  
    164  
    165  
    166  
    167129== Description of XXX window == 
    168130 
    169  
    170  
    171  
    172131Window xxx 2 
    173132 
     
    218177 
    219178Spefications 
    220  
    221  
    222179 
    223180 
     
    228185=== Plot type list === 
    229186Allows specification of the type of plot desired. 
    230  
    231      
    232187      Different plot types available 
    233188 
     
    237192       
    238193     
    239  
    240  
    241194 
    242195If the type plt is selected, the selection of plot type 
    243196is made by mouse. Cf [#Launching XXX] 
    244197 
    245  
    246  
    247198=== The menu bar made up of 3 sub-menus === 
     199 
    248200==== File sub-menu ==== 
    249201 
    250      
    251202      The File menu 
    252203 
     
    255206   
    256207       
    257      
    258  
    259  
    260  
    261 * #xA;* #xA;* #xA; 
    262  
    263  
     208     * Open: to open a new file. Same procedure as during the launch of XXX. 
     209The new file can be on a different grid, with different variables, with a different time base 
 
     210 * New XXX: to open a second XXX window identical to the first one. @star@ Quit: to close the XXX window. 
    264211==== Save As sub-menu ==== 
    265212 
    266      
    267213      The Save As menu 
    268214 
     
    271217   
    272218       
    273      
    274  
    275  
    276  
    277 * #xA;* #xA;* #xA;* #xA;* #xA;* #xA; 
    278  
    279  
     219     * Postscript: to save the plotting window in Postscript format @star@ Animated gif: to create an animation of the plotting window. 
     220The creation of an animation is only possible if none of the plots have a time axis, and if the plots are all on the same time base (calendar). On the other hand, animations of horizontal and vertical plots, with different color palettes (for those not on an X-terminal), are possible.The creation of animations has a tendency to saturate the video memory of X-terminals, crashing the entire program 
 * Gif: to save a gif of the plotting window. @star@ IDL procedure: to save the command history that has created the plot in an IDL procedure that can be re-executed later. For example if I save the commands in {{{xxx_figure.pro}}} file, when ever I want, I can then launch a new IDL session and type: 
     221  {{{ 
     222#!html 
     223<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen"> 
     224<code class="prompt">idl&gt;</code> <strong class="userinput"><code>@init</code></strong> 
     225<code class="prompt">idl&gt;</code> <strong class="userinput"><code>xxx_figure</code></strong> 
     226</pre> 
     227}}} 
     228 
     229and I'll obtain the saved figure. 
     230  {{{ 
     231#!html 
     232<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen"> 
     233<code class="prompt">idl&gt;</code> <strong class="userinput"><code>xxx_figure,/post</code></strong> 
     234</pre> 
     235}}} 
     236 
     237or 
     238  {{{ 
     239#!html 
     240<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen"> 
     241<code class="prompt">idl&gt;</code> <strong class="userinput"><code>@ps</code></strong> 
     242</pre> 
     243}}} 
     244 
     245will then create a Postscript file of the figure. 
     246 * RESTORE kwd of xxx: to save the xxx widget (all buttons and parameters stored in memory 
) in a binary file in order to quit xxx and relaunch it later with idl&gt; xxx, restore = 'file.dat' and get exactly the same configuration. @star@ Print to prompt: lists in the IDL window the command history that created the last plot. Useful primarily for debugging
 
    280247==== Flag options sub-menu ==== 
    281248 
    282      
    283249      The Flag Option menu 
    284250 
     
    287253   
    288254       
    289      
    290  
    291  
    292  
    293 * #xA;* #xA;* #xA;* #xA;* #xA; 
    294  
    295 Careful, a selected option remains selected until it is re-clicked. 
    296  
    297  
    298  
     255     * Portrait/Landscape: changes the configuration of the plot. @star@ Overlay: to plot contours of a different field on top the 
     256one represented as color-filled contours. It is necessary to relaunch the entire plot to make this work! * Vecteur: to plot a vector field on top of contours. Only 
     257works on horizontal plots ({{{plt.pro}}}). 
     258As for Overlay, a relaunch of the entire plot is necessary. * Longitude / x index: switches longitude labeling of the plot sub-domain from degrees to indexes following i. @star@ Latitude / y index: switches latitude labeling of the plot sub-domain from degrees to indexes following j.Careful, a selected option remains selected until it is re-clicked. 
    299259=== OK button === 
    300260Click on this OK button is required to make a new plot appear 
    301  
    302  
    303261=== Page Layout === 
    304262Specify the number of columns and rows for plots on the sheet of paper. 
    305  
    306      
    307263      Number of Column 
    308264 
     
    312268       
    313269     
    314  
    315  
    316      
    317270      Example: For 2 columns and 2 rows 
    318271 
     
    322275       
    323276     
    324  
    325  
    326  
    327277=== List of variables === 
    328278You can choose the variable to work on. 
    329  
    330      
    331279      Example of different Variables available 
    332280 
     
    336284       
    337285     
    338  
    339  
    340  
    341286=== List of open files === 
    342287You can choose the file to work on. 
    343  
    344      
    345288      Example of list of open files 
    346289 
     
    350293       
    351294     
    352  
    353  
    354  
    355295=== Command text === 
    356296 
    357297To specify in the widget part number 7 the computation you want to do on the data 
    358298In all cases bellow, the name given to a field (a, b, c, 
) is of no importance. 
    359  
    360299==== Linear calculation ==== 
    361300 
     
    363302#!html 
    364303<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">a - b</pre> 
    365 }}}{{{ 
     304}}} 
     305{{{ 
    366306#!html 
    367307<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">numb1*a</pre> 
    368 }}}{{{ 
     308}}} 
     309{{{ 
    369310#!html 
    370311<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">a + numb</pre> 
    371 }}} or any command with the following format {{{ 
     312}}} 
     313 or any command with the following format {{{ 
    372314#!html 
    373315<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  
     316}}} 
     317 where numb1, numb2, 
 correspond to numbers and a, b, c 
 will be the data to read. 
    376318 
    377319==== Any kind of computation ==== 
     
    380322#!html 
    381323<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">"a"^2</pre> 
    382 }}}{{{ 
     324}}} 
     325{{{ 
    383326#!html 
    384327<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">"a" - abs("b")</pre> 
    385 }}}{{{ 
     328}}} 
     329{{{ 
    386330#!html 
    387331<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">grad("a", 'x')</pre> 
    388 }}} 
 
    389  
    390  
    391  
     332}}} 
     333 â€Š 
    392334 
    393335=== Calendar === 
    394336 
    395337The 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      
    398338      Example: first plot in January, second plot is from January to December 
    399339 
     
    403343       
    404344     
    405  
    406  
    407  
    408345=== Define the domain === 
    409346 
     
    417354       
    418355   
    419    
    420356    Change Domain area: zoom on Oceania 
    421357 
     
    425361       
    426362   
    427    
    428363    This configuration give us: 
    429364 
     
    433368       
    434369   
    435    
    436370    Change depth area: between depth 125 and 126 
    437371 
     
    441375       
    442376   
    443    
    444377    temperature of the ocean at depth 125 meters without proper land/sea mask 
    445378 
     
    450383   
    451384  As you can see, at this depth, we better define a land/sea mask when loading the grid. Cf [#Launching XXX] 
    452  
    453  
    454  
    455385=== Specify your plot === 
    456386 
    457387==== Specify min, max and contour interval ==== 
    458388 
    459    
    460389    min, max, and contour interval specifications 
    461390 
     
    467396  You can restore configuration by default by pressing the Default button. 
    468397  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  
    472398==== Specify the palette to be used ==== 
    473399For the color palette, you can either specify the name or go search for one among the palettes available. 
    474  
    475      
    476400      The Color menu 
    477401 
     
    481405       
    482406     
    483  
    484  
    485  
    486407==== Add any keyword ==== 
    487408 
     
    495416       
    496417   
    497    
    498418    Add {{{/realcont}}} keyword 
    499419 
     
    503423       
    504424   
    505    
    506425    Graphic with {{{/realcont}}} keyword 
    507426 
     
    511430       
    512431   
    513    
    514432    Add /realcont, map=[90,0,0], /ortho, cell_fill=2 keywords 
    515433 
     
    519437       
    520438   
    521    
    522439    Graphic with /realcont, map=[90,0,0], /ortho, cell_fill=2 keywords 
    523440 
     
    527444       
    528445   
    529  
    530  
    531  
    532  
    533  
    534446== Mouse Actions == 
    535447 
     
    538450Select a domain and select the horizontal plot (plt), vertical plot 
    539451(pltz), or the hovmoeller plot (pltt): 
    540  
    541452The domain we'd like to select for the plot is determined by one of 
    542453its diagonals, defined therefore by two points. 
     
    548459To determine which type of plot should be made of selection, use: 
    549460 
    550  
    551 If the plot selector is on plt 
    552  
    553 * #xA;* #xA;* #xA; 
    554  
    555  
    556 In summary: 
    557  
    558  
    559  
    560 * #xA;* #xA; 
    561  
    562  
    563 * #xA;* #xA; 
    564  
    565  
    566 * #xA;* #xA; 
    567  
    568  
    569  
    570  
    571 If the plot selector is on something other than plt the indicated plot type is made. 
    572  
    573  
     461* If the plot selector is on plt * the left mouse button to create horizontal plots (plt) @star@ the middle mouse button to create vertical plots (pltz) @star@ the right mouse button to create common hovmoellers for xt and yt cuts (pltt)In summary:      LCL---&gt;plt 
     462       
     463   
     464    [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_mousell.png)]] 
     465   
     466       
     467     
     468      Horizontal Plot 
     469       
     470   
     471    [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_0701.png)]] 
     472   
     473       
     474*           LCM---&gt;pltz 
     475       
     476   
     477    [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_mouselm.png)]] 
     478   
     479       
     480     
     481      Vertical Plot 
     482       
     483   
     484    [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_0702.png)]] 
     485   
     486       
     487*           LCR---&gt;pltt 
     488       
     489   
     490    [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_mouselr.png)]] 
     491   
     492       
     493     
     494      Common hovmoeller for xt and yt cuts 
     495       
     496   
     497    [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_0703.png)]] 
     498   
     499       
     500    If the plot selector is on something other than plt the indicated plot type is made. 
    574501=== Create multiple plots on the same sheet and make them interact === 
    575502 
    576  
    577503Select the number of columns and rows for the page. 
    578  
    579504Create a first plot. 
    580505It will appear in the first frame. 
    581  
    582506To create a plot in another frame double-click in the frame with the 
    583507middle button (DCM). 
     
    590514frame, all the widgets change and refer again to the first plot. 
    591515A double-click with the right button in the second frame will erase the 
    592 plot. 
    593 In summary:  
    594  
    595  
    596 * #xA;* #xA; 
    597  
    598  
    599 * #xA;* #xA; 
    600  
    601 * #xA; 
    602  
    603 Here's a series of commands to show how this works. 
    604  
     516* plot.In summary:       DCL---&gt;"reference" frame 
     517       
     518   
     519    [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_mousedl.png)]] 
     520   
     521       
     522     
     523      The reference frame is selected 
     524       
     525   
     526    [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_0801.png)]] 
     527   
     528       
     529*           DCM---&gt;"target" frame 
     530       
     531   
     532    [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_mousedm.png)]] 
     533   
     534       
     535     
     536      The target frame is selected 
     537       
     538   
     539    [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_0802.png)]] 
     540   
     541       
     542*           DCR---&gt;erase the frame 
     543       
     544   
     545    [[Image(source:/trunk/SRC/Documentation/xmldoc/figpng/xxx_mousedr.png)]] 
     546   
     547       
     548    Here's a series of commands to show how this works. 
    605549 
    606550 
     
    626570 
    627571 
    628  
    629572DCM in frame 2, LCL on the plot in frame 1, to create a horizontal 
    630573zoom in frame 2. 
    631  
    632574DCM in frame 3, LCM on the plot in frame 1, to create a vertical cut 
    633575in frame 3. 
    634  
    635576DCM in frame 4, LCR on the plot in frame 1, to create a hovmoeller in frame 4. 
    636577 
    637578 
    638      
    639579      Frame with four plot 
    640580       
     
    647587 
    648588 
    649  
    650  
    651589To redo the hovmoeller with the keyword {{{/nocontour}}} 
    652  
    653  
    654590 
    655591DCL in frame 4 which now becomes the reference and target frame. 
     
    661597{{{/nocontour}}} 
    662598 
    663  
    664      
    665599      Command text area 
    666600       
     
    673607 
    674608 
    675  
    676609click OK, and the plot is redone. 
    677610 
    678611 
    679      
    680612      The fourth plot with the keyword "nocontour" 
    681613       
     
    688620 
    689621 
    690  
    691  
    692622in frame 5, let's create the same plot as in frame 2 except we use pltv instead of plt 
    693623 
    694624 
    695  
    696625DCL on frame 2 
    697626 
    698627 
    699628 
    700  
    701629DCM on frame 5 
    702630 
     
    711639Click on OK 
    712640 
    713  
    714      
    715641      Frame with five plot 
    716642       
     
    722648 
    723649 
    724  
    725  
    726  
    727650== What should I do when it breakdown == 
    728  
    729  
    730  
    731651 
    732652 
     
    740660 
    741661 
    742  
    743662in the IDL window, type 
    744663  {{{ 
     
    749668}}} 
    750669 
    751  
    752670DCR to erase the problem frame. 
    753671 
    754  
    755672change the orientation of the plot by pressing Flag options -&gt; Portrait/Landscape. Cf [#Launching XXX] 
    756  
    757673quit XXX cleanly using quit from the File menu. Cf [#Launching XXX] 
    758  
    759  
    760  
    761674 
    762675 
     
    775688 
    776689 
    777  
    778  
Note: See TracChangeset for help on using the changeset viewer.