[89] | 1 | |
---|
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
---|
| 3 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
| 4 | |
---|
| 5 | <!-- Generated by IDLdoc 2.0 --> |
---|
| 6 | |
---|
| 7 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
---|
| 8 | <head> |
---|
[104] | 9 | <title>triangule_c.pro (SAXO Documentation)</title> |
---|
[89] | 10 | |
---|
| 11 | |
---|
[191] | 12 | <link rel="stylesheet" type="text/css" media="all" href="./../../main_files.css" /> |
---|
| 13 | <link rel="stylesheet" type="text/css" media="print" href="./../../main_files_print.css" /> |
---|
[89] | 14 | |
---|
| 15 | |
---|
| 16 | <script type="text/javascript"> |
---|
| 17 | function setTitle() { |
---|
[104] | 18 | parent.document.title="triangule_c.pro (SAXO Documentation)"; |
---|
[89] | 19 | } |
---|
| 20 | </script> |
---|
| 21 | </head> |
---|
| 22 | |
---|
| 23 | <body onload="setTitle();"> |
---|
| 24 | |
---|
| 25 | <div id="navbar_title"> |
---|
[104] | 26 | <h1>SAXO Documentation</h1> |
---|
[89] | 27 | </div> |
---|
| 28 | |
---|
| 29 | |
---|
| 30 | <div id="main_navbar"> |
---|
| 31 | |
---|
| 32 | <table cellspacing="0"> |
---|
| 33 | <tr> |
---|
| 34 | |
---|
[189] | 35 | <td><a href="./../../overview.html" title="Overview of library">Overview</a></td> |
---|
[89] | 36 | |
---|
| 37 | |
---|
| 38 | |
---|
| 39 | <td >Directory</td> |
---|
| 40 | |
---|
| 41 | |
---|
| 42 | |
---|
[189] | 43 | <td><a href="./../../idldoc-categories.html" title="Browse library by category">Categories</a></td> |
---|
[89] | 44 | |
---|
| 45 | |
---|
| 46 | |
---|
[189] | 47 | <td><a href="./../../idldoc-index.html" title="Index of files, routines, and parameters">Index</a></td> |
---|
[89] | 48 | |
---|
| 49 | |
---|
| 50 | |
---|
[189] | 51 | <td><a href="./../../search-page.html" title="Search library">Search</a></td> |
---|
[89] | 52 | |
---|
| 53 | |
---|
| 54 | <td id="selected">File</td> |
---|
| 55 | |
---|
| 56 | |
---|
[189] | 57 | <td><a href="../../../../ToBeReviewed/TRIANGULATION//triangule_c.pro" title="Source code of a file">Source</a></td> |
---|
[89] | 58 | |
---|
| 59 | |
---|
| 60 | |
---|
[189] | 61 | <td><a href="./../../idldoc-help.html" title="Help on IDLdoc">Help</a></td> |
---|
[89] | 62 | |
---|
| 63 | |
---|
| 64 | <td >Etc</td> |
---|
| 65 | |
---|
| 66 | <td id="flexible">Developer documentation</td> |
---|
| 67 | </tr> |
---|
| 68 | </table> |
---|
| 69 | |
---|
| 70 | </div> |
---|
| 71 | |
---|
| 72 | <div id="secondary_navbar"> |
---|
| 73 | |
---|
[189] | 74 | <a href="triangule.html"><<prev file</a> | <a href="triangule_e.html">next file >></a> <a href="triangule_c.html" target="_TOP">view single page</a> | <a href="./../../index.html" target="_TOP">view frames</a> summary: fields | routine details: <a href="#routine_details">routine</a> |
---|
[89] | 75 | |
---|
| 76 | </div> |
---|
| 77 | |
---|
| 78 | |
---|
| 79 | <div id="container"> |
---|
| 80 | |
---|
[189] | 81 | <h1 class="directory"><a href="directory-overview.html">ToBeReviewed/TRIANGULATION/</a></h1> |
---|
[89] | 82 | <h2 class="pro_file">triangule_c.pro</h2> |
---|
| 83 | |
---|
| 84 | <div id="file_attr"> |
---|
| 85 | <dl> |
---|
| 86 | </dl> |
---|
| 87 | </div> |
---|
| 88 | |
---|
[151] | 89 | <div id="file_comments"> |
---|
| 90 | Construct the triangulation array. |
---|
[89] | 91 | |
---|
[234] | 92 | The idea is: construct a list of triangle which link points between them. |
---|
[151] | 93 | This is automatically done by the function TRIANGULATE |
---|
| 94 | Here: |
---|
[234] | 95 | we consider the fact that points are disposed on a grid (regular or not, |
---|
| 96 | but not unstructured, that is to say that points are written following a |
---|
| 97 | rectangular matrix). A easy way to do triangles between all points is then: |
---|
[151] | 98 | |
---|
[163] | 99 | for each point (i,j) of the matrix -except those of the last line and of |
---|
[151] | 100 | the last column- we call rectangle (i,j) the rectangle made of the four |
---|
| 101 | points (i,j), (i+1,j), (i,j+1), (i+1,j+1). To trace all triangle, we just |
---|
| 102 | have to trace the 2 triangles contained in rectangles (i,j) |
---|
| 103 | |
---|
| 104 | We notice that each rectangle (i,j) have 2 diagonals (it is true... Make a |
---|
| 105 | drawing to make sure!!), so there are two possible choice for each rectangle |
---|
| 106 | we want to cut in 2 triangles... |
---|
[234] | 107 | |
---|
[151] | 108 | It is thanks to this choice that we will be able to trace coast with right |
---|
| 109 | angles. At each angle of coast remarkable by the existence of an unique land |
---|
| 110 | point or of an unique ocean point on one of the four summit of a rectangle (i,j), |
---|
| 111 | we have to cut the rectangle following the diagonal passing by this point. |
---|
[234] | 112 | </div> |
---|
[151] | 113 | |
---|
[89] | 114 | |
---|
| 115 | |
---|
| 116 | |
---|
| 117 | |
---|
| 118 | |
---|
| 119 | |
---|
| 120 | |
---|
| 121 | |
---|
| 122 | <div id="routine_details"> |
---|
| 123 | |
---|
| 124 | |
---|
| 125 | <div class="routine_details" id="_triangule_c"> |
---|
| 126 | |
---|
[151] | 127 | <h2><a class="top" href="#container">top</a>triangule_c <span class="categories"> |
---|
[157] | 128 | Graphics |
---|
[151] | 129 | </span></h2> |
---|
[89] | 130 | |
---|
| 131 | <p class="header"> |
---|
[163] | 132 | <span class="result">result = </span>triangule_c(<span class="result">[<a href="#_triangule_c_param_maskentree">maskentree</a>]</span>, <a href="#_triangule_c_keyword_COINMONTE">COINMONTE</a>=<span class="result">array</span>, <a href="#_triangule_c_keyword_COINDESCEND">COINDESCEND</a>=<span class="result">array</span>, <a href="#_triangule_c_keyword_BASIC">BASIC</a>=<span class="result">BASIC</span>, <a href="#_triangule_c_keyword_KEEP_CONT">KEEP_CONT</a>=<span class="result">KEEP_CONT</span>)</p> |
---|
[89] | 133 | |
---|
| 134 | <div class="comments"> |
---|
[151] | 135 | </div> |
---|
[89] | 136 | |
---|
[151] | 137 | <h3>Return value</h3><div class="preformat"> |
---|
| 138 | res: tableau 2d (3,nbre de triangles). |
---|
[234] | 139 | Each line of res represent indexes of points constituting summits of a triangle. |
---|
[151] | 140 | See how we trace triangles in definetri.pro |
---|
[89] | 141 | </div> |
---|
| 142 | |
---|
| 143 | |
---|
| 144 | <h3>Parameters</h3> |
---|
| 145 | |
---|
| 146 | |
---|
| 147 | <h4 id="_triangule_c_param_maskentree">maskentree |
---|
[151] | 148 | <span class="attr">in</span> |
---|
[89] | 149 | |
---|
[151] | 150 | <span class="attr">optional</span> |
---|
[89] | 151 | |
---|
| 152 | |
---|
[163] | 153 | <span class="attr">type:</span> <span class="value">2d array</span> |
---|
[89] | 154 | |
---|
| 155 | |
---|
| 156 | </h4> |
---|
| 157 | |
---|
[151] | 158 | <div class="comments"> |
---|
[234] | 159 | It is a 2d array which will serve to mask the field we will trace after with CONTOUR, |
---|
[151] | 160 | ...TRIANGULATION=triangule(mask) |
---|
| 161 | If this argument is not specified, the function use tmask |
---|
| 162 | </div> |
---|
[89] | 163 | |
---|
| 164 | |
---|
| 165 | |
---|
| 166 | |
---|
| 167 | |
---|
| 168 | |
---|
| 169 | <h3>Keywords</h3> |
---|
| 170 | |
---|
| 171 | <h4 id="_triangule_c_keyword_COINMONTE">COINMONTE |
---|
| 172 | |
---|
| 173 | |
---|
| 174 | |
---|
| 175 | |
---|
| 176 | |
---|
[163] | 177 | <span class="attr">type:</span> <span class="value">array</span> |
---|
[89] | 178 | |
---|
| 179 | |
---|
| 180 | </h4> |
---|
| 181 | |
---|
[151] | 182 | <div class="comments"> |
---|
[234] | 183 | To obtain the array of "ascending land corner" to be treated with |
---|
| 184 | completecointerre.pro in the variable array instead of make it pass by the global |
---|
[151] | 185 | variable twin_corners_up. |
---|
| 186 | </div> |
---|
[89] | 187 | |
---|
| 188 | <h4 id="_triangule_c_keyword_COINDESCEND">COINDESCEND |
---|
| 189 | |
---|
| 190 | |
---|
| 191 | |
---|
| 192 | |
---|
| 193 | |
---|
[163] | 194 | <span class="attr">type:</span> <span class="value">array</span> |
---|
[89] | 195 | |
---|
| 196 | |
---|
| 197 | </h4> |
---|
| 198 | |
---|
[151] | 199 | <div class="comments"> |
---|
[163] | 200 | See COINMONTE |
---|
[151] | 201 | </div> |
---|
[89] | 202 | |
---|
| 203 | <h4 id="_triangule_c_keyword_BASIC">BASIC |
---|
| 204 | |
---|
| 205 | |
---|
| 206 | |
---|
| 207 | |
---|
| 208 | |
---|
| 209 | |
---|
| 210 | |
---|
| 211 | |
---|
| 212 | </h4> |
---|
| 213 | |
---|
[151] | 214 | <div class="comments"> |
---|
| 215 | Specify that the mask is on a basic grid (use the triangulation for vertical cuts and hovmoellers) |
---|
| 216 | </div> |
---|
[89] | 217 | |
---|
| 218 | <h4 id="_triangule_c_keyword_KEEP_CONT">KEEP_CONT |
---|
| 219 | |
---|
| 220 | |
---|
| 221 | |
---|
| 222 | |
---|
| 223 | |
---|
| 224 | |
---|
| 225 | |
---|
| 226 | |
---|
| 227 | </h4> |
---|
| 228 | |
---|
[151] | 229 | <div class="comments"> |
---|
| 230 | To keep the triangulation even on the continents |
---|
| 231 | </div> |
---|
[89] | 232 | |
---|
| 233 | |
---|
| 234 | |
---|
| 235 | |
---|
[151] | 236 | <h3>Version history</h3> |
---|
[89] | 237 | |
---|
[151] | 238 | <h4>Version</h4><div class="preformat"> |
---|
[402] | 239 | $Id: triangule_c.pro 370 2008-08-07 07:59:15Z pinsard $ |
---|
[151] | 240 | </div> |
---|
[157] | 241 | <h4>History</h4><div class="preformat"> |
---|
| 242 | Sebastien Masson (smasson@lodyc.jussieu.fr) |
---|
| 243 | 26/4/1999 |
---|
| 244 | </div> |
---|
[89] | 245 | |
---|
| 246 | |
---|
[151] | 247 | <h3>Known issues</h3> |
---|
[89] | 248 | |
---|
| 249 | |
---|
[151] | 250 | <h4>Todo items</h4><div class="preformat"> |
---|
[234] | 251 | seb L.267->268 je ne pense pas que ce soit ce que tu voulais dire mais |
---|
[338] | 252 | c'est la traduction de ce qu'il y avait écrit. Correction si besoin. |
---|
| 253 | </div> |
---|
[151] | 254 | <h4>Restrictions</h4><div class="preformat"> |
---|
[321] | 255 | Data whose we want to do the contour must be disposed in a matrix. |
---|
[234] | 256 | On the other hand, in the matrix, the points's arrangement can not be |
---|
[151] | 257 | irregular. If it is, use TRIANGULE. |
---|
| 258 | </div> |
---|
[89] | 259 | |
---|
[151] | 260 | <h3>Other attributes</h3> |
---|
[89] | 261 | |
---|
| 262 | |
---|
[151] | 263 | <h4>Uses routines</h4><div class="preformat"> |
---|
[402] | 264 | <a href="../..//Obsolete/common.html">common</a> |
---|
| 265 | <a href="../..//Matrix/different.html">different</a> |
---|
| 266 | <a href="../..//ToBeReviewed/TRIANGULATION/definetri.html">definetri</a> |
---|
[151] | 267 | </div> |
---|
[89] | 268 | |
---|
| 269 | |
---|
| 270 | |
---|
| 271 | |
---|
[163] | 272 | <h3>Statistics</h3> |
---|
| 273 | <table class="statistics"> |
---|
| 274 | <tr><td>McCabe cyclic</td><td> 41</td></tr> |
---|
| 275 | <tr><td>McCabe essential</td><td> 1</td></tr> |
---|
| 276 | <tr><td>McCabe modular design</td><td> 1</td></tr> |
---|
| 277 | </table> |
---|
[89] | 278 | |
---|
| 279 | |
---|
| 280 | </div> |
---|
| 281 | |
---|
| 282 | </div> |
---|
| 283 | |
---|
| 284 | |
---|
| 285 | |
---|
| 286 | <div id="tagline">Produced by IDLdoc 2.0.</div> |
---|
| 287 | |
---|
| 288 | </div> |
---|
| 289 | |
---|
| 290 | </body> |
---|
[249] | 291 | </html> |
---|