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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Array matching? [message #50152] Fri, 15 September 2006 14:24
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Greg writes:

> If it's supposed to be a secret to the unitiated, perhaps you shouldn't
> post the tutorial on the wonders of histogram in a place where anyone
> using google can easily find it?

Humm. You you may have a point there. I wonder
why it is so seldom read, then? :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Array matching? [message #50153 is a reply to message #50152] Fri, 15 September 2006 14:18 Go to previous message
gknoke is currently offline  gknoke
Messages: 9
Registered: September 2006
Junior Member
David Fanning wrote:
> P.S. Someone made a serious mistake because you are
> not suppose to know about this until AFTER you have
> learned the secret handshake. I'll be filing a report
> with the IEPA chairman, you can be sure!

If it's supposed to be a secret to the unitiated, perhaps you shouldn't
post the tutorial on the wonders of histogram in a place where anyone
using google can easily find it?

--Greg
Re: Array matching? [message #50159 is a reply to message #50153] Fri, 15 September 2006 13:50 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Greg writes:

> 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...

Yeah, well, keep it to yourself. Word of this leaks
out and we will be absolutely inundated with MatLab
users over here. :-(

Cheers,

David

P.S. Someone made a serious mistake because you are
not suppose to know about this until AFTER you have
learned the secret handshake. I'll be filing a report
with the IEPA chairman, you can be sure!

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Array matching? [message #50161 is a reply to message #50159] Fri, 15 September 2006 13:37 Go 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
>>
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
>
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Sun Oct 12 09:38:01 PDT 2025

Total time taken to generate the page: 3.20031 seconds