Changeset 136 for trunk/SRC/Obsolete
- Timestamp:
- 07/10/06 17:20:19 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Obsolete/extrait.pro
r134 r136 4 4 ;+ 5 5 ; 6 ; @fie-comments 7 ; extractoin of subdomains of matrixes; Even if the subdomain is "pierced" (see the example) 6 ; @file_comments 7 ; extraction of subdomains of matrixes; 8 ; Even if the subdomain is "pierced" (see the example) 8 9 ; By default, IDL can make extractions of subdomain: 9 10 ; … … 38 39 ; @categories utilities 39 40 ; 40 ; @param tab {in}{required} a 1,2,3 or 4 dim table 41 ; @param tab {in}{required} 42 ; a 1,2,3 or 4 dim table 41 43 ; 42 ; @param indicex {in}{required} can have 2 forms: 43 ; 1)a vector containing indexes of lines we want to keep 44 ; 2)the string '*' if we want to keep all lines. 44 ; @param indicex {in}{required} 45 ; can have 2 forms: 46 ; 1)a vector containing indexes of lines we want to keep 47 ; 2)the string '*' if we want to keep all lines. 45 48 ; 46 ; @param indicey {in}{required} the same thing that indicex but for dim 2. 49 ; @param indicey {in}{required} 50 ; the same thing that indicex but for dim 2. 47 51 ; 48 ; @param indicez {in}{required} the same thing that indicex but for dim 3. 52 ; @param indicez {in}{required} 53 ; the same thing that indicex but for dim 3. 49 54 ; 50 ; @param indicet {in}{required} the same thing that indicex but for dim 4. 55 ; @param indicet {in}{required} 56 ; the same thing that indicex but for dim 4. 51 57 ; 52 ; @returns a matrix 1,2,3 or 4d extract from tab 58 ; @returns 59 ; a matrix 1,2,3 or 4d extract from tab 53 60 ; 54 ; @restrictions res=-1 in case of mistake 61 ; @restrictions 62 ; res=-1 in case of mistake 63 ; 64 ; @examples 65 ; I have a dim 2 matrix named A. I want extract a small intersection 66 ; matrix 2d of the line 2,3 and 7 and of the column 0 and 1: 67 ; 68 ; IDL> res=extrait(A,[2,3,7],[0,1]) 55 69 ; 70 ; other ex: 71 ; IDL> print, a 72 ; a b c 73 ; d e f 74 ; g h i 75 ; IDL> print, extrait(a,[0,2],[0,2]) 76 ; a c 77 ; g i 56 78 ; 57 ; @examples I have a dim 2 matrix named A. I want extract a small intersection 58 ; matrix 2d of the line 2,3 and 7 and of the column 0 and 1: 59 ; 60 ; res=extrait(A,[2,3,7],[0,1]) 61 ; 62 ;other ex: 63 ; IDL> print, a 64 ; a b c 65 ; d e f 66 ; g h i 67 ; IDL> print, extrait(a,[0,2],[0,2]) 68 ; a c 69 ; g i 70 ; 71 ; @history Sebastien Masson (smasson@lodyc.jussieu.fr) 72 ; 12/1/1999 73 ; 29/4/1999: correction of a bug and complement of the heading 79 ; @history Sebastien Masson (smasson\@lodyc.jussieu.fr) 80 ; 12/1/1999 81 ; 29/4/1999: correction of a bug and complement of the heading 74 82 ; 75 83 ; @version $Id$
Note: See TracChangeset
for help on using the changeset viewer.