source: trunk/SRC/Documentation/xmldoc/wiki/GetSaxo @ 355

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

some improvements in wiki production (hyperlinks)

File size: 12.2 KB
Line 
1= Get SAXO =
2[[PageOutline]]
3
4   
5   
6   
7   
8 
9== Create SAXO environment ==
10
11      To simplify the explanation, we suppose that we install SAXO in your {{{${HOME}}}}.
12      We need to create 2 directories:
13     
14 * {{{${HOME}/SAXO_DIR}}} that will contain the source files of SAXO. It should not be modified by the user to simplify later updates.
15         
16 * {{{${HOME}/My_IDL}}} that will contain user personal files (including modified SAXO files, if needed).
17         
18{{{
19#!html
20<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">
21  <code class="prompt">$</code> <strong class="userinput"><code><span><strong class="command">cd</strong></span> <em class="parameter"><code>${HOME}</code></em></code></strong>
22  <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>
23      </pre>
24}}}
25
26== Get SAXO files ==
27
28=== If you work at IDRIS, IPSL or LOCEAN ===
29SAXO is already installed at
30
31 * IDRIS, on {{{rhodes}}}: {{{/home/rech/eee/reee217/SAXO_DIR}}}
32 * IPSL: {{{/home/smlod/SAXO_DIR}}}
33 * LOCEAN: {{{/usr/home/smasson/SAXO_DIR}}}
34If you can access one of theses directories, there is no need to re-install SAXO again! In that case, you only have to link {{{${HOME}/SAXO_DIR}}} to the appropriate directory:
35
36
37'''IDRIS'''
38{{{
39#!html
40<pre xmlns:xl="http://www.w3.org/1999/xlink" 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/rech/eee/reee217/SAXO_DIR</code></em> <em class="parameter"><code>${HOME}/SAXO_DIR</code></em></code></strong>
42  </pre>
43}}}
44
45
46'''IPSL'''
47{{{
48#!html
49<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">
50  <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>${HOME}/SAXO_DIR</code></em></code></strong>
51  </pre>
52}}}
53
54
55'''LOCEAN'''
56{{{
57#!html
58<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">
59  <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>${HOME}/SAXO_DIR</code></em></code></strong>
60  </pre>
61}}}
62
63
64=== If Subversion (svn) is installed on your machine ===
65
66==== Regular users ====
67
68The '''complete''' latest revision (source + tests data files: 772 Mb) can be checked out with the following command executed in your ${HOME}:
69
70{{{
71#!html
72<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">
73  <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>
74</pre>
75}}}
76
77The latest revision of the '''source files''' (45 Mb) can be checked out with the following command:
78
79{{{
80#!html
81<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">
82  <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>
83</pre>
84}}}
85
86The latest revision of the '''NetCDF data files''' (728 Mb) used by the test programs can be checked out with the following command:
87
88{{{
89#!html
90<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">
91  <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>
92</pre>
93}}}
94
95==== Contributors ====
96'''Contributors''' should better use the following command (and replace login by their own login):
97
98{{{
99#!html
100<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">
101  <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://<code class="replaceable">login</code>@forge.ipsl.jussieu.fr/ipsl/forge/projets/saxo/svn/trunk/</code></em> <em class="parameter"><code>SAXO_DIR</code></em></code></strong>
102</pre>
103}}}
104
105=== Get SAXO from a tar file ===
106
107==== Get SAXO source files (5.8M Mb) ====
108
109  Create your {{{${HOME}/SAXO_DIR}}} directory 

110 
111{{{
112#!html
113<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">
114  <code class="prompt">$</code> <strong class="userinput"><code><span><strong class="command">cd</strong></span> <em class="parameter"><code>${HOME}</code></em></code></strong>
115  <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>
116  <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>
117  </pre>
118}}}
119
120  
 and download it the latest version of the sources tar file: [http://forge.ipsl.jussieu.fr/saxo/download/SAXO_SRC_20080321r339.tar.gz SAXO_SRC_20080321r339.tar.gz] (5.8M Mb).
121
122This tar.gz file could also be downloaded with {{{wget}}} or {{{curl}}}
123
124'''wget'''
125{{{
126#!html
127<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">
128  <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_20080321r339.tar.gz</code></em></code></strong>
129  </pre>
130}}}
131
132
133'''curl'''
134{{{
135#!html
136<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">
137  <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_20080321r339.tar.gz</code></em></code></strong>
138  </pre>
139}}}
140
141
142Untar the file
143
144{{{
145#!html
146<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">
147  <code class="prompt">$</code> <strong class="userinput"><code><span><strong class="command">cd</strong></span> <em class="parameter"><code>${HOME}/SAXO_DIR</code></em></code></strong>
148  <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_20080321r339.tar.gz</code></em></code></strong>
149  <code class="prompt">$</code> <strong class="userinput"><code><span><strong class="command">rm</strong></span> <em class="parameter"><code>SAXO_SRC_20080321r339.tar.gz</code></em></code></strong>
150</pre>
151}}}
152
153==== Get SAXO tests data files (238M Mb) ====
154
155If you want to use the tests programs, you need to download the data tests files ({{{SAXO_DATA_20060602.tar.gz}}}), you may download theses files in
156
157 * {{{${HOME}/My_IDL}}}. This is the easiest solution but it could be inconvenient if your ${HOME} disk space is limited.
158           
159 * any other directory of your choice. In that case, when using IDL, you will need to define the variable {{{iodir}}} 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 [#CreateSAXOenvironment Create SAXO environment]) or directly within IDL with the following command:
160
161{{{
162#!html
163<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">
164 <code class="prompt">idl&gt;</code> <strong class="userinput"><code><span><strong class="command">iodir = the chosen directory</strong></span></code></strong>
165</pre>
166}}}
167
168{{{
169#!html
170<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">
171  <code class="prompt">$</code> <strong class="userinput"><code><span><strong class="command">cd</strong></span> <em class="parameter"><code>${HOME}</code></em></code></strong>
172  <code class="prompt">$</code> <strong class="userinput"><code><span><strong class="command">mkdir</strong></span> <em class="parameter"><code><code class="replaceable">CHOSEN_DIR</code></code></em></code></strong>
173  <code class="prompt">$</code> <strong class="userinput"><code><span><strong class="command">cd</strong></span> <em class="parameter"><code><code class="replaceable">CHOSEN_DIR</code></code></em></code></strong>
174</pre>
175}}}
176
177Download [http://forge.ipsl.jussieu.fr/saxo/download/SAXO_DATA_20060602.tar.gz SAXO_DATA_20060602.tar.gz] (238M Mb)
178or with {{{wget}}} or {{{curl}}} 

179
180
181'''wget'''
182{{{
183#!html
184<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">
185  <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>
186   </pre>
187}}}
188
189
190'''curl'''
191{{{
192#!html
193<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">
194  <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>
195  </pre>
196}}}
197
198
199== Generate your init.pro file ==
200
201To use SAXO, we need to build an IDL script that we usually call "{{{init.pro}}}". This file contains a set of IDL commands and default definitions (paths and variables of the common files) that are necessary to SAXO. Once it has been created, {{{init.pro}}} should the first executed command when starting IDL session.
202     
203{{{
204#!html
205<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">
206  <code class="prompt">$</code> <strong class="userinput"><code><span><strong class="command">cd</strong></span> <em class="parameter"><code>${HOME}/SAXO_DIR/SRC</code></em></code></strong>
207  <code class="prompt">$</code> <strong class="userinput"><code><span><strong class="command">idl</strong></span></code></strong>
208  <code class="computeroutput">IDL Version 6.0, Mac OS X (darwin ppc m32). (c) 2003, Research Systems, Inc.</code>
209
210  <code class="prompt">idl&gt;</code> <strong class="userinput"><code><span><strong class="command">buildinit</strong></span></code></strong>
211  <code class="computeroutput">% Compiled module: BUILDINIT.</code>
212</pre>
213}}}
214
215You must then answer several questions:
216
217 * give the path of {{{${HOME}/My_IDL}}}
218 * give the path of {{{${HOME}/SAXO_DIR}}}
219 * compatibility with the old version: No (except if you want to use old programs)
220 * give a default path for the data directory
221 * give a default path for the postscript directory
222 * give a default path for the images directory
223 * give a default path for the animation directory
224 * number of accessible printer and their configuration
225 * default color table
226 * default page orientation (portrait/landscape)
227 * default page size
228 * default window size
229 * postscript archiving options
230 * name of the init file ({{{init.pro}}})
231{{{
232#!html
233<pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen">
234   <code class="computeroutput">% Compiled module: CW_FIELD.</code>
235   <code class="computeroutput">% Compiled module: XMANAGER.</code>
236   <code class="computeroutput">% Compiled module: LOADCT.</code>
237   <code class="computeroutput">% Compiled module: FILEPATH.</code>
238   <code class="computeroutput">% Compiled module: PATH_SEP.</code>
239   <code class="computeroutput">% Compiled module: CW_FIELD.</code>
240   <code class="computeroutput">% Compiled module: STRSPLIT.</code>
241   <code class="computeroutput">% Compiled module: CW_FIELD.</code>
242   <code class="computeroutput">% Compiled module: CW_FIELD.</code>
243   <code class="computeroutput">% Compiled module: CW_FIELD.</code>
244   <code class="prompt">idl&gt;</code> <strong class="userinput"><code><span><strong class="command">exit</strong></span></code></strong>
245</pre>
246}}}
247
248There is an example of the kind of [source:/trunk/SRC/Documentation/xmldoc/idlfiles/init_example.pro  init.pro] you should get.
249     
250== After this ==
251
252You are now ready to do your
253[wiki:FirstSteps First steps with SAXO].
254
Note: See TracBrowser for help on using the repository browser.