Ignore:
Timestamp:
06/19/06 15:20:37 (18 years ago)
Author:
smasson
Message:

bugfix in fromirr and fromreg + add full path to call IDL in save saxo

Location:
trunk/SRC/Interpolation
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Interpolation/fromirr.pro

    r110 r113  
    1111;    @param method: {in}{required} a string defining the interpolation method. must be 'bilinear' 
    1212;    @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) 
    2319; 
    2420; @keyword WEIG (see ADDR) 
    25 ; @keyword ADDR: 2D arrays, weig and addr are the weight and addresses used to 
     21; @keyword ADDR 2D arrays, weig and addr are the weight and addresses used to 
    2622;     perform the interpolation: 
    2723;          dataout = total(weig*datain[addr], 1) 
    2824;          dataout = reform(dataout, jpio, jpjo, /over) 
    29 ;     Those keywords can be set to named variables into which the values will be 
    30 ;     copied when the current routine exits. Next, they can be used to perform 
     25;     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 
    3127;     the interpolation whithout computing again those 2 parameters. This greatly 
    3228;     speed-up the interpolation! In that case, lonin, latin, lonout and latout are not necessary. 
     
    6258  compile_opt strictarr, strictarrsubs  
    6359; 
    64   IF NOT (keyword_set(weig) AND keyword_set(addr)) THEN BEGIN 
    6560;--------------- 
    6661; atmospheric grid parameters 
     
    7873; Compute weight and address 
    7974;--------------- 
     75  IF NOT (keyword_set(weig) AND keyword_set(addr)) THEN BEGIN 
    8076    CASE method OF 
    8177      'bilinear':compute_fromirr_bilinear_weigaddr, alon, alat, mskin, olon, olat, mskout, weig, addr 
  • trunk/SRC/Interpolation/fromreg.pro

    r110 r113  
    1414;            must be 'bilinear' or 'imoms3' 
    1515;    @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 
    2420; 
    2521; @keyword     WEIG (see ADDR) 
     
    2824;          dataout = total(weig*datain[addr], 1) 
    2925;          dataout = reform(dataout, jpio, jpjo, /over) 
    30 ;     Those keywords can be set to named variables into which the values will be 
    31 ;     copied when the current routine exits. Next, they can be used to perform 
     26;     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 
    3228;     the interpolation whithout computing again those 2 parameters. In that 
    3329;     case, lonin, latin, lonout and latout are not necessary. 
     
    6662  compile_opt strictarr, strictarrsubs  
    6763; 
    68   IF NOT (keyword_set(weig) AND keyword_set(addr)) THEN BEGIN 
    6964;--------------- 
    7065; atmospheric grid parameters 
     
    8277; Compute weight and address 
    8378;--------------- 
     79  IF NOT (keyword_set(weig) AND keyword_set(addr)) THEN BEGIN 
    8480    CASE method OF 
    8581      '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.