source: trunk/SRC/Documentation/idldoc_assistant_output/ToBeReviewed/STRUCTURE/where_tag.html @ 402

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

update documentation

File size: 5.5 KB
Line 
1
2
3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4  <head>
5    <title>where_tag.pro (SAXO Documentation Assistant)</title>
6  </head>
7
8  <body text="#000000" bgcolor="#FFFFFF">
9
10   
11<!-- Navbar template takes a structure with the following fields:
12       overview_href :
13       overview_selected :
14       dir_overview_href :
15       dir_overview_selected :
16       categories_href :
17       categories_selected :
18       index_href :
19       index_selected :
20       search_href :
21       search_selected :
22       file_selected :
23       source_href :
24       source_selected :
25       help_href :
26       help_selected :
27       etc_selected :
28
29       prev_file_href :
30       next_file_href :
31
32       view_single_page_href :
33       view_frames_href :
34
35       summary_fields_href :
36       summary_routine_href :
37       details_routine_href :
38
39       title :
40       subtitle :
41       user :
42-->
43
44
45<table border="0" cellpadding="0" cellspacing="0" width="98%" bgcolor="#F0F0FF" valign="bottom">
46  <tr>
47    <td width="10%">
48<a href="struct2string.html"><img src="./../../prev.gif" border="0" alt="Previous"></a></td>
49    <td width="80%" align="center" valign="center">
50<font size=-1><i>SAXO Documentation Assistant</i>: <a href="./../../home.html">Overview</a></font></td>
51    <td width="10%" align="right">
52<a href=""><img src="./../../next.gif" border="0" alt="Next"></a></td>
53  </tr>
54</table>
55
56
57    <h1><font size="-2">ToBeReviewed/STRUCTURE/</font></h1>
58    <h2>where_tag.pro</h2>
59
60    <dl>
61    </dl>
62
63   
64 Like <a href="/Applications/itt/idl64/help/online_help/WHERE.html">WHERE</a> but works on structure tag names
65
66 Obtain subscripts of elements in structure array for which
67 a particular Tag has values in a range or matching specified values.
68
69 Like the <a href="/Applications/itt/idl64/help/online_help/WHERE.html">WHERE</a> function but for use with structures
70 
71
72   
73
74     
75      <a name="#_where_tag"></a>
76
77      <h2>where_tag  <font size="-1" color="#006633">
78 Structure
79</font></h2>
80
81      <p><font face="Courier"><i>result = </i>where_tag(<i><a href="#_where_tag_keyword_Struct">Struct</a>, <a href="#_where_tag_keyword_Nfound">Nfound</a></i>, <a href="#_where_tag_keyword_TAG_NAME">TAG_NAME</a>=<i>TAG_NAME</i>, <a href="#_where_tag_keyword_TAG_NUMBER">TAG_NUMBER</a>=<i>TAG_NUMBER</i>, <a href="#_where_tag_keyword_ISELECT">ISELECT</a>=<i>ISELECT</i>, <a href="#_where_tag_keyword_NOPRINT">NOPRINT</a>=<i>NOPRINT</i>, <a href="#_where_tag_keyword_RANGE">RANGE</a>=<i>RANGE</i>, <a href="#_where_tag_keyword_VALUES">VALUES</a>=<i>VALUES</i>)</font></p>
82
83   
84
85
86    <h3>Return value</h3>
87 Nfound {out}
88 # of occurrences found.
89 
90
91   
92    <h3>Parameters</h3>
93   
94
95    <a name="#_where_tag_keyword_Struct"></a>
96    <h4>Struct&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
97      <font size="-1" color="#006633">in</font>
98     
99     
100      <font size="-1" color="#006633">required</font>
101     
102     
103     
104     
105    </h4>
106
107   
108 structure array to search.
109
110   
111
112    <a name="#_where_tag_keyword_Nfound"></a>
113    <h4>Nfound&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
114     
115     
116     
117     
118     
119     
120     
121     
122    </h4>
123
124   
125   
126   
127
128   
129    <h3>Keywords</h3>
130
131   
132    <a name="#_where_tag_keyword_TAG_NAME"></a>
133    <h4>TAG_NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
134     
135     
136     
137     
138     
139     
140     
141     
142    </h4>
143
144   
145 Scalar string specifying Tag Name
146 
147   
148    <a name="#_where_tag_keyword_TAG_NUMBER"></a>
149    <h4>TAG_NUMBER&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
150     
151     
152     
153     
154     
155     
156     
157     
158    </h4>
159
160   
161 Otherwise give the Tag Number
162 
163   
164    <a name="#_where_tag_keyword_ISELECT"></a>
165    <h4>ISELECT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
166     
167     
168     
169     
170     
171     
172     
173     
174    </h4>
175
176   
177 Specifies indices to select only part of structure array,
178 (use it to recycle subscripts from previous searches).
179 
180   
181    <a name="#_where_tag_keyword_NOPRINT"></a>
182    <h4>NOPRINT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
183     
184     
185     
186     
187     
188     
189     
190     
191    </h4>
192
193   
194 Suppress informational messages about nothing found.
195
196   
197    <a name="#_where_tag_keyword_RANGE"></a>
198    <h4>RANGE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
199     
200     
201     
202     
203     
204     
205     
206     
207    </h4>
208
209   
210 [min,max] range to search for in STRUCT
211 
212   
213    <a name="#_where_tag_keyword_VALUES"></a>
214    <h4>VALUES&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
215     
216     
217     
218     
219     
220     
221     
222     
223    </h4>
224
225   
226 One or array of numbers to match for in STRUCT
227 
228   
229   
230
231    <h3>Examples</h3><pre>
232
233 Suppose STR is a structure with tags CAT_NO:indgen(10), and
234 NAME:strarr(10). Find the indices where STR.CAT_NO is between 3 and 5.
235
236   IDL> print, WHERE_TAG( str, TAG_NAME = 'CAT_NO', VALUE = [3,4,5] )
237 or
238   IDL> print, WHERE_TAG( str, TAG_NUM = 0, RANGE = [3,5])
239
240    </pre><h3>Version history</h3>
241   
242    <h4>Version</h4>
243 $Id: where_tag.pro 375 2008-08-08 15:55:40Z pinsard $
244 
245    <h4>History</h4>
246       written 1990 Frank Varosi STX @ NASA/GSFC
247       Stop printing "Tag <xxx> not found" with /NOPRINT, CD Pike 8-Jun-93
248
249   
250
251    <h3>Known issues</h3>
252   
253   
254   
255    <h4>Restrictions</h4>
256 User *must* specify (1) TAG_NAME or TAG_NUMBER to search, and (2)
257 the VALUES or RANGE to search on.
258
259
260   
261   
262   
263   
264   
265   
266   
267
268    <font size="-3"><p>&nbsp;</p></font>
269    <hr size="1" color="#CCCCCC"/>
270     
271
272   
273
274    <p><font color="gray" size="-3">&nbsp;&nbsp;Produced by IDLdoc 2.0.</font></p>
275
276  </body>
277</html>
Note: See TracBrowser for help on using the repository browser.