Changeset 152 for trunk/SRC/Obsolete


Ignore:
Timestamp:
08/10/06 09:01:35 (18 years ago)
Author:
smasson
Message:

introduce pltv.pro

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Obsolete/congridseb.pro

    r151 r152  
    44;+ 
    55; @file_comments 
    6 ; Like congrid but here, it works... 
    7 ;        example: 
     6; 
     7; Used to avoid a bug in congrid in a old version of IDL 
     8; Useless now... 
     9; 
     10; old example: based on a old version of IDL (5.??) 
    811; IDL> print, congrid([[1,2,3,4],[5,6,7,8]],12,4) 
    912;       1 1 1 2 2 2 3 3 3 3 4 4 
     
    2225;       5 5 5 6 6 6 7 7 7 8 8 8 
    2326; 
    24 ; @categories utilities 
     27; @obsolete 
    2528; 
    26 ; @param tableau {in}{required} 
    27 ; A table 1 ou 2d 
     29; @param arr {in}{required} 
     30; 1 or 2d array 
    2831; 
    2932; @param x {in}{required} 
    30 ; dimension in x of the result which must be 
    31 ; a multiple of the dimension in x of the table. 
     33; first dimension of the result which must be 
     34; a multiple of the first dimension of the input array. 
    3235; 
    3336; @param y {in}{required} 
    34 ; dimension in y of the result which must be 
    35 ; a multiple of the dimension in y of the table. 
     37; second dimension of the result which must be 
     38; a multiple of the second dimension of the input array 
    3639; 
    3740; @returns 
    38 ; a table dim x * y 
     41; an array which dimensions are x,y 
    3942; 
    4043; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) 
     
    5255  compile_opt idl2, strictarrsubs 
    5356; 
    54    res=tableau 
    55    taille = size(tableau) 
    5657   CASE N_PARAMS() OF 
    57       2: begin 
    58          res=replicate(1,1.*x/taille[1])#res[*] 
    59          return, res[*] 
    60       end 
    61       3: begin 
    62          res = transpose(res) 
    63          res = replicate(1, 1.*y/taille[2])#res[*] 
    64          res = reform(res, y, taille[1], /over) 
    65          res = transpose(res) 
    66          res = replicate(1, 1.*x/taille[1])#res[*] 
    67         return, reform(res, x,y, /overwrite) 
    68       end 
    69       else: return, report('Mauvais nombre de parametre dans l''appel de CONGRIDSEB') 
     58      2: return, congrid(tableau, x) 
     59      3:return, congrid(tableau, x, y) 
     60      else: return, report('Bad number or arguments in the call of congridseb') 
    7061   endcase 
    7162end 
Note: See TracChangeset for help on using the changeset viewer.