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

Home » Public Forums » archive » Re: Where() with multidimensional array?
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: Where() with multidimensional array? [message #30180] Thu, 11 April 2002 07:45 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Olaf Stetzer (olaf.stetzer@imk.fzk.de) writes:

>>> What I want is the max and min values within data (twodimensional)
>>> but I want to exclude all values which are equal failvalue). Maybe there
>>> is an easy way to do this?
>>
>>
>> valid = Where( ( (data EQ Max(data)) OR (data EQ Min(data)) ) AND $
>> (data NE failvalue) )
>
> Uhmm, but that returns wrong values if failvalue is the max or min itself?

Yeah, I was trying to finish this before I had to get
my sons to school and I was trying to be WAY to clever.
You were doing the correct thing before.

>> Be aware that if you use these Boolean operators with floating point
>> data that you may not get what you expect. With floats we usually
>> look for values within some small delta value of the target.
>
> In my case its exactly the value defined in failvaue. I get my data from
> a mysql database and convert all NULL-values (=missing data) into a
> predefined value, in this case -99999. This is in all cases below the
> minimum of my data, but min(data) should return the minimum of the valid
> data only!

You will be fine once you get a better test case. :-)

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: floating underflow errors
Next Topic: Re: map_grid limitations

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

Current Time: Fri Oct 10 19:58:53 PDT 2025

Total time taken to generate the page: 0.08287 seconds