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

Home » Public Forums » archive » Re: Array matching?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Array matching? [message #50177 is a reply to message #50161] Thu, 14 September 2006 15:44 Go to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
For the 2nd time today, what about reading
http://www.dfanning.com/tips/histogram_tutorial.html

Jean

> match = where(hi eq lo)
> hits = hi[match]
> dat[hits] = (dat[hits -1] + dat[hits+1])/2.
>
> but I'm not sure how to compare two arrays in IDL to find the indices
> where the values in one array match the values in another array without
> using a for loop.
>
> Any clever ideas how to do this would be appreciated.
>
> --Greg
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: converting map projections using ENVI
Next Topic: Re: A new puzzle for histogram

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

Current Time: Mon Dec 01 16:14:46 PST 2025

Total time taken to generate the page: 0.23717 seconds