- Timestamp:
- 03/21/07 10:14:37 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Documentation/idldoc_html_output/Interpolation/fromirr.html
r210 r234 105 105 <div class="routine_details" id="_fromirr"> 106 106 107 <h2><a class="top" href="#container">top</a>fromirr <span class="categories"> 107 <h2><a class="top" href="#container">top</a>fromirr <span class="categories"> 108 108 Interpolation 109 109 </span></h2> … … 279 279 280 280 <div class="comments"> 281 2D arrays, weig and addr are the weight and addresses used to 282 perform the interpolation: 281 1) at the first call of fromirr: 282 This keyword can be set to a named variable (undefined or equal to 0) into which the 283 addresses used to perform the interpolation will be copied when the current routine exits. 284 2) Next, once this keyword is set to a defined 2d array, it is used to bypass the computation 285 of the weights and addresses used to perform the interpolation. In this case, fromirr simply 286 compute the interpolated field as: 283 287 dataout = total(weig*datain[addr], 1) 284 288 dataout = reform(dataout, jpio, jpjo, /over) 285 Those keywords can be set to named variables (that are undefined or equal to 0) into which the 286 values will be copied when the current routine exits. Next, they can be used to perform 287 the interpolation without computing again those 2 parameters. This greatly 288 speed-up the interpolation! In that case, lonin, latin, lonout and latout are not necessary. 289 In that case, method, lonin, latin, are not used (but are necessary). 290 lonout, latout are used only to know the output domain size 289 291 </div> 290 292 … … 293 295 <h3>Examples</h3><div class="preformat"> 294 296 297 To interpolate 1 field: 298 295 299 IDL> tncep = fromirr('bilinear', topa, glamt, gphit, tmask[*,*,0], lonout, latout, mskout) 296 300 297 or 301 or if you have several fields to interpolate from the same source and target grids 302 303 1) get back the weights and addresses in variables a and b 304 (that must be undefined or equal to 0 before calling fromirr) 298 305 299 306 IDL> t1ncep = fromirr('bilinear', topa, glamt, gphit, tmask[*,*,0], lonout, latout, mskout $ 300 307 , WEIG = a, ADDR = b) 301 308 IDL> help, a, b 309 310 2) use a and b that are now defined to bypass the computation of the weights and addresses 311 and speed-up the computation! 312 302 313 IDL> t2ncep = fromirr('bilinear', topa, WEIG = a, ADDR = b) 303 314 </div> 304 315 <h3>Version history</h3> 305 316 306 <h4>Version</h4><div class="preformat"> $Id: fromirr.pro 205 2007-01-22 07:55:49Z smasson $ 317 <h4>Version</h4><div class="preformat"> 318 $Id: fromirr.pro 231 2007-03-19 17:15:51Z pinsard $ 307 319 </div> 308 320 <h4>History</h4><div class="preformat">
Note: See TracChangeset
for help on using the changeset viewer.