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 #50161 is a reply to message #50159] Fri, 15 September 2006 13:37 Go to previous messageGo to previous message
gknoke is currently offline  gknoke
Messages: 9
Registered: September 2006
Junior Member
Thanks for the tip. I'm still relatively new to IDL, I really had no
idea all the things histogram was capable of. Such an unassuming
function name with so much potential...

--Greg

Jean H. wrote:
> 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: Fri Oct 17 18:23:04 PDT 2025

Total time taken to generate the page: 0.19349 seconds