Changeset 113 for trunk/SRC/Interpolation
- Timestamp:
- 06/19/06 15:20:37 (18 years ago)
- Location:
- trunk/SRC/Interpolation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Interpolation/fromirr.pro
r110 r113 11 11 ; @param method: {in}{required} a string defining the interpolation method. must be 'bilinear' 12 12 ; @param datain: {in}{required} a 2D array the input data to interpolate 13 ; @param lonin: {in}{optional} a 2D array defining the longitude of the input data 14 ; optionals if WEIG and ADDR keywords used. 15 ; @param latin: {in}{optional} a 2D array defining the latitude of the input data. 16 ; optionals if WEIG and ADDR keywords used. 17 ; @param mskin: {in}{optional} a 2D array, the land-sea mask of the input data (1 on ocean, 0 on land) 18 ; @param lonout: {in}{optional} 1D or 2D array defining the longitude of the output data. 19 ; optionals if WEIG and ADDR keywords used. 20 ; @param latout: {in}{optional} 1D or 2D array defining the latitude of the output data. 21 ; optionals if WEIG and ADDR keywords used. 22 ; @param mskout: {in}{optional} a 2D array, the land-sea mask of the ouput data (1 on ocean, 0 on land) 13 ; @param lonin: {in}{required} a 2D array defining the longitude of the input data 14 ; @param latin: {in}{required} a 2D array defining the latitude of the input data. 15 ; @param mskin: {in}{required} a 2D array, the land-sea mask of the input data (1 on ocean, 0 on land) 16 ; @param lonout: {in}{required} 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. 18 ; @param mskout: {in}{required} a 2D array, the land-sea mask of the ouput data (1 on ocean, 0 on land) 23 19 ; 24 20 ; @keyword WEIG (see ADDR) 25 ; @keyword ADDR :2D arrays, weig and addr are the weight and addresses used to21 ; @keyword ADDR 2D arrays, weig and addr are the weight and addresses used to 26 22 ; perform the interpolation: 27 23 ; dataout = total(weig*datain[addr], 1) 28 24 ; dataout = reform(dataout, jpio, jpjo, /over) 29 ; Those keywords can be set to named variables into which the values will be30 ; copied when the current routine exits. Next, they can be used to perform25 ; Those keywords can be set to named variables (that are undefined or equal to 0) into which the 26 ; values will be copied when the current routine exits. Next, they can be used to perform 31 27 ; the interpolation whithout computing again those 2 parameters. This greatly 32 28 ; speed-up the interpolation! In that case, lonin, latin, lonout and latout are not necessary. … … 62 58 compile_opt strictarr, strictarrsubs 63 59 ; 64 IF NOT (keyword_set(weig) AND keyword_set(addr)) THEN BEGIN65 60 ;--------------- 66 61 ; atmospheric grid parameters … … 78 73 ; Compute weight and address 79 74 ;--------------- 75 IF NOT (keyword_set(weig) AND keyword_set(addr)) THEN BEGIN 80 76 CASE method OF 81 77 'bilinear':compute_fromirr_bilinear_weigaddr, alon, alat, mskin, olon, olat, mskout, weig, addr -
trunk/SRC/Interpolation/fromreg.pro
r110 r113 14 14 ; must be 'bilinear' or 'imoms3' 15 15 ; @param datain {in}{required} a 2D array the input data to interpolate 16 ; @param lonin {in}{optional} longitude of the input data. optionals if 17 ; WEIG and ADDR keywords used. 18 ; @param latin {in}{optional} latitude of the input data. optionals if 19 ; WEIG and ADDR keywords used. 20 ; @param lonout {in}{optional} longitude of the output data. optionals if 21 ; WEIG and ADDR keywords used. 22 ; @param lonout {in}{optional} latitude of the output data. optionals if 23 ; WEIG and ADDR keywords used. 16 ; @param lonin {in}{required} 1D or 2D array defining the longitude of the input data 17 ; @param latin {in}{required} 1D or 2D array defining the latitude of the input data 18 ; @param lonout {in}{required} 1D or 2D array defining the longitude of the output data 19 ; @param lonout {in}{required} 1D or 2D array defining the latitude of the output data 24 20 ; 25 21 ; @keyword WEIG (see ADDR) … … 28 24 ; dataout = total(weig*datain[addr], 1) 29 25 ; dataout = reform(dataout, jpio, jpjo, /over) 30 ; Those keywords can be set to named variables into which the values will be31 ; copied when the current routine exits. Next, they can be used to perform26 ; Those keywords can be set to named variables (that are undefined or equal to 0) into which the 27 ; values will be copied when the current routine exits. Next, they can be used to perform 32 28 ; the interpolation whithout computing again those 2 parameters. In that 33 29 ; case, lonin, latin, lonout and latout are not necessary. … … 66 62 compile_opt strictarr, strictarrsubs 67 63 ; 68 IF NOT (keyword_set(weig) AND keyword_set(addr)) THEN BEGIN69 64 ;--------------- 70 65 ; atmospheric grid parameters … … 82 77 ; Compute weight and address 83 78 ;--------------- 79 IF NOT (keyword_set(weig) AND keyword_set(addr)) THEN BEGIN 84 80 CASE method OF 85 81 'bilinear':compute_fromreg_bilinear_weigaddr, alon, alat, olon, olat, weig, addr, NONORTHERNLINE = nonorthernline, NOSOUTHERNLINE = nosouthernline
Note: See TracChangeset
for help on using the changeset viewer.