Changeset 255 for trunk/SRC/Documentation/xmldoc/firststeps.html
- Timestamp:
- 06/27/07 14:32:59 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Documentation/xmldoc/firststeps.html
r194 r255 3 3 <head> 4 4 <meta name="generator" content= 5 "HTML Tidy for Mac OS X (vers 1 September 2005), see www.w3.org">5 "HTML Tidy for Mac OS X (vers 1st December 2004), see www.w3.org"> 6 6 <meta http-equiv="Content-Type" content= 7 7 "text/html; charset=us-ascii"> 8 8 <title>First steps with SAXO</title> 9 <link rel="stylesheet" href="style.css" type="text/css">10 <link rel="stylesheet" href="saxo.css" type="text/css">11 <meta name="generator" content="DocBook XSL Stylesheets V1.70.1">9 <link href="style.css" rel="stylesheet" type="text/css"> 10 <link href="saxo.css" rel="stylesheet" type="text/css"> 11 <meta content="DocBook XSL Stylesheets V1.71.1" name="generator"> 12 12 <meta name="keywords" content="IDL, SAXO"> 13 13 </head> … … 18 18 <div> 19 19 <div> 20 <h2 class="title"><a name=" d0e3" id="d0e3"></a> First steps with21 <span class="application">SAXO</span></h2>20 <h2 class="title"><a name="N10003" id="N10003"></a> First steps 21 with <span class="application">SAXO</span></h2> 22 22 </div> 23 23 <div> … … 26 26 <h3 class="author"><span class="firstname">Sébastien</span> 27 27 <span class="surname">Masson</span> <code class= 28 "email"><<a href="mailto:Sebastien.Masson_at_locean-ipsl.upmc.fr">Sebastien.Masson_at_locean-ipsl.upmc.fr</a>></code></h3> 28 "email"><<a href="mailto:Sebastien.Masson_at_locean-ipsl.upmc.fr"> 29 Sebastien.Masson_at_locean-ipsl.upmc.fr</a>></code></h3> 29 30 </div> 30 31 <div class="author"> … … 41 42 <div> 42 43 <div class="revhistory"> 43 <table border="1" width="100%" summary="Revision history">44 <table summary="Revision history" width="100%" border="1"> 44 45 <tr> 45 <th align="left" valign="top" colspan="2"><b>Revision46 <th colspan="2" valign="top" align="left"><b>Revision 46 47 History</b></th> 47 48 </tr> … … 51 52 </tr> 52 53 <tr> 53 <td align="left" colspan="2">First draft</td>54 <td colspan="2" align="left">First draft</td> 54 55 </tr> 55 56 <tr> … … 58 59 </tr> 59 60 <tr> 60 <td align="left" colspan="2">last Japanese version!</td>61 <td colspan="2" align="left">last Japanese version!</td> 61 62 </tr> 62 63 <tr> … … 65 66 </tr> 66 67 <tr> 67 <td align="left" colspan="2">split with getsaxo</td>68 <td colspan="2" align="left">split with getsaxo</td> 68 69 </tr> 69 70 </table> … … 188 189 189 190 </pre> 190 <p>As an IDL session using <span class="application">SAXO</span> 191 mustalways start with <code class="prompt">idl></code>191 As an IDL session using <span class="application">SAXO</span> must 192 always start with <code class="prompt">idl></code> 192 193 <strong class="userinput"><code><span><strong class= 193 194 "command">@init</strong></span></code></strong>, it could be … … 197 198 <code class="filename">init.pro</code> will automatically been 198 199 executed when starting IDL. This can be done with the following 199 command: </p>200 command: 200 201 <div class="variablelist"> 201 202 <dl> … … 245 246 <code class="prompt">idl></code> <strong class= 246 247 "userinput"><code><span><strong class= 247 "command">n = 10</strong></span></code></strong> <span class="co"><img src="images/callouts/1.png" 248 alt="(1)"></span> 248 "command">n = 10</strong></span></code></strong> 249 249 <code class="prompt">idl></code> <strong class= 250 250 "userinput"><code><span><strong class= … … 260 260 </pre> 261 261 <div class="calloutlist"> 262 <table border="0" summary="Callout list">262 <table summary="Callout list" border="0"> 263 263 <tr> 264 <td width="5%" valign="top" align="left"><img src=265 "images/callouts/1.png" alt="1" border="0"></td>266 <td valign="top" align="left">264 <td align="left" valign="top" width="5%"><img border="0" alt="1" 265 src="images/callouts/1.png"></td> 266 <td align="left" valign="top"> 267 267 <p><span><strong class="command">findgen</strong></span> stands for 268 268 <span class="bold"><strong>f</strong></span>loat <span class= … … 310 310 311 311 </pre> 312 <p>Save the figure seen on the screen as a (real, not a screen313 capture) postscript in only one command. </p>312 Save the figure seen on the screen as a (real, not a screen 313 capture) postscript in only one command. 314 314 <div class="screenco"> 315 315 <pre class="screen"> … … 320 320 <code class="computeroutput">% Compiled module: PUTFILE.</code> 321 321 <code class="computeroutput">% Compiled module: OPENPS.</code> 322 <code class= 323 "computeroutput">% Compiled module: XQUESTION.</code> <span class="co"><img src="images/callouts/1.png" 324 alt="(1)"></span> 322 <code class="computeroutput">% Compiled module: XQUESTION.</code> 325 323 <code class= 326 324 "computeroutput">Name of the postscript file? (default answer is idl.ps)</code><strong class="userinput"><code>first_ps</code></strong> <img src="images/callouts/1.png" … … 337 335 </pre> 338 336 <div class="calloutlist"> 339 <table border="0" summary="Callout list">337 <table summary="Callout list" border="0"> 340 338 <tr> 341 <td width="5%" valign="top" align="left"><img src=342 "images/callouts/1.png" alt="1" border="0"></td>343 <td valign="top" align="left">339 <td align="left" valign="top" width="5%"><img border="0" alt="1" 340 src="images/callouts/1.png"></td> 341 <td align="left" valign="top"> 344 342 <p><em><span class="remark">If needed, the name of the postscript 345 343 will automatically be completed with .ps. Just hit return, if you … … 351 349 </div> 352 350 </div> 353 <p>Check that the “<span class="quote"><code class=351 Check that the “<span class="quote"><code class= 354 352 "filename">first_ps.ps</code></span>” file is now existing 355 … </p>353 … 356 354 <pre class="screen"> 357 355 <code class="prompt">idl></code> <strong class= … … 435 433 436 434 </pre> 437 < p><span><strong class="command">splot</strong></span> can be used438 tosetup the graphic environment (<code class="varname">!p</code>,435 <span><strong class="command">splot</strong></span> can be used to 436 setup the graphic environment (<code class="varname">!p</code>, 439 437 <code class="varname">!x</code>, <code class="varname">!y</code>, 440 438 <code class="varname">!z</code> variables) needed by procedures 441 like <span><strong class="command">oplot</strong></span> </p>439 like <span><strong class="command">oplot</strong></span> 442 440 <pre class="screen"> 443 441 <code class="prompt">idl></code> <strong class= … … 451 449 452 450 </pre> 453 <p>Use the keyword small to produce multi plots figures.</p> 451 Use the keyword small to produce multi plots figures. 454 452 <div class="screenco"> 455 453 <pre class="screen"> 456 <span class="co"><img src="images/callouts/1.png"457 alt="(1)"></span>458 454 <code class="prompt">idl></code> <strong class= 459 455 "userinput"><code><span><strong class= 460 456 "command">splot, y, y^2, title = 'y = x^2', psym = 2, small <span class="inlinemediaobject"><img src="images/callouts/1.png" 461 alt="1"></span> =</strong></span></code></strong><span class= 462 "co"><img src="images/callouts/1.png" alt="(1)"></span><span class= 463 "co"><img src="images/callouts/2.png" alt= 464 "(2)"></span><strong class="userinput"><code><span><strong class= 465 "command"> [1, 2, 1]</strong></span></code></strong> 457 alt="1"></span> = [1, 2, 1]</strong></span></code></strong> 466 458 <code class="prompt">idl></code> <strong class= 467 459 "userinput"><code><span><strong class= … … 480 472 </pre> 481 473 <div class="calloutlist"> 482 <table border="0" summary="Callout list">474 <table summary="Callout list" border="0"> 483 475 <tr> 484 <td width="5%" valign="top" align="left"><img src=485 "images/callouts/1.png" alt="1" border="0"></td>486 <td valign="top" align="left">476 <td align="left" valign="top" width="5%"><img border="0" alt="1" 477 src="images/callouts/1.png"></td> 478 <td align="left" valign="top"> 487 479 <p>the <code class="computeroutput">small</code> keyword is a 3 488 480 elements vector which defines how we divide the page and in which … … 493 485 </tr> 494 486 <tr> 495 <td width="5%" valign="top" align="left"><img src=496 "images/callouts/2.png" alt="2" border="0"></td>497 <td valign="top" align="left">you must put <code class=487 <td align="left" valign="top" width="5%"><img border="0" alt="2" 488 src="images/callouts/2.png"></td> 489 <td align="left" valign="top">you must put <code class= 498 490 "computeroutput">/noerase</code> otherwise the second plot will be 499 491 done in a new window.</td> … … 513 505 </div> 514 506 <p>Following <span><strong class="command"><a href="#basic_splot" 515 title="2.2.1. splot 507 title="2.2.1. splot">splot</a></strong></span> example, we 516 508 provide <span><strong class="command">scontour</strong></span> as a 517 509 "super <span><strong class="command">contour</strong></span>".</p> … … 531 523 532 524 </pre> 533 < p><span><strong class="command">scontour</strong></span> accepts534 thesame keywords as <span><strong class=525 <span><strong class="command">scontour</strong></span> accepts the 526 same keywords as <span><strong class= 535 527 "command">contour</strong></span> (<code class= 536 528 "computeroutput">C_ANNOTATION=vector_of_strings, C_CHARSIZE=value, … … 544 536 /PATH_DOUBLE, /XLOG, /YLOG, ZAXIS={0 | 1 | 2 | 3 | 4}</code>), 545 537 including the <a href="#gr_kwd">graphics keywords</a> (except 546 <code class="computeroutput">LINESTYLE, PSYM, SYMSIZE</code>). </p>538 <code class="computeroutput">LINESTYLE, PSYM, SYMSIZE</code>). 547 539 <p>It can therefore be customized <span class="emphasis"><em>as 548 540 much as you want</em></span>. See these short examples:</p> … … 558 550 559 551 </pre> 560 <p>It can be used in combination with contour to make more complex561 plots: </p>552 It can be used in combination with contour to make more complex 553 plots: 562 554 <div class="screenco"> 563 555 <pre class="screen"> 564 <span class="co"><img src="images/callouts/1.png"565 alt="(1)"></span>566 556 <code class="prompt">idl></code> <strong class= 567 557 "userinput"><code><span><strong class= … … 582 572 </pre> 583 573 <div class="calloutlist"> 584 <table border="0" summary="Callout list">574 <table summary="Callout list" border="0"> 585 575 <tr> 586 <td width="5%" valign="top" align="left"><img src=587 "images/callouts/1.png" alt="1" border="0"></td>588 <td valign="top" align="left">576 <td align="left" valign="top" width="5%"><img border="0" alt="1" 577 src="images/callouts/1.png"></td> 578 <td align="left" valign="top"> 589 579 <p><span><strong class="command">rebin</strong></span> is used to 590 580 build an array containing an alternation of 1 and 0 in order to … … 603 593 </div> 604 594 </div> 605 < p><span><strong class="command">scontour</strong></span> is595 <span><strong class="command">scontour</strong></span> is 606 596 compatible with the positioning method associated with the 607 597 <code class="computeroutput">small</code> keyword. See for example 608 598 the test file <a href="../../Tests/tst_basic.pro" target= 609 "_top"><code class="filename">tst_basic.pro</code></a>: </p>599 "_top"><code class="filename">tst_basic.pro</code></a>: 610 600 <pre class="screen"> 611 601 <code class="prompt">idl></code> <strong class= … … 647 637 648 638 </pre> 649 <p>For more informations on <span><strong class=650 "command">tvplus</strong></span>, try: </p>639 For more informations on <span><strong class= 640 "command">tvplus</strong></span>, try: 651 641 <pre class="screen"> 652 642 <code class="prompt">idl></code> <strong class= … … 655 645 656 646 </pre> 657 <p>To see the source code of <span><strong class=658 "command">tvplus</strong></span>, try: </p>647 To see the source code of <span><strong class= 648 "command">tvplus</strong></span>, try: 659 649 <pre class="screen"> 660 650 <code class="prompt">idl></code> <strong class= … … 686 676 <p><span><strong class="command">pltv</strong></span> is a mix 687 677 between <a href="#tvplus" title= 688 "2.2.3. Quick look and explore 2D arrays: tvplus">tvplus</a>678 "2.2.3. Quick look and explore 2D arrays: tvplus">tvplus</a> 689 679 and <a href="#plt" title= 690 "3.2. horizontal plots and maps 680 "3.2. horizontal plots and maps">plt</a> and allow you to 691 681 have formal quick look of 2D arrays.</p> 692 682 <pre class="screen"> … … 761 751 762 752 </pre> 763 <p>This <a href="../../Tests/tst_initlev.pro" target=753 This <a href="../../Tests/tst_initlev.pro" target= 764 754 "_top"><span><strong class= 765 755 "command">@tst_initlev</strong></span></a> command allows us to 766 define: </p>756 define: 767 757 <div class="itemizedlist"> 768 758 <ul type="disc"> … … 842 832 843 833 </pre> 844 <p>We provide other initialization methods/examples</p> 834 We provide other initialization methods/examples 845 835 <div class="itemizedlist"> 846 836 <ul type="disc"> … … 897 887 grids (glam[uv],gphi[uv], e[12][uvf]). Note that, when using a 898 888 simple <a href="#load_fromdata" title= 899 "3.1.1. Easiest solution: load data grid (regular or not) directly from the data file.">889 "3.1.1. Easiest solution: load data grid (regular or not) directly from the data file."> 900 890 grid definition from the data itself</a> (with <code class= 901 891 "filename">initncdf</code> or <code class= … … 941 931 <a href="../../Tests/tst_plt.pro" target="_top">tst_plt</a>. After 942 932 loading any of the grid (for example with one of the <a href= 943 "#load_grid" title="3.1. Load the data grid 933 "#load_grid" title="3.1. Load the data grid">above 944 934 examples</a>). Just try:</p> 945 935 <pre class="screen"> … … 1146 1136 "../../Tests/tst_pltz.pro" target="_top">tst_pltz</a>. After 1147 1137 loading any of the grid (for example with one of the <a href= 1148 "#load_grid" title="3.1. Load the data grid 1138 "#load_grid" title="3.1. Load the data grid">above 1149 1139 examples</a>). Just try:</p> 1150 1140 <pre class="screen"> … … 1373 1363 <a href="../../Tests/tst_pltt.pro" target="_top">tst_pltt</a>. 1374 1364 After loading any of the grid (for example with one of the <a href= 1375 "#load_grid" title="3.1. Load the data grid 1365 "#load_grid" title="3.1. Load the data grid">above 1376 1366 examples</a>). Just try:</p> 1377 1367 <pre class="screen">
Note: See TracChangeset
for help on using the changeset viewer.