comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » How to do a "match merge"?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
How to do a "match merge"? [message #27598] Thu, 25 October 2001 12:37
Joe Means is currently offline  Joe Means
Messages: 44
Registered: November 1996
Member
<html><head></head><body>;I have a structure: <br>
<tt>segment = {seg:0, piece:0, rotation:0.0, length:0.0}<br>
segments = Replicate(segment, 2000)<br>
</tt><br>
;then I read data to fill array segments.&nbsp; For each segment there can be 1 or more values of piece,<br>
;so the data in segments can look like:<br>
<font face="Courier New, Courier, mono">segment &nbsp; piece &nbsp; rotation<br>
1 &nbsp;&nbsp; &nbsp; &nbsp; 1 &nbsp;&nbsp; &nbsp; &nbsp; 1.3<br>
1 &nbsp;&nbsp; &nbsp; &nbsp; 2 &nbsp;&nbsp; &nbsp; &nbsp; 5.7<br>
2 &nbsp;&nbsp; &nbsp; &nbsp; 1 &nbsp;&nbsp; &nbsp; &nbsp; 4.4<br>
2 &nbsp;&nbsp; &nbsp; &nbsp; 2 &nbsp;&nbsp; &nbsp; &nbsp; 3.4<br>
2 &nbsp;&nbsp; &nbsp; &nbsp; 3 &nbsp;&nbsp; &nbsp; &nbsp; 5.5<br>
......<br>
<br>
;then I calculate length for each segment and put those values in a vector
array whose index is equal to segment-1, so each length can be easily matched
to each segment.&nbsp; My question is can I effeciently match the length values
into the structure for each piece without looping?&nbsp; Statistical programming
languages like SAS have match-merge capabilities so this kind of thing is
simple, but I am not aware of similar capabilities in IDL.<br>
<br>
Thanks for any help.<br>
Joe<br>
</font><pre class="moz-signature"><font face="Courier New, Courier, mono">-- </font><br>Joseph E. Means<br>Assistant Professor, <a class="moz-txt-link-abbreviated" href="mailto:joe.means@orst.edu">joe.means@orst.edu</a><br>Department of Forest Science<br>Oregon State University<br>Corvallis, OR 97331-5752<br>541-750-7351</pre>
</body></html>
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Simple bug in IDL 5.4 compiler under Win2000
Next Topic: Beginner Question: Disappearing Info Structure/Motion Events

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 06:47:22 PDT 2025

Total time taken to generate the page: 0.39961 seconds