1 | <html><head> |
---|
2 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
---|
3 | <title> |
---|
4 | Get SAXO |
---|
5 | </title><link rel="stylesheet" href="saxo.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.69.1"><meta name="keywords" content="idl, SAXO"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="article" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="d0e1"></a> |
---|
6 | Get <span class="application">SAXO</span> |
---|
7 | </h2></div><div><div class="authorgroup"><div class="author"><h3 class="author"><span class="firstname">Sébastien</span> <span class="surname">Masson</span></h3><code class="email"><<a href="mailto:smasson_at_lodyc.jussieu.fr">smasson_at_lodyc.jussieu.fr</a>></code></div><div class="author"><h3 class="author"><span class="firstname">Françoise</span> <span class="surname">Pinsard</span></h3><code class="email"><<a href="mailto:fplod_at_lodyc.jussieu.fr">fplod_at_lodyc.jussieu.fr</a>></code></div></div></div><div><div class="revhistory"><table border="1" width="100%" summary="Revision history"><tr><th align="left" valign="top" colspan="2"><b>Revision History</b></th></tr><tr><td align="left">Revision 0.0</td><td align="left">May 2006</td></tr><tr><td align="left" colspan="2">First draft</td></tr></table></div></div></div><hr></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="#create_saxo_env">1. |
---|
8 | Create <span class="application">SAXO</span> environment |
---|
9 | </a></span></dt><dt><span class="sect1"><a href="#get_saxo_files">2. |
---|
10 | Get <span class="application">SAXO</span> files |
---|
11 | </a></span></dt><dd><dl><dt><span class="sect2"><a href="#saxo_local">2.1. |
---|
12 | If you work at IDRIS, IPSL or LOCEAN |
---|
13 | </a></span></dt><dt><span class="sect2"><a href="#saxo_svn">2.2. |
---|
14 | If <span class="application"> Subversion (svn)</span> is installed on your machine |
---|
15 | </a></span></dt><dt><span class="sect2"><a href="#saxo_tar">2.3. |
---|
16 | Get <span class="application">SAXO</span> from a tar file |
---|
17 | </a></span></dt></dl></dd><dt><span class="sect1"><a href="#generate_init">3. |
---|
18 | Generate your init.pro file |
---|
19 | </a></span></dt></dl></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="create_saxo_env"></a>1. |
---|
20 | Create <span class="application">SAXO</span> environment |
---|
21 | </h2></div></div></div><p> |
---|
22 | To simplify the explanation, we suppose that we install <span class="application">SAXO</span> in your <code class="filename"><code class="envar">${HOME}</code></code>. |
---|
23 | We need to create 2 directories: |
---|
24 | </p><div class="itemizedlist"><ul type="disc"><li><code class="filename"><code class="envar">${HOME}</code>/SAXO_DIR</code> that will contain the source files of <span class="application">SAXO</span>. It should not be modified by the user to simplify later updates</li><li><code class="filename"><code class="envar">${HOME}</code>/My_IDL</code> that will contain user personal files (including modified <span class="application">SAXO</span> files, if needed).</li></ul></div><p> |
---|
25 | </p><p> |
---|
26 | </p><pre class="screen"> |
---|
27 | <code class="prompt">$</code> <strong class="userinput"><code><span><strong class="command">cd</strong></span> <em class="parameter"><code><code class="envar">${HOME}</code></code></em></code></strong> |
---|
28 | <code class="prompt">$</code> <strong class="userinput"><code><span><strong class="command">mkdir</strong></span> <em class="parameter"><code>My_IDL</code></em></code></strong> |
---|
29 | </pre><p> |
---|
30 | </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="get_saxo_files"></a>2. |
---|
31 | Get <span class="application">SAXO</span> files |
---|
32 | </h2></div></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="saxo_local"></a>2.1. |
---|
33 | If you work at IDRIS, IPSL or LOCEAN |
---|
34 | </h3></div></div></div><p> |
---|
35 | <span class="application">SAXO</span> is already installed at |
---|
36 | </p><div class="itemizedlist"><ul type="disc"><li>IDRIS, on rhodes: <code class="filename">/home/rech/eee/reee217/SAXO_DIR</code></li><li>IPSL: <code class="filename">/home/smlod/SAXO_DIR</code></li><li>LOCEAN: <code class="filename">/usr/home/smasson/SAXO_DIR</code></li></ul></div><p> |
---|
37 | If you can access one of theses directories, there is no need to re-install <span class="application">SAXO</span> again! In that case, you only have to link <code class="filename"><code class="envar">${HOME}</code>/SAXO_DIR</code> to the appropiate directory: |
---|
38 | </p><div class="variablelist"><dl><dt><span class="term"><span><strong class="command">IDRIS</strong></span></span></dt><dd><pre class="screen"> |
---|
39 | <code class="prompt">$</code> <strong class="userinput"><code><span><strong class="command">ln</strong></span> <code class="option">-s</code> <em class="parameter"><code>/home/rech/eee/reee217/SAXO_DIR</code></em> <em class="parameter"><code><code class="envar">${HOME}</code>/SAXO_DIR</code></em></code></strong> |
---|
40 | </pre></dd><dt><span class="term"><span><strong class="command">IPSL</strong></span></span></dt><dd><pre class="screen"> |
---|
41 | <code class="prompt">$</code> <strong class="userinput"><code><span><strong class="command">ln</strong></span> <code class="option">-s</code> <em class="parameter"><code>/home/smlod/SAXO_DIR</code></em> <em class="parameter"><code><code class="envar">${HOME}</code>/SAXO_DIR</code></em></code></strong> |
---|
42 | </pre></dd><dt><span class="term"><span><strong class="command">LOCEAN</strong></span></span></dt><dd><pre class="screen"> |
---|
43 | <code class="prompt">$</code> <strong class="userinput"><code><span><strong class="command">ln</strong></span> <code class="option">-s</code> <em class="parameter"><code>/usr/home/smasson/SAXO_DIR</code></em> <em class="parameter"><code><code class="envar">${HOME}</code>/SAXO_DIR</code></em></code></strong> |
---|
44 | </pre></dd></dl></div><p> |
---|
45 | </p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="saxo_svn"></a>2.2. |
---|
46 | If <a href="http://subversion.tigris.org/" target="_top"><span class="application"> Subversion (svn)</span></a> is installed on your machine |
---|
47 | </h3></div></div></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="saxo_svn_users"></a>2.2.1. |
---|
48 | Regular users |
---|
49 | </h4></div></div></div><p> |
---|
50 | The <span class="bold"><strong>complete</strong></span> latest revision (source + tests data files: 767 Mb) can be checked out with the following command executed in your <code class="envar">${HOME}</code>: |
---|
51 | </p><pre class="screen"> |
---|
52 | <code class="prompt">$</code> <strong class="userinput"><code><span><strong class="command">svn</strong></span> <code class="option">checkout</code> <em class="parameter"><code>http://forge.ipsl.jussieu.fr/saxo/svn/trunk/</code></em> <em class="parameter"><code>SAXO_DIR</code></em></code></strong> |
---|
53 | </pre><p> |
---|
54 | </p><p> |
---|
55 | The latest revision of the <span><strong class="command">source files</strong></span> (40 Mb) can be checked out with the following command: |
---|
56 | </p><pre class="screen"> |
---|
57 | <code class="prompt">$</code> <strong class="userinput"><code><span><strong class="command">svn</strong></span> <code class="option">checkout</code> <em class="parameter"><code>http://forge.ipsl.jussieu.fr/saxo/svn/trunk/SRC</code></em> <em class="parameter"><code>SAXO_DIR/SRC</code></em></code></strong> |
---|
58 | </pre><p> |
---|
59 | </p><p> |
---|
60 | The latest revision of the <span><strong class="command">NetCDF data files</strong></span> (727 Mb) used by the test programs can be checked out with the following command: |
---|
61 | </p><pre class="screen"> |
---|
62 | <code class="prompt">$</code> <strong class="userinput"><code><span><strong class="command">svn</strong></span> <code class="option">checkout</code> <em class="parameter"><code>http://forge.ipsl.jussieu.fr/saxo/svn/trunk/DATA</code></em> <em class="parameter"><code>SAXO_DIR/DATA</code></em></code></strong> |
---|
63 | </pre><p> |
---|
64 | </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="saxo_svn_contributors"></a>2.2.2. |
---|
65 | Contributors |
---|
66 | </h4></div></div></div><p> |
---|
67 | <span><strong class="command">Contributors</strong></span> should better use the following command (and replace login by your own login): |
---|
68 | </p><pre class="screen"> |
---|
69 | <code class="prompt">$</code> <strong class="userinput"><code><span><strong class="command">svn</strong></span> <code class="option">checkout</code> <em class="parameter"><code>svn+ssh://<em class="replaceable"><code>login</code></em>@forge.ipsl.jussieu.fr/ipsl/forge/projets/saxo/svn/trunk/</code></em> <em class="parameter"><code>SAXO_DIR</code></em></code></strong> |
---|
70 | </pre><p> |
---|
71 | </p></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="saxo_tar"></a>2.3. |
---|
72 | Get <span class="application">SAXO</span> from a tar file |
---|
73 | </h3></div></div></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="saxo_src_tar"></a>2.3.1. |
---|
74 | Get <span class="application">SAXO</span> source files (4.7M Mb) |
---|
75 | </h4></div></div></div><p> |
---|
76 | Create your <code class="filename"><code class="envar">${HOME}</code>/SAXO_DIR</code> directory... |
---|
77 | </p><pre class="screen"> |
---|
78 | <code class="prompt">$</code> <strong class="userinput"><code><span><strong class="command">cd</strong></span> <em class="parameter"><code><code class="envar">${HOME}</code></code></em></code></strong> |
---|
79 | <code class="prompt">$</code> <strong class="userinput"><code><span><strong class="command">mkdir</strong></span> <em class="parameter"><code>SAXO_DIR</code></em></code></strong> |
---|
80 | <code class="prompt">$</code> <strong class="userinput"><code><span><strong class="command">cd</strong></span> <em class="parameter"><code>SAXO_DIR</code></em></code></strong> |
---|
81 | </pre><p> |
---|
82 | ... and download it the latest version of the sources tar file: <a href="http://forge.ipsl.jussieu.fr/saxo/download/SAXO_SRC_20060612.tar.gz" target="_top">SAXO_SRC_20060612.tar.gz</a> (4.7M Mb). This tar.gz file could also be downloaded with |
---|
83 | </p><div class="variablelist"><dl><dt><span class="term"><span><strong class="command">wget</strong></span></span></dt><dd><pre class="screen"> |
---|
84 | <code class="prompt">$</code> <strong class="userinput"><code><span><strong class="command">wget</strong></span> <em class="parameter"><code>http://forge.ipsl.jussieu.fr/saxo/download/SAXO_SRC_20060612.tar.gz</code></em></code></strong> |
---|
85 | </pre></dd><dt><span class="term"><span><strong class="command">curl</strong></span></span></dt><dd><pre class="screen"> |
---|
86 | <code class="prompt">$</code> <strong class="userinput"><code><span><strong class="command">curl</strong></span> <code class="option">-O</code> <em class="parameter"><code>http://forge.ipsl.jussieu.fr/saxo/download/SAXO_SRC_20060612.tar.gz</code></em></code></strong> |
---|
87 | </pre></dd></dl></div><p> |
---|
88 | Untar the file |
---|
89 | </p><pre class="screen"> |
---|
90 | <code class="prompt">$</code> <strong class="userinput"><code><span><strong class="command">cd</strong></span> <em class="parameter"><code><code class="envar">${HOME}</code>/SAXO_DIR</code></em></code></strong> |
---|
91 | <code class="prompt">$</code> <strong class="userinput"><code><span><strong class="command">tar</strong></span> <code class="option">xvfz</code> <em class="parameter"><code>SAXO_SRC_20060612.tar.gz</code></em></code></strong> |
---|
92 | <code class="prompt">$</code> <strong class="userinput"><code><span><strong class="command">rm</strong></span> <em class="parameter"><code>SAXO_SRC_20060612.tar.gz</code></em></code></strong> |
---|
93 | </pre><p> |
---|
94 | </p></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="saxo_data_tar"></a>2.3.2. |
---|
95 | Get <span class="application">SAXO</span> tests data files (238M Mb) |
---|
96 | </h4></div></div></div><p> |
---|
97 | If you want to use the tests programs, you need to download the data tests files (<code class="filename">SAXO_DATA_20060602.tar.gz</code>), You may download theses files in |
---|
98 | </p><div class="itemizedlist"><ul type="disc"><li><code class="filename"><code class="envar">${HOME}</code>/My_IDL</code>. This is the easiest solution but it could be unconvenient if your <code class="envar">${HOME}</code> disk space is limited.</li><li>any other Directory of your choice. In that case, when using IDL, you will need to define the variable <code class="varname">iodir</code> to the Directory you choose in order to let IDL find the data tests files. This can be done either through the init.pro file (see <a href="#generate_init" title="3. 
Generate your init.pro file
 "><a href="#generate_init" title="3. 
Generate your init.pro file
 ">Section 3, “ |
---|
99 | Generate your init.pro file |
---|
100 | ”</a></a>) or directly within IDL with the following commad: <code class="prompt">idl></code> <strong class="userinput"><code><span><strong class="command">iodir = <em class="replaceable"><code>the chosen directory</code></em></strong></span></code></strong></li></ul></div><p> |
---|
101 | </p><pre class="screen"> |
---|
102 | <code class="prompt">$</code> <strong class="userinput"><code><span><strong class="command">cd</strong></span> <em class="parameter"><code><code class="envar">${HOME}</code></code></em></code></strong> |
---|
103 | <code class="prompt">$</code> <strong class="userinput"><code><span><strong class="command">mkdir</strong></span> <em class="parameter"><code><em class="replaceable"><code>CHOSEN_DIR</code></em></code></em></code></strong> |
---|
104 | <code class="prompt">$</code> <strong class="userinput"><code><span><strong class="command">cd</strong></span> <em class="parameter"><code><em class="replaceable"><code>CHOSEN_DIR</code></em></code></em></code></strong> |
---|
105 | </pre><p> |
---|
106 | Download <a href="http://forge.ipsl.jussieu.fr/saxo/download/SAXO_DATA_20060602.tar.gz" target="_top">SAXO_DATA_20060602.tar.gz</a> (238M Mb) |
---|
107 | ... or with |
---|
108 | </p><div class="variablelist"><dl><dt><span class="term"><span><strong class="command">wget</strong></span></span></dt><dd><pre class="screen"> |
---|
109 | <code class="prompt">$</code> <strong class="userinput"><code><span><strong class="command">wget</strong></span> <em class="parameter"><code>http://forge.ipsl.jussieu.fr/saxo/download/SAXO_DATA_20060602.tar.gz</code></em></code></strong> |
---|
110 | </pre></dd><dt><span class="term"><span><strong class="command">curl</strong></span></span></dt><dd><pre class="screen"> |
---|
111 | <code class="prompt">$</code> <strong class="userinput"><code><span><strong class="command">curl</strong></span> <code class="option">-O</code> <em class="parameter"><code>http://forge.ipsl.jussieu.fr/saxo/download/SAXO_DATA_20060602.tar.gz</code></em></code></strong> |
---|
112 | </pre></dd></dl></div><p> |
---|
113 | </p></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="generate_init"></a>3. |
---|
114 | Generate your init.pro file |
---|
115 | </h2></div></div></div><p> |
---|
116 | To use <span class="application">SAXO</span>, we need to build an idl script that we usually call "<code class="filename">init.pro</code>". This file contains a set of IDL commands and default definitions (paths and variables of the common files) that are necessary to <span class="application">SAXO</span>. Once it has ben created, <code class="filename">init.pro</code> should the first executed command when starting IDL session. |
---|
117 | </p><p> |
---|
118 | </p><pre class="screen"> |
---|
119 | <code class="prompt">$</code> <strong class="userinput"><code><span><strong class="command">cd <code class="envar">${HOME}</code>/SAXO_DIR</strong></span></code></strong> |
---|
120 | <code class="prompt">$</code> <strong class="userinput"><code><span><strong class="command">idl</strong></span></code></strong> |
---|
121 | <code class="computeroutput">IDL Version 6.0, Mac OS X (darwin ppc m32). (c) 2003, Research Systems, Inc.</code> |
---|
122 | |
---|
123 | <code class="prompt">idl></code> <strong class="userinput"><code><span><strong class="command">buildinit</strong></span></code></strong> |
---|
124 | <code class="computeroutput">% Compiled module: BUILDINIT.</code> |
---|
125 | </pre><p> |
---|
126 | You must then answer several questions: |
---|
127 | |
---|
128 | </p><div class="itemizedlist"><ul type="disc"><li>give the path of <code class="filename"><code class="envar">${HOME}</code>/My_IDL</code></li><li>give the path of <code class="filename"><code class="envar">${HOME}</code>/SAXO_DIR</code></li><li>compatibility with the old version: No (except if you want to use old programs)</li><li>give a default path for the data directory</li><li>give a default path for the postscript directory</li><li>give a default path for the images directory</li><li>give a default path for the animation directory</li><li>number of accessible printer and their configuration</li><li>default color table</li><li>default page orientation (portrait/landscape)</li><li>default page size</li><li>default window size</li><li>postscript archiving options</li><li>name of the init file (<code class="filename">init.pro</code>)</li></ul></div><p> |
---|
129 | </p><pre class="screen"> |
---|
130 | <code class="computeroutput">% Compiled module: CW_FIELD.</code> |
---|
131 | <code class="computeroutput">% Compiled module: XMANAGER.</code> |
---|
132 | <code class="computeroutput">% Compiled module: LOADCT.</code> |
---|
133 | <code class="computeroutput">% Compiled module: FILEPATH.</code> |
---|
134 | <code class="computeroutput">% Compiled module: PATH_SEP.</code> |
---|
135 | <code class="computeroutput">% Compiled module: CW_FIELD.</code> |
---|
136 | <code class="computeroutput">% Compiled module: STRSPLIT.</code> |
---|
137 | <code class="computeroutput">% Compiled module: CW_FIELD.</code> |
---|
138 | <code class="computeroutput">% Compiled module: CW_FIELD.</code> |
---|
139 | <code class="computeroutput">% Compiled module: CW_FIELD.</code> |
---|
140 | <code class="prompt">idl></code> <strong class="userinput"><code><span><strong class="command">exit</strong></span></code></strong> |
---|
141 | </pre><p> |
---|
142 | There is an example of the kind of <a href="idlfiles/init_example.pro?format=raw" target="_top"> <code class="filename">init.pro</code></a> you should get. |
---|
143 | </p></div></div></body></html> |
---|