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

Home » Public Forums » archive » Crazy use of MAX function.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Crazy use of MAX function. [message #15930] Sun, 27 June 1999 00:00 Go to previous message
Grady Daub is currently offline  Grady Daub
Messages: 22
Registered: June 1999
Junior Member
I have data to be plotted. I want to create YRANGE based on max/min of
the data. The problem is that the maximum is always lower than "9999",
which is used to indicate "bad" data.

Without having to replace all 9999's with, say, zero , using MAX to find
the true maximum and then putting the 9999's back where they were...

How do I find a maximum/minumum value less/greater than a certain value?

MAX(data lt 9999) doesn't work. :-(

Ugh, I just thought of a way:

MAX(data(WHERE(data LT 9999)))

Is this the only way, or, does IDL already have something that does this
task?
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Indexing structures of different type
Next Topic: repeat.. until loops

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

Current Time: Thu Oct 09 06:03:28 PDT 2025

Total time taken to generate the page: 0.00517 seconds