Changeset 125 for trunk/SRC/Interpolation/fromreg.pro
- Timestamp:
- 07/06/06 16:10:25 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Interpolation/fromreg.pro
r121 r125 1 1 ;+ 2 2 ; 3 ; @file_comments interpolate data from a "regular/rectangular grid" to any grid. 4 ; 2 metods availables: bilinear and imoms3 5 ; A "regular/rectangular grid" is defined as a grid for which each lontitudes lines have 3 ; @file_comments 4 ; interpolate data from a "regular/rectangular grid" to any grid. 5 ; 2 methods availables: bilinear and imoms3 6 ; A "regular/rectangular grid" is defined as a grid for which each lontitudes lines have 6 7 ; the same latitude and each latitudes columns have the same longitude. 7 ; 8 ; 8 9 ; @categories interpolation 9 10 ; 10 ; @param method {in}{required} a string defining the interpolation method. 11 ; @param method {in}{required} a string defining the interpolation method. 11 12 ; must be 'bilinear' or 'imoms3' 12 13 ; @param datain {in}{required} a 2D array the input data to interpolate … … 26 27 ; case, lonin, latin, lonout and latout are not necessary. 27 28 ; 28 ; @keyword /NONORTHERNLINE29 ; @keyword /NOSOUTHERNLINE30 ; activate if you don't w hant to take into account the northen/southern line29 ; @keyword NONORTHERNLINE 30 ; @keyword NOSOUTHERNLINE 31 ; activate if you don't want to take into account the northen/southern line 31 32 ; of the input data when perfoming the interpolation. 32 33 ; 33 34 ; @returns 2D array the interpolated data 34 35 ; 35 ; @restrictions We supposed the data are located on a sphere, with a 36 ; periodicity along the longitude. 36 ; @restrictions 37 ; We supposed the data are located on a sphere, with a periodicity along the 38 ; longitude. 37 39 ; 38 ; @examples 39 ; 40 ; IDL> topa = fromreg('bilinear', tncep, xncep, yncep, glamt, gphit) 40 ; @examples 41 41 ; 42 ; or42 ; IDL> topa = fromreg('bilinear', tncep, xncep, yncep, glamt, gphit) 43 43 ; 44 ; IDL> t1opa = fromreg('bilinear', t1ncep, xncep, yncep, glamt, gphit, WEIG = a, ADDR = b) 45 ; IDL> help, a, b 46 ; IDL> t2opa = fromreg('bilinear', t2ncep, xncep, WEIG = a, ADDR = b) 44 ; or 45 ; 46 ; IDL> t1opa = fromreg('bilinear', t1ncep, xncep, yncep, glamt, gphit, WEIG = a, ADDR = b) 47 ; IDL> help, a, b 48 ; IDL> t2opa = fromreg('bilinear', t2ncep, xncep, WEIG = a, ADDR = b) 47 49 ; 48 50 ; @history 49 ; November 2005: Sebastien Masson (smasson\@lodyc.jussieu.fr) 51 ; November 2005: Sebastien Masson (smasson\@lodyc.jussieu.fr) 50 52 ; 51 53 ; @version $Id$ … … 60 62 , NOSOUTHERNLINE = nosouthernline 61 63 ; 62 compile_opt idl2, strictarrsubs 64 compile_opt idl2, strictarrsubs 63 65 ; 64 66 ;--------------- … … 81 83 'bilinear':compute_fromreg_bilinear_weigaddr, alon, alat, olon, olat, weig, addr, NONORTHERNLINE = nonorthernline, NOSOUTHERNLINE = nosouthernline 82 84 'imoms3': compute_fromreg_imoms3_weigaddr, alon, alat, olon, olat, weig, addr, NONORTHERNLINE = nonorthernline, NOSOUTHERNLINE = nosouthernline 83 ELSE:BEGIN 85 ELSE:BEGIN 84 86 print, ' unknown interpolation method... we stop' 85 87 stop
Note: See TracChangeset
for help on using the changeset viewer.