Changeset 101 for trunk/SRC/Interpolation/fromreg.pro
- Timestamp:
- 06/12/06 10:29:56 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Interpolation/fromreg.pro
r69 r101 1 1 ;+ 2 ; NAME: fromreg3 2 ; 4 ; PURPOSE:interpolate data from a "regular/rectangular grid" to any grid.3 ; @file_comments interpolate data from a "regular/rectangular grid" to any grid. 5 4 ; 2 metods availables: bilinear and imoms3 6 5 ; A "regular/rectangular grid" is defined as a grid for which each lontitudes lines have 7 6 ; the same latitude and each latitudes columns have the same longitude. 8 7 ; 9 ; CATEGORY:interpolation8 ; @categories interpolation 10 9 ; 11 ; CALLING SEQUENCE: dataout = fromreg(method, datain [, lonin, latin, lonout, latout]) 10 ; @examples 11 ; dataout = fromreg(method, datain [, lonin, latin, lonout, latout]) 12 12 ; 13 ; INPUTS: 14 ; method: a string defining the interpolation method. 13 ; @param method {in}{required} a string defining the interpolation method. 15 14 ; must be 'bilinear' or 'imoms3' 16 ; datain:a 2D array the input data to interpolate17 ; lonin and latin:longitude/latitude of the input data. optionals if15 ; @param datain {in}{required} a 2D array the input data to interpolate 16 ; @param lonin latin {in}{required} longitude/latitude of the input data. optionals if 18 17 ; WEIG and ADDR keywords used. 19 ; lonout and latout:longitude/latitude of the output data. optionals if18 ; @param lonout latout {in}{required} longitude/latitude of the output data. optionals if 20 19 ; WEIG and ADDR keywords used. 21 20 ; 22 ; KEYWORD PARAMETERS: 23 ; 24 ; WEIG, ADDR: 2D arrays, weig and addr are the weight and addresses used to 21 ; @keyword WEIG, ADDR 2D arrays, weig and addr are the weight and addresses used to 25 22 ; perform the interpolation: 26 23 ; dataout = total(weig*datain[addr], 1) … … 31 28 ; case, lonin, latin, lonout and latout are not necessary. 32 29 ; 33 ; /NONORTHERNLINE and /NOSOUTHERNLINE:activate if you don't whant to take into30 ; @keyword /NONORTHERNLINE and /NOSOUTHERNLINE activate if you don't whant to take into 34 31 ; account the northen/southern line of the input data when perfoming the 35 32 ; interpolation. 36 33 ; 37 ; OUTPUTS:2D array: the interpolated data34 ; @returns 2D array: the interpolated data 38 35 ; 39 ; COMMON BLOCKS: none 36 ; @restrictions We supposed the data are located on a sphere, with a 37 ; periodicity along the longitude. 40 38 ; 41 ; SIDE EFFECTS: ? 42 ; 43 ; RESTRICTIONS:We supposed the data are located on a sphere, with a periodicity along 44 ; the longitude. 45 ; 46 ; EXAMPLE: 39 ; @examples 47 40 ; 48 41 ; topa = fromreg('bilinear', tncep, xncep, yncep, glamt, gphit) … … 54 47 ; t2opa = fromreg('bilinear', t2ncep, xncep, WEIG = a, ADDR = b) 55 48 ; 56 ; MODIFICATION HISTORY:57 ; November 2005: Sebastien Masson (smasson @lodyc.jussieu.fr)49 ; @history 50 ; November 2005: Sebastien Masson (smasson\@lodyc.jussieu.fr) 58 51 ; 59 52 ;-
Note: See TracChangeset
for help on using the changeset viewer.