source: trunk/SRC/Documentation/idldoc_html_output/Matrix/extrac2.html @ 378

Last change on this file since 378 was 338, checked in by smasson, 16 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>extrac2.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="extrac2.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="../../../Matrix//extrac2.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="different.html">&lt;&lt;prev file</a> | <a href="inter.html">next file &gt;&gt;</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="extrac2.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">Matrix/</a></h1>
82      <h2 class="pro_file">extrac2.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, extrac2(a,[0,2],[3,4])
114            15      17
115            20      22
116</div>
117
118     
119
120     
121
122     
123
124     
125
126      <div id="routine_details">
127       
128
129        <div class="routine_details" id="_extrac2">
130
131          <h2><a class="top" href="#container">top</a>extrac2 <span class="categories">
132 Utilities
133</span></h2>
134       
135          <p class="header">
136            <span class="result">result = </span>extrac2(<span class="result"><a href="#_extrac2_param_array">array</a>, <a href="#_extrac2_param_index1">index1</a>, <a href="#_extrac2_param_index2">index2</a>, <a href="#_extrac2_param_index3">index3</a>, <a href="#_extrac2_param_index4">index4</a></span>)</p>
137       
138          <div class="comments">
139</div>
140
141          <h3>Return value</h3><div class="preformat">
142 a matrix 1,2,3 or 4d extract from input array
143 -1 in case of mistake
144</div>
145
146         
147            <h3>Parameters</h3>
148       
149           
150            <h4 id="_extrac2_param_array">array&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
151              <span class="attr">in</span>
152             
153             
154              <span class="attr">required</span>
155             
156             
157             
158             
159            </h4>
160       
161          <div class="comments">
162 a 1,2,3 or 4 dim input array
163</div>
164           
165            <h4 id="_extrac2_param_index1">index1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
166              <span class="attr">in</span>
167             
168             
169              <span class="attr">required</span>
170             
171             
172             
173             
174            </h4>
175       
176          <div class="comments">
177 can have 2 forms:
178 1)a vector containing indexes of lines we want to keep
179 2)the string '*' if we want to keep all lines.
180</div>
181           
182            <h4 id="_extrac2_param_index2">index2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
183              <span class="attr">in</span>
184             
185             
186              <span class="attr">required</span>
187             
188             
189             
190             
191            </h4>
192       
193          <div class="comments">
194 the same thing that index1 but for dim 2.
195</div>
196           
197            <h4 id="_extrac2_param_index3">index3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
198              <span class="attr">in</span>
199             
200             
201              <span class="attr">required</span>
202             
203             
204             
205             
206            </h4>
207       
208          <div class="comments">
209 the same thing that index1 but for dim 3.
210</div>
211           
212            <h4 id="_extrac2_param_index4">index4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
213              <span class="attr">in</span>
214             
215             
216              <span class="attr">required</span>
217             
218             
219             
220             
221            </h4>
222       
223          <div class="comments">
224 the same thing that index1 but for dim 4.
225</div>
226           
227
228         
229
230         
231
232          <h3>Examples</h3><div class="preformat">
233 I have a dim 2 matrix named A. I want extract a small intersection
234 matrix 2d of the line 2,3 and 7 and of the column 0 and 1:
235
236 IDL> res=extrac2(A,[2,3,7],[0,1])
237
238 other ex:
239 IDL> print, a
240 a b c
241 d e f
242 g h i
243 IDL> print, extrac2(a,[0,2],[0,2])
244 a c
245 g i
246</div>
247          <h3>Version history</h3>
248         
249          <h4>Version</h4><div class="preformat">
250 $Id: extrac2.pro 325 2007-12-06 10:04:53Z pinsard $
251</div>
252          <h4>History</h4><div class="preformat">
253 Sebastien Masson (smasson@lodyc.jussieu.fr)
254                       12/1/1999
255                       29/4/1999: correction of a bug and complement of the heading
256</div>
257         
258         
259          <h3>Known issues</h3>
260         
261         
262         
263          <h4>Restrictions</h4><div class="preformat">
264</div>
265       
266         
267         
268         
269         
270         
271         
272         
273       
274          <h3>Statistics</h3>
275          <table class="statistics">
276            <tr><td>McCabe cyclic</td><td>          14</td></tr>
277            <tr><td>McCabe essential</td><td>           1</td></tr>
278            <tr><td>McCabe modular design</td><td>           1</td></tr>
279          </table>
280         
281       
282        </div>
283       
284      </div>
285
286     
287
288      <div id="tagline">Produced by IDLdoc 2.0.</div>
289
290    </div>
291
292  </body>
293</html>
Note: See TracBrowser for help on using the repository browser.