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

Home » Public Forums » archive » Re: Strange WHERE issue?
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: Strange WHERE issue? [message #76272] Fri, 27 May 2011 12:58 Go to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
> And, you should be VERY careful using these WHERE
> expressions with floating values. You will not get
> the results you expect at least some of the time.
> See, for example, this article:
>
> http://www.idlcoyote.com/math_tips/razoredge.html
>
> You might want to have a look at the program Floats_Equal
> in the Coyote Library:
>
> http://www.idlcoyote.com/programs/floats_equal.pro

While it's good to remember this, what they've done is perfectly legitimate. This statement will always do what you expect it to:

c = WHERE(chisqarr_ph[1,*] EQ MIN(chisqarr_ph[1,*]))

-Jeremy.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Question about cgplot output to file
Next Topic: Automatic Binsize Calculations

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

Current Time: Wed Oct 08 17:23:23 PDT 2025

Total time taken to generate the page: 0.00447 seconds