source: trunk/SRC/Documentation/idldoc_html_output/Obsolete/extrait.html @ 402

Last change on this file since 402 was 402, checked in by smasson, 15 years ago

update documentation

File size: 6.4 KB
Line 
1
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
5<!-- Generated by IDLdoc 2.0 -->
6
7<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
8  <head>
9    <title>extrait.pro (SAXO Documentation)</title>
10
11   
12    <link rel="stylesheet" type="text/css" media="all" href="./../main_files.css" />
13    <link rel="stylesheet" type="text/css" media="print" href="./../main_files_print.css" />
14   
15
16    <script type="text/javascript">
17      function setTitle() {
18        parent.document.title="extrait.pro (SAXO Documentation)";
19      }
20    </script>
21  </head>
22
23  <body onload="setTitle();">
24
25    <div id="navbar_title">
26  <h1>SAXO Documentation</h1>
27</div>
28
29
30<div id="main_navbar">
31
32  <table cellspacing="0">
33    <tr>
34     
35      <td><a href="./../overview.html" title="Overview of library">Overview</a></td>
36     
37
38     
39      <td >Directory</td>
40     
41
42     
43      <td><a href="./../idldoc-categories.html" title="Browse library by category">Categories</a></td>
44     
45
46     
47      <td><a href="./../idldoc-index.html" title="Index of files, routines, and parameters">Index</a></td>
48     
49
50     
51      <td><a href="./../search-page.html" title="Search library">Search</a></td>
52     
53
54      <td id="selected">File</td>
55
56     
57      <td><a href="../../../Obsolete//extrait.pro" title="Source code of a file">Source</a></td>
58     
59
60     
61      <td><a href="./../idldoc-help.html" title="Help on IDLdoc">Help</a></td>
62     
63
64      <td >Etc</td>
65
66      <td id="flexible">Developer&nbsp;documentation</td>
67    </tr>
68  </table>
69
70</div>
71
72<div id="secondary_navbar">
73
74<a href="cp.html">&lt;&lt;prev file</a> | <a href="ficdate.html">next file &gt;&gt;</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="extrait.html" target="_TOP">view single page</a> | <a href="./../index.html" target="_TOP">view frames</a>&nbsp;&nbsp;&nbsp;&nbsp;summary: fields | routine&nbsp;&nbsp;&nbsp;&nbsp;details: <a href="#routine_details">routine</a>
75
76</div>
77
78
79    <div id="container">
80
81      <h1 class="directory"><a href="directory-overview.html">Obsolete/</a></h1>
82      <h2 class="pro_file">extrait.pro</h2>
83
84      <div id="file_attr">
85        <dl>
86        </dl>
87      </div>
88
89      <div id="file_comments">
90 extraction of subdomains of matrices;
91 Even if the subdomain is "pierced" (see the example)
92 By default, IDL can make extractions of subdomain:
93
94   IDL> a=indgen(5,5)
95   IDL> print, a
96             0       1       2       3       4
97             5       6       7       8       9
98            10      11      12      13      14
99            15      16      17      18      19
100            20      21      22      23      24
101   IDL> print, a[[0,2],3]
102            15      17
103   IDL> print, a[[0,2],*]
104             0       2
105             5       7
106            10      12
107            15      17
108            20      22
109 but
110   IDL> print, a[[0,2],[3,4]]
111            15      22
112 while
113   IDL> print, extrait(a,[0,2],[3,4])
114            15      17
115            20      22
116
117
118 you better use extrac2
119</div>
120
121     
122
123     
124
125     
126
127     
128
129      <div id="routine_details">
130       
131
132        <div class="routine_details" id="_extrait">
133
134          <h2><a class="top" href="#container">top</a>extrait <span class="warning">obsolete</span> <span class="categories">
135 Utilities
136</span></h2>
137       
138          <p class="header">
139            <span class="result">result = </span>extrait(<span class="result"><a href="#_extrait_param_tab">tab</a>, <a href="#_extrait_param_indicex">indicex</a>, <a href="#_extrait_param_indicey">indicey</a>, <a href="#_extrait_param_indicez">indicez</a>, <a href="#_extrait_param_indicet">indicet</a></span>)</p>
140       
141          <div class="comments">
142</div>
143
144          <h3>Return value</h3><div class="preformat">
145 a matrix 1d, 2d, 3d or 4d extract from tab
146 -1 in case of mistake
147</div>
148
149         
150            <h3>Parameters</h3>
151       
152           
153            <h4 id="_extrait_param_tab">tab&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
154              <span class="attr">in</span>
155             
156             
157              <span class="attr">required</span>
158             
159             
160             
161             
162            </h4>
163       
164          <div class="comments">
165 a 1d, 2d, 3d or 4d table
166</div>
167           
168            <h4 id="_extrait_param_indicex">indicex&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
169              <span class="attr">in</span>
170             
171             
172              <span class="attr">required</span>
173             
174             
175             
176             
177            </h4>
178       
179          <div class="comments">
180 can have 2 forms:
181 1)a vector containing indexes of lines we want to keep
182 2)the string '*' if we want to keep all lines.
183</div>
184           
185            <h4 id="_extrait_param_indicey">indicey&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
186              <span class="attr">in</span>
187             
188             
189              <span class="attr">required</span>
190             
191             
192             
193             
194            </h4>
195       
196          <div class="comments">
197 the same thing that indicex but for dim 2.
198</div>
199           
200            <h4 id="_extrait_param_indicez">indicez&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
201              <span class="attr">in</span>
202             
203             
204              <span class="attr">required</span>
205             
206             
207             
208             
209            </h4>
210       
211          <div class="comments">
212 the same thing that indicex but for dim 3.
213</div>
214           
215            <h4 id="_extrait_param_indicet">indicet&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
216              <span class="attr">in</span>
217             
218             
219              <span class="attr">required</span>
220             
221             
222             
223             
224            </h4>
225       
226          <div class="comments">
227 the same thing that indicex but for dim 4.
228</div>
229           
230
231         
232
233         
234
235          <h3>Examples</h3><div class="preformat">
236 I have a dim 2 matrix named A. I want extract a small intersection
237 matrix 2d of the line 2,3 and 7 and of the column 0 and 1:
238
239   IDL> res=extrait(A,[2,3,7],[0,1])
240
241 other ex:
242   IDL> print, a
243 a b c
244 d e f
245 g h i
246   IDL> print, extrait(a,[0,2],[0,2])
247 a c
248 g i
249</div>
250          <h3>Version history</h3>
251         
252          <h4>Version</h4><div class="preformat">
253 $Id: extrait.pro 378 2008-08-12 12:35:46Z pinsard $
254</div>
255          <h4>History</h4><div class="preformat">
256 Sebastien Masson (smasson@lodyc.jussieu.fr)
257 12/1/1999
258 29/4/1999: correction of a bug and complement of the heading
259</div>
260         
261         
262          <h3>Known issues</h3>
263          <h4>Obsolete</h4><div class="preformat">
264</div>
265         
266         
267         
268       
269         
270         
271         
272         
273         
274         
275         
276       
277          <h3>Statistics</h3>
278          <table class="statistics">
279            <tr><td>McCabe cyclic</td><td>           7</td></tr>
280            <tr><td>McCabe essential</td><td>           1</td></tr>
281            <tr><td>McCabe modular design</td><td>           1</td></tr>
282          </table>
283         
284       
285        </div>
286       
287      </div>
288
289     
290
291      <div id="tagline">Produced by IDLdoc 2.0.</div>
292
293    </div>
294
295  </body>
296</html>
Note: See TracBrowser for help on using the repository browser.