Ignore:
Timestamp:
03/19/07 18:15:51 (17 years ago)
Author:
pinsard
Message:

improvements/corrections of some *.pro headers

File:
1 edited

Legend:

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

    r163 r231  
    1 ;------------------------------------------------------------ 
    2 ;------------------------------------------------------------ 
    3 ;------------------------------------------------------------ 
    41;+ 
    52; 
    6 ; @file_comments  
    7 ; extraction of subdomains of matrices;  
     3; @file_comments 
     4; extraction of subdomains of matrices; 
    85; Even if the subdomain is "pierced" (see the example) 
    96; By default, IDL can make extractions of subdomain: 
    107; 
    11 ;      IDL> a=indgen(5,5)  
    12 ;      IDL> print, a  
     8;      IDL> a=indgen(5,5) 
     9;      IDL> print, a 
    1310;             0       1       2       3       4 
    1411;             5       6       7       8       9 
     
    1613;            15      16      17      18      19 
    1714;            20      21      22      23      24 
    18 ;      IDL> print, a[[0,2],3]  
     15;      IDL> print, a[[0,2],3] 
    1916;            15      17 
    20 ;      IDL> print, a[[0,2],*]   
     17;      IDL> print, a[[0,2],*] 
    2118;             0       2 
    2219;             5       7 
     
    2522;            20      22 
    2623; but 
    27 ;      IDL> print, a[[0,2],[3,4]]  
     24;      IDL> print, a[[0,2],[3,4]] 
    2825;            15      22 
    2926; while 
    30 ;      IDL> print, extrait(a,[0,2],[3,4])   
     27;      IDL> print, extrait(a,[0,2],[3,4]) 
    3128;            15      17 
    3229;            20      22 
     
    3734; @obsolete 
    3835; 
    39 ; @categories  
     36; @categories 
    4037; Utilities 
    4138; 
    42 ; @param tab {in}{required}  
     39; @param tab {in}{required} 
    4340; a 1,2,3 or 4 dim table 
    4441; 
    45 ; @param indicex {in}{required}  
     42; @param indicex {in}{required} 
    4643; can have 2 forms: 
    4744; 1)a vector containing indexes of lines we want to keep 
    4845; 2)the string '*' if we want to keep all lines. 
    4946; 
    50 ; @param indicey {in}{required}  
     47; @param indicey {in}{required} 
    5148; the same thing that indicex but for dim 2. 
    5249; 
    53 ; @param indicez {in}{required}  
     50; @param indicez {in}{required} 
    5451; the same thing that indicex but for dim 3. 
    55 ;  
    56 ; @param indicet {in}{required}  
     52; 
     53; @param indicet {in}{required} 
    5754; the same thing that indicex but for dim 4. 
    5855; 
    59 ; @returns  
     56; @returns 
    6057; a matrix 1,2,3 or 4d extract from tab 
     58; -1 in case of mistake 
    6159; 
    62 ; @restrictions  
    63 ; res=-1 in case of mistake 
    64 ;  
    65 ; @examples  
    66 ; I have a dim 2 matrix named A. I want extract a small intersection  
     60; @examples 
     61; I have a dim 2 matrix named A. I want extract a small intersection 
    6762; matrix 2d of the line 2,3 and 7 and of the column 0 and 1: 
    68 ;       
     63; 
    6964; IDL> res=extrait(A,[2,3,7],[0,1]) 
    7065; 
    7166; other ex: 
    72 ; IDL> print, a  
     67; IDL> print, a 
    7368; a b c 
    7469; d e f 
    7570; g h i 
    76 ; IDL> print, extrait(a,[0,2],[0,2])         
     71; IDL> print, extrait(a,[0,2],[0,2]) 
    7772; a c 
    7873; g i 
    79 ;  
     74; 
    8075; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) 
    8176; 12/1/1999 
     
    8580; 
    8681;- 
    87 ;------------------------------------------------------------ 
    88 ;------------------------------------------------------------ 
    89 ;------------------------------------------------------------ 
     82; 
    9083FUNCTION extrait, tab, indicex, indicey, indicez, indicet 
    91 ;------------------------------------------------------------ 
    9284; 
    9385  compile_opt idl2, strictarrsubs 
Note: See TracChangeset for help on using the changeset viewer.