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 | * {{{${HOME}/SAXO_DIR}}} that will contain the source files of SAXO. It should not be modified by the user to simplify later updates. |
---|
14 | * {{{${HOME}/My_IDL}}} that will contain user personal files (including modified SAXO files, if needed). |
---|
15 | {{{ |
---|
16 | #!html |
---|
17 | <pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen"> |
---|
18 | <code class="prompt">$</code> <strong class="userinput"><code><span><strong class="command">cd</strong></span> <em class="parameter"><code>${HOME}</code></em></code></strong> |
---|
19 | <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> |
---|
20 | </pre> |
---|
21 | }}} |
---|
22 | |
---|
23 | == Get SAXO files == |
---|
24 | |
---|
25 | === If you work at IDRIS, IPSL or LOCEAN === |
---|
26 | SAXO is already installed at |
---|
27 | * IDRIS, on {{{rhodes}}}: {{{/home/rech/eee/reee217/SAXO_DIR}}} @star@ IPSL: {{{/home/smlod/SAXO_DIR}}} @star@ LOCEAN: {{{/usr/home/smasson/SAXO_DIR}}} |
---|
28 | If 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: |
---|
29 | |
---|
30 | '''IDRIS'''{{{ |
---|
31 | #!html |
---|
32 | <pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen"> |
---|
33 | <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> |
---|
34 | </pre> |
---|
35 | }}} |
---|
36 | |
---|
37 | '''IPSL'''{{{ |
---|
38 | #!html |
---|
39 | <pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen"> |
---|
40 | <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> |
---|
41 | </pre> |
---|
42 | }}} |
---|
43 | |
---|
44 | '''LOCEAN'''{{{ |
---|
45 | #!html |
---|
46 | <pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen"> |
---|
47 | <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> |
---|
48 | </pre> |
---|
49 | }}} |
---|
50 | |
---|
51 | |
---|
52 | === If Subversion (svn) is installed on your machine === |
---|
53 | |
---|
54 | ==== Regular users ==== |
---|
55 | |
---|
56 | The ''complete'' latest revision (source + tests data files: 771 Mb) can be checked out with the following command executed in your ${HOME}: |
---|
57 | {{{ |
---|
58 | #!html |
---|
59 | <pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen"> |
---|
60 | <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> |
---|
61 | </pre> |
---|
62 | }}} |
---|
63 | |
---|
64 | The latest revision of the ''source files'' (44 Mb) can be checked out with the following command: |
---|
65 | {{{ |
---|
66 | #!html |
---|
67 | <pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen"> |
---|
68 | <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> |
---|
69 | </pre> |
---|
70 | }}} |
---|
71 | |
---|
72 | The latest revision of the ''NetCDF data files'' (728 Mb) used by the test programs can be checked out with the following command: |
---|
73 | {{{ |
---|
74 | #!html |
---|
75 | <pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen"> |
---|
76 | <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> |
---|
77 | </pre> |
---|
78 | }}} |
---|
79 | |
---|
80 | ==== Contributors ==== |
---|
81 | ''Contributors'' should better use the following command (and replace login by their own login): |
---|
82 | {{{ |
---|
83 | #!html |
---|
84 | <pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen"> |
---|
85 | <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> |
---|
86 | </pre> |
---|
87 | }}} |
---|
88 | |
---|
89 | === Get SAXO from a tar file === |
---|
90 | |
---|
91 | ==== Get SAXO source files (5.8M Mb) ==== |
---|
92 | |
---|
93 | Create your {{{${HOME}/SAXO_DIR}}} directory ⊠|
---|
94 | {{{ |
---|
95 | #!html |
---|
96 | <pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen"> |
---|
97 | <code class="prompt">$</code> <strong class="userinput"><code><span><strong class="command">cd</strong></span> <em class="parameter"><code>${HOME}</code></em></code></strong> |
---|
98 | <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> |
---|
99 | <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> |
---|
100 | </pre> |
---|
101 | }}} |
---|
102 | |
---|
103 | ⊠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). |
---|
104 | |
---|
105 | This tar.gz file could also be downloaded with {{{wget}}} or {{{curl}}} |
---|
106 | '''wget'''{{{ |
---|
107 | #!html |
---|
108 | <pre xmlns:xl="http://www.w3.org/1999/xlink" 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_SRC_20080321r339.tar.gz</code></em></code></strong> |
---|
110 | </pre> |
---|
111 | }}} |
---|
112 | |
---|
113 | '''curl'''{{{ |
---|
114 | #!html |
---|
115 | <pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen"> |
---|
116 | <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> |
---|
117 | </pre> |
---|
118 | }}} |
---|
119 | |
---|
120 | |
---|
121 | Untar the file |
---|
122 | {{{ |
---|
123 | #!html |
---|
124 | <pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen"> |
---|
125 | <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> |
---|
126 | <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> |
---|
127 | <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> |
---|
128 | </pre> |
---|
129 | }}} |
---|
130 | |
---|
131 | ==== Get SAXO tests data files (238M Mb) ==== |
---|
132 | |
---|
133 | If 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 |
---|
134 | * {{{${HOME}/My_IDL}}}. This is the easiest solution but it could be inconvenient if your ${HOME} disk space is limited. |
---|
135 | * 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 [#Create SAXO environment]) or directly within IDL with the following command: idl>iodir = '''''the chosen directory'''''. |
---|
136 | {{{ |
---|
137 | #!html |
---|
138 | <pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen"> |
---|
139 | <code class="prompt">$</code> <strong class="userinput"><code><span><strong class="command">cd</strong></span> <em class="parameter"><code>${HOME}</code></em></code></strong> |
---|
140 | <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> |
---|
141 | <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> |
---|
142 | </pre> |
---|
143 | }}} |
---|
144 | |
---|
145 | Download [http://forge.ipsl.jussieu.fr/saxo/download/SAXO_DATA_20060602.tar.gz SAXO_DATA_20060602.tar.gz] (238M Mb) |
---|
146 | or with {{{wget}}} or {{{curl}}} ⊠|
---|
147 | |
---|
148 | '''wget'''{{{ |
---|
149 | #!html |
---|
150 | <pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen"> |
---|
151 | <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> |
---|
152 | </pre> |
---|
153 | }}} |
---|
154 | |
---|
155 | '''curl'''{{{ |
---|
156 | #!html |
---|
157 | <pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen"> |
---|
158 | <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> |
---|
159 | </pre> |
---|
160 | }}} |
---|
161 | |
---|
162 | |
---|
163 | == Generate your init.pro file == |
---|
164 | |
---|
165 | To 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. |
---|
166 | {{{ |
---|
167 | #!html |
---|
168 | <pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen"> |
---|
169 | <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> |
---|
170 | <code class="prompt">$</code> <strong class="userinput"><code><span><strong class="command">idl</strong></span></code></strong> |
---|
171 | <code class="computeroutput">IDL Version 6.0, Mac OS X (darwin ppc m32). (c) 2003, Research Systems, Inc.</code> |
---|
172 | |
---|
173 | <code class="prompt">idl></code> <strong class="userinput"><code><span><strong class="command">buildinit</strong></span></code></strong> |
---|
174 | <code class="computeroutput">% Compiled module: BUILDINIT.</code> |
---|
175 | </pre> |
---|
176 | }}} |
---|
177 | |
---|
178 | You must then answer several questions: |
---|
179 | * give the path of {{{${HOME}/My_IDL}}} @star@ give the path of {{{${HOME}/SAXO_DIR}}} @star@ compatibility with the old version: No (except if you want to use old programs) @star@ give a default path for the data directory @star@ give a default path for the postscript directory @star@ give a default path for the images directory @star@ give a default path for the animation directory @star@ number of accessible printer and their configuration @star@ default color table @star@ default page orientation (portrait/landscape) @star@ default page size @star@ default window size @star@ postscript archiving options @star@ name of the init file ({{{init.pro}}}){{{ |
---|
180 | #!html |
---|
181 | <pre xmlns:xl="http://www.w3.org/1999/xlink" class="screen"> |
---|
182 | <code class="computeroutput">% Compiled module: CW_FIELD.</code> |
---|
183 | <code class="computeroutput">% Compiled module: XMANAGER.</code> |
---|
184 | <code class="computeroutput">% Compiled module: LOADCT.</code> |
---|
185 | <code class="computeroutput">% Compiled module: FILEPATH.</code> |
---|
186 | <code class="computeroutput">% Compiled module: PATH_SEP.</code> |
---|
187 | <code class="computeroutput">% Compiled module: CW_FIELD.</code> |
---|
188 | <code class="computeroutput">% Compiled module: STRSPLIT.</code> |
---|
189 | <code class="computeroutput">% Compiled module: CW_FIELD.</code> |
---|
190 | <code class="computeroutput">% Compiled module: CW_FIELD.</code> |
---|
191 | <code class="computeroutput">% Compiled module: CW_FIELD.</code> |
---|
192 | <code class="prompt">idl></code> <strong class="userinput"><code><span><strong class="command">exit</strong></span></code></strong> |
---|
193 | </pre> |
---|
194 | }}} |
---|
195 | |
---|
196 | There is an example of the kind of [idlfiles/init_example.pro init.pro] you should get. |
---|
197 | |
---|
198 | == After this == |
---|
199 | |
---|
200 | You are now ready to do your |
---|
201 | [wiki:FirstSteps First steps with SAXO]. |
---|
202 | |
---|