Changeset 163 for trunk/SRC/Interpolation/fromreg.pro
- Timestamp:
- 08/29/06 14:59:46 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Interpolation/fromreg.pro
r157 r163 3 3 ; @file_comments 4 4 ; interpolate data from a "regular/rectangular grid" to any grid. 5 ; 2 methods available s: bilinear and imoms36 ; A "regular/rectangular grid" is defined as a grid for which each lon titudes lines have5 ; 2 methods available: bilinear and imoms3 6 ; A "regular/rectangular grid" is defined as a grid for which each longitudes lines have 7 7 ; the same latitude and each latitudes columns have the same longitude. 8 8 ; … … 10 10 ; Interpolation 11 11 ; 12 ; @param method {in}{required} 12 ; @param method {in}{required}{type=string} 13 13 ; a string defining the interpolation method. 14 14 ; must be 'bilinear' or 'imoms3' 15 15 ; 16 ; @param datain {in}{required} 16 ; @param datain {in}{required}{type=2d array} 17 17 ; a 2D array the input data to interpolate 18 18 ; 19 ; @param lonin {in}{optional} 19 ; @param lonin {in}{optional}{type=1d or 2d array} 20 20 ; 1D or 2D array defining the longitude of the input data 21 21 ; 22 ; @param latin {in}{optional} 22 ; @param latin {in}{optional}{type=1d or 2d array} 23 23 ; 1D or 2D array defining the latitude of the input data 24 24 ; 25 ; @param lonout {in}{optional} 25 ; @param lonout {in}{optional}{type=1d or 2d array} 26 26 ; 1D or 2D array defining the longitude of the output data 27 27 ; 28 ; @param latout {in}{required} 28 ; @param latout {in}{required}{type=1d or 2d array} 29 29 ; 1D or 2D array defining the latitude of the output data 30 30 ; 31 ; @keyword WEIG (see ADDR) 32 ; @keyword ADDR 2D arrays, weig and addr are the weight and addresses used to 31 ; @keyword WEIG {type=2d array} 32 ; (see ADDR) 33 ; 34 ; @keyword ADDR {type=2d array} 35 ; 2D arrays, weig and addr are the weight and addresses used to 33 36 ; perform the interpolation: 34 37 ; dataout = total(weig*datain[addr], 1) … … 36 39 ; Those keywords can be set to named variables (that are undefined or equal to 0) into which the 37 40 ; values will be copied when the current routine exits. Next, they can be used to perform 38 ; the interpolation w hithout computing again those 2 parameters. In that41 ; the interpolation without computing again those 2 parameters. In that 39 42 ; case, lonin, latin, lonout and latout are not necessary. 40 43 ; 41 44 ; @keyword NONORTHERNLINE 45 ; activate if you don't want to take into account the northern line 46 ; of the input data when performing the interpolation. 47 ; 42 48 ; @keyword NOSOUTHERNLINE 43 ; activate if you don't want to take into account the northen/southern line44 ; of the input data when perfo ming the interpolation.49 ; activate if you don't want to take into account the southern line 50 ; of the input data when performing the interpolation. 45 51 ; 46 52 ; @returns
Note: See TracChangeset
for help on using the changeset viewer.