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