[163] | 1 | |
---|
| 2 | |
---|
| 3 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
---|
| 4 | <head> |
---|
| 5 | <title>fitintobox.pro (SAXO Documentation Assistant)</title> |
---|
| 6 | </head> |
---|
| 7 | |
---|
| 8 | <body text="#000000" bgcolor="#FFFFFF"> |
---|
| 9 | |
---|
| 10 | |
---|
| 11 | <!-- Navbar template takes a structure with the following fields: |
---|
| 12 | overview_href : |
---|
| 13 | overview_selected : |
---|
| 14 | dir_overview_href : |
---|
| 15 | dir_overview_selected : |
---|
| 16 | categories_href : |
---|
| 17 | categories_selected : |
---|
| 18 | index_href : |
---|
| 19 | index_selected : |
---|
| 20 | search_href : |
---|
| 21 | search_selected : |
---|
| 22 | file_selected : |
---|
| 23 | source_href : |
---|
| 24 | source_selected : |
---|
| 25 | help_href : |
---|
| 26 | help_selected : |
---|
| 27 | etc_selected : |
---|
| 28 | |
---|
| 29 | prev_file_href : |
---|
| 30 | next_file_href : |
---|
| 31 | |
---|
| 32 | view_single_page_href : |
---|
| 33 | view_frames_href : |
---|
| 34 | |
---|
| 35 | summary_fields_href : |
---|
| 36 | summary_routine_href : |
---|
| 37 | details_routine_href : |
---|
| 38 | |
---|
| 39 | title : |
---|
| 40 | subtitle : |
---|
| 41 | user : |
---|
| 42 | --> |
---|
| 43 | |
---|
| 44 | |
---|
| 45 | <table border="0" cellpadding="0" cellspacing="0" width="98%" bgcolor="#F0F0FF" valign="bottom"> |
---|
| 46 | <tr> |
---|
| 47 | <td width="10%"> |
---|
| 48 | <a href="find.html"><img src="./../prev.gif" border="0" alt="Previous"></a></td> |
---|
| 49 | <td width="80%" align="center" valign="center"> |
---|
| 50 | <font size=-1><i>SAXO Documentation Assistant</i>: <a href="./../home.html">Overview</a></font></td> |
---|
| 51 | <td width="10%" align="right"> |
---|
| 52 | <a href="isadirectory.html"><img src="./../next.gif" border="0" alt="Next"></a></td> |
---|
| 53 | </tr> |
---|
| 54 | </table> |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | <h1><font size="-2">Utilities/</font></h1> |
---|
| 58 | <h2>fitintobox.pro</h2> |
---|
| 59 | |
---|
| 60 | <dl> |
---|
| 61 | </dl> |
---|
| 62 | |
---|
| 63 | |
---|
| 64 | Check that the input array has size and dimensions |
---|
| 65 | compatible with the domain that was defined with the previous call |
---|
| 66 | of domdef. |
---|
| 67 | |
---|
| 68 | |
---|
| 69 | |
---|
| 70 | |
---|
| 71 | |
---|
| 72 | <a name="#_fitintobox"></a> |
---|
| 73 | |
---|
| 74 | <h2>fitintobox <font size="-1" color="#006633"> |
---|
| 75 | Compatibility |
---|
| 76 | </font></h2> |
---|
| 77 | |
---|
| 78 | <p><font face="Courier"><i>result = </i>fitintobox(<i><a href="#_fitintobox_keyword_field">field</a>[, <a href="#_fitintobox_keyword_nx">nx</a>][, <a href="#_fitintobox_keyword_ny">ny</a>][, <a href="#_fitintobox_keyword_nz">nz</a>][, <a href="#_fitintobox_keyword_firstx">firstx</a>][, <a href="#_fitintobox_keyword_firsty">firsty</a>][, <a href="#_fitintobox_keyword_firstz">firstz</a>][, <a href="#_fitintobox_keyword_lastx">lastx</a>][, <a href="#_fitintobox_keyword_lasty">lasty</a>][, <a href="#_fitintobox_keyword_lastz">lastz</a>]</i>, <a href="#_fitintobox_keyword_WDEPTH">WDEPTH</a>=<i>WDEPTH</i>)</font></p> |
---|
| 79 | |
---|
| 80 | |
---|
| 81 | |
---|
| 82 | |
---|
| 83 | <h3>Return value</h3> |
---|
| 84 | an array with dimensions matching the domain |
---|
| 85 | or -1 if there is an error... |
---|
| 86 | |
---|
| 87 | |
---|
| 88 | |
---|
| 89 | <h3>Parameters</h3> |
---|
| 90 | |
---|
| 91 | |
---|
| 92 | <a name="#_fitintobox_keyword_field"></a> |
---|
| 93 | <h4>field |
---|
| 94 | <font size="-1" color="#006633">in</font> |
---|
| 95 | |
---|
| 96 | |
---|
| 97 | <font size="-1" color="#006633">required</font> |
---|
| 98 | |
---|
| 99 | <font size="-1" color="#006633">type:</font> <font size="-1" color="#006633"><i>array or struct</i></font> |
---|
| 100 | |
---|
| 101 | |
---|
| 102 | </h4> |
---|
| 103 | |
---|
| 104 | |
---|
| 105 | an array or a structure that can be read by the function |
---|
| 106 | litchamp.pro |
---|
| 107 | |
---|
| 108 | |
---|
| 109 | |
---|
| 110 | <a name="#_fitintobox_keyword_nx"></a> |
---|
| 111 | <h4>nx |
---|
| 112 | <font size="-1" color="#006633">in</font> |
---|
| 113 | |
---|
| 114 | <font size="-1" color="#006633">optional</font> |
---|
| 115 | |
---|
| 116 | |
---|
| 117 | |
---|
| 118 | <font size="-1" color="#006633">default:</font> <font size="-1" color="#006633"><i>define by grille.pro</i></font> |
---|
| 119 | |
---|
| 120 | </h4> |
---|
| 121 | |
---|
| 122 | |
---|
| 123 | |
---|
| 124 | |
---|
| 125 | |
---|
| 126 | <a name="#_fitintobox_keyword_ny"></a> |
---|
| 127 | <h4>ny |
---|
| 128 | <font size="-1" color="#006633">in</font> |
---|
| 129 | |
---|
| 130 | <font size="-1" color="#006633">optional</font> |
---|
| 131 | |
---|
| 132 | |
---|
| 133 | |
---|
| 134 | <font size="-1" color="#006633">default:</font> <font size="-1" color="#006633"><i>define by grille.pro</i></font> |
---|
| 135 | |
---|
| 136 | </h4> |
---|
| 137 | |
---|
| 138 | |
---|
| 139 | |
---|
| 140 | |
---|
| 141 | |
---|
| 142 | <a name="#_fitintobox_keyword_nz"></a> |
---|
| 143 | <h4>nz |
---|
| 144 | <font size="-1" color="#006633">in</font> |
---|
| 145 | |
---|
| 146 | <font size="-1" color="#006633">optional</font> |
---|
| 147 | |
---|
| 148 | |
---|
| 149 | |
---|
| 150 | <font size="-1" color="#006633">default:</font> <font size="-1" color="#006633"><i>define by grille.pro</i></font> |
---|
| 151 | |
---|
| 152 | </h4> |
---|
| 153 | |
---|
| 154 | |
---|
| 155 | |
---|
| 156 | |
---|
| 157 | |
---|
| 158 | <a name="#_fitintobox_keyword_firstx"></a> |
---|
| 159 | <h4>firstx |
---|
| 160 | <font size="-1" color="#006633">in</font> |
---|
| 161 | |
---|
| 162 | <font size="-1" color="#006633">optional</font> |
---|
| 163 | |
---|
| 164 | |
---|
| 165 | |
---|
| 166 | <font size="-1" color="#006633">default:</font> <font size="-1" color="#006633"><i>define by grille.pro</i></font> |
---|
| 167 | |
---|
| 168 | </h4> |
---|
| 169 | |
---|
| 170 | |
---|
| 171 | |
---|
| 172 | |
---|
| 173 | |
---|
| 174 | <a name="#_fitintobox_keyword_firsty"></a> |
---|
| 175 | <h4>firsty |
---|
| 176 | <font size="-1" color="#006633">in</font> |
---|
| 177 | |
---|
| 178 | <font size="-1" color="#006633">optional</font> |
---|
| 179 | |
---|
| 180 | |
---|
| 181 | |
---|
| 182 | <font size="-1" color="#006633">default:</font> <font size="-1" color="#006633"><i>define by grille.pro</i></font> |
---|
| 183 | |
---|
| 184 | </h4> |
---|
| 185 | |
---|
| 186 | |
---|
| 187 | |
---|
| 188 | |
---|
| 189 | |
---|
| 190 | <a name="#_fitintobox_keyword_firstz"></a> |
---|
| 191 | <h4>firstz |
---|
| 192 | <font size="-1" color="#006633">in</font> |
---|
| 193 | |
---|
| 194 | <font size="-1" color="#006633">optional</font> |
---|
| 195 | |
---|
| 196 | |
---|
| 197 | |
---|
| 198 | <font size="-1" color="#006633">default:</font> <font size="-1" color="#006633"><i>define by grille.pro</i></font> |
---|
| 199 | |
---|
| 200 | </h4> |
---|
| 201 | |
---|
| 202 | |
---|
| 203 | |
---|
| 204 | |
---|
| 205 | |
---|
| 206 | <a name="#_fitintobox_keyword_lastx"></a> |
---|
| 207 | <h4>lastx |
---|
| 208 | <font size="-1" color="#006633">in</font> |
---|
| 209 | |
---|
| 210 | <font size="-1" color="#006633">optional</font> |
---|
| 211 | |
---|
| 212 | |
---|
| 213 | |
---|
| 214 | <font size="-1" color="#006633">default:</font> <font size="-1" color="#006633"><i>define by grille.pro</i></font> |
---|
| 215 | |
---|
| 216 | </h4> |
---|
| 217 | |
---|
| 218 | |
---|
| 219 | |
---|
| 220 | |
---|
| 221 | |
---|
| 222 | <a name="#_fitintobox_keyword_lasty"></a> |
---|
| 223 | <h4>lasty |
---|
| 224 | <font size="-1" color="#006633">in</font> |
---|
| 225 | |
---|
| 226 | <font size="-1" color="#006633">optional</font> |
---|
| 227 | |
---|
| 228 | |
---|
| 229 | |
---|
| 230 | <font size="-1" color="#006633">default:</font> <font size="-1" color="#006633"><i>define by grille.pro</i></font> |
---|
| 231 | |
---|
| 232 | </h4> |
---|
| 233 | |
---|
| 234 | |
---|
| 235 | |
---|
| 236 | |
---|
| 237 | |
---|
| 238 | <a name="#_fitintobox_keyword_lastz"></a> |
---|
| 239 | <h4>lastz |
---|
| 240 | <font size="-1" color="#006633">in</font> |
---|
| 241 | |
---|
| 242 | <font size="-1" color="#006633">optional</font> |
---|
| 243 | |
---|
| 244 | |
---|
| 245 | |
---|
| 246 | <font size="-1" color="#006633">default:</font> <font size="-1" color="#006633"><i>define by grille.pro</i></font> |
---|
| 247 | |
---|
| 248 | </h4> |
---|
| 249 | |
---|
| 250 | |
---|
| 251 | |
---|
| 252 | |
---|
| 253 | |
---|
| 254 | |
---|
| 255 | |
---|
| 256 | <h3>Keywords</h3> |
---|
| 257 | |
---|
| 258 | |
---|
| 259 | <a name="#_fitintobox_keyword_WDEPTH"></a> |
---|
| 260 | <h4>WDEPTH |
---|
| 261 | |
---|
| 262 | |
---|
| 263 | |
---|
| 264 | |
---|
| 265 | |
---|
| 266 | |
---|
| 267 | |
---|
| 268 | |
---|
| 269 | </h4> |
---|
| 270 | |
---|
| 271 | |
---|
| 272 | To specify that we are at W level |
---|
| 273 | |
---|
| 274 | |
---|
| 275 | |
---|
| 276 | |
---|
| 277 | <h3>Examples</h3> |
---|
| 278 | IDL> help, fitintobox(findgen(jpi,jpj)) |
---|
| 279 | <Expression> FLOAT = Array[41, 3] |
---|
| 280 | IDL> help, fitintobox(findgen(jpi,jpj,78)) |
---|
| 281 | Error: |
---|
| 282 | the array dimensions [180,148,78] are incompatible |
---|
| 283 | with the the domain dimensions |
---|
| 284 | [jpi/nx, jpj/ny, jpk/nz, jpt] = [180/41, 148/3, 31/31, 1] |
---|
| 285 | <Expression> INT = -1 |
---|
| 286 | |
---|
| 287 | <h3>Version history</h3> |
---|
| 288 | |
---|
[168] | 289 | <h4>Version</h4> $Id: fitintobox.pro 163 2006-08-29 12:59:46Z navarro $ |
---|
[163] | 290 | <h4>History</h4> Sebastien Masson (smasson@lodyc.jussieu.fr) |
---|
| 291 | 10 juin 2000. |
---|
| 292 | June 2005: S. Masson rewrite all. |
---|
| 293 | |
---|
| 294 | |
---|
| 295 | |
---|
| 296 | |
---|
| 297 | |
---|
| 298 | |
---|
| 299 | |
---|
| 300 | |
---|
| 301 | |
---|
| 302 | <h3>Other attributes</h3> |
---|
| 303 | |
---|
| 304 | |
---|
| 305 | <h4>Uses routines</h4> cm_4mesh |
---|
| 306 | cm_4cal |
---|
| 307 | |
---|
| 308 | |
---|
| 309 | |
---|
| 310 | |
---|
| 311 | |
---|
| 312 | <font size="-3"><p> </p></font> |
---|
| 313 | <hr size="1" color="#CCCCCC"/> |
---|
| 314 | |
---|
| 315 | |
---|
| 316 | |
---|
| 317 | |
---|
[177] | 318 | <p><font color="gray" size="-3"> Produced by IDLdoc 2.0 on Wed Sep 13 16:33:12 2006.</font></p> |
---|
[163] | 319 | |
---|
| 320 | </body> |
---|
| 321 | </html> |
---|