- Timestamp:
- 07/23/09 11:18:49 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Documentation/idldoc_html_output/Interpolation/fromreg.html
r338 r402 89 89 <div id="file_comments"> 90 90 interpolate data from a "regular/rectangular grid" to any grid. 91 2 methods available: bilinear and imoms3 92 A "regular/rectangular grid" is defined as a grid for which 93 each longitude lines have the same latitude and each latitude columns 91 92 2 methods available: bilinear and imoms3 93 94 A "regular/rectangular grid" is defined as a grid for which 95 96 Each longitude lines have the same latitude and each latitude columns 94 97 have the same longitude. 95 98 </div> … … 259 262 dataout = total(weig*datain[addr], 1) 260 263 dataout = reform(dataout, jpio, jpjo, /over) 264 261 265 In that case, method, lonin, latin, are not used (but are necessary). 262 266 lonout, latout are used only to know the output domain size … … 315 319 To interpolate 1 field: 316 320 317 IDL> topa = fromreg('bilinear', tncep, xncep, yncep, glamt, gphit)321 IDL> topa = fromreg('bilinear', tncep, xncep, yncep, glamt, gphit) 318 322 319 323 or if you have several fields to interpolate from the same source and target grids … … 322 326 (that must be undefined or equal to 0 before calling fromreg 323 327 324 IDL> t1opa = fromreg('bilinear', t1ncep, xncep, yncep, glamt, gphit, WEIG = a, ADDR = b)325 IDL> help, a, b328 IDL> t1opa = fromreg('bilinear', t1ncep, xncep, yncep, glamt, gphit, WEIG = a, ADDR = b) 329 IDL> help, a, b 326 330 327 331 2) use a and b that are now defined to bypass the computation of the weights and addresses 328 332 and speed-up the computation! 329 333 330 IDL> t2opa = fromreg('bilinear', t2ncep, xncep, yncep, glamt, gphit, WEIG = a, ADDR = b)334 IDL> t2opa = fromreg('bilinear', t2ncep, xncep, yncep, glamt, gphit, WEIG = a, ADDR = b) 331 335 </div> 332 336 <h3>Version history</h3> 333 337 334 338 <h4>Version</h4><div class="preformat"> 335 $Id: fromreg.pro 3 27 2007-12-13 16:22:35Z pinsard $339 $Id: fromreg.pro 372 2008-08-08 12:31:53Z pinsard $ 336 340 </div> 337 341 <h4>History</h4><div class="preformat">
Note: See TracChangeset
for help on using the changeset viewer.