Changeset 136 for trunk/SRC/Interpolation/fromreg.pro
- Timestamp:
- 07/10/06 17:20:19 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Interpolation/fromreg.pro
r134 r136 1 1 ;+ 2 2 ; 3 ; @file_comments 3 ; @file_comments 4 4 ; interpolate data from a "regular/rectangular grid" to any grid. 5 5 ; 2 methods availables: bilinear and imoms3 … … 9 9 ; @categories interpolation 10 10 ; 11 ; @param method {in}{required} a string defining the interpolation method. 12 ; must be 'bilinear' or 'imoms3' 13 ; @param datain {in}{required} a 2D array the input data to interpolate 14 ; @param lonin {in}{optional} 1D or 2D array defining the longitude of the input data 15 ; @param latin {in}{optional} 1D or 2D array defining the latitude of the input data 16 ; @param lonout {in}{optional} 1D or 2D array defining the longitude of the output data 17 ; @param latout {in}{required} 1D or 2D array defining the latitude of the output data 11 ; @param method {in}{required} 12 ; a string defining the interpolation method. 13 ; must be 'bilinear' or 'imoms3' 14 ; 15 ; @param datain {in}{required} 16 ; a 2D array the input data to interpolate 17 ; 18 ; @param lonin {in}{optional} 19 ; 1D or 2D array defining the longitude of the input data 20 ; 21 ; @param latin {in}{optional} 22 ; 1D or 2D array defining the latitude of the input data 23 ; 24 ; @param lonout {in}{optional} 25 ; 1D or 2D array defining the longitude of the output data 26 ; 27 ; @param latout {in}{required} 28 ; 1D or 2D array defining the latitude of the output data 18 29 ; 19 30 ; @keyword WEIG (see ADDR) 20 31 ; @keyword ADDR 2D arrays, weig and addr are the weight and addresses used to 21 ; 32 ; perform the interpolation: 22 33 ; dataout = total(weig*datain[addr], 1) 23 34 ; dataout = reform(dataout, jpio, jpjo, /over) 24 ; 25 ; 26 ; 27 ; 35 ; Those keywords can be set to named variables (that are undefined or equal to 0) into which the 36 ; values will be copied when the current routine exits. Next, they can be used to perform 37 ; the interpolation whithout computing again those 2 parameters. In that 38 ; case, lonin, latin, lonout and latout are not necessary. 28 39 ; 29 40 ; @keyword NONORTHERNLINE … … 32 43 ; of the input data when perfoming the interpolation. 33 44 ; 34 ; @returns 2D array the interpolated data 45 ; @returns 46 ; 2D array the interpolated data 35 47 ; 36 48 ; @restrictions
Note: See TracChangeset
for help on using the changeset viewer.