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

Home » Public Forums » archive » N_ELEMENTS and WHERE: Scalar or 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: N_ELEMENTS and WHERE: Scalar or Array ? [message #14267 is a reply to message #14130] Thu, 04 February 1999 00:00 Go to previous messageGo to previous message
Michael Werger is currently offline  Michael Werger
Messages: 34
Registered: May 1997
Member
Annette Schloss wrote:
>
> Hi Rose,
> you can do this:
> non_zero_xvalues = WHERE (subarray1 GT 0, count)
> if (count ne 0) then do something
>
> Count will be zero if nothing satisfies the WHERE, otherwise it will be a
> positive number.
>

And what about:

non_zero_xvalues = WHERE(subarray1 GT 0)
IF (min(non_zero_xvalues) NE -1) THEN
...
ENDIF

was this already proposed? Sorry then
--
Michael Werger ------------o
ESA ESTEC & Praesepe B.V. |
Astrophysics Division mwerger@astro.estec.esa.nl|
| Postbus 299 http://astro.estec.esa.nl |
| 2200 AG Noordwijk +31 71 565 3783 (Voice)
o------------------- The Netherlands +31 71 565 4690 (FAX)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Scalp editting??
Next Topic: Map spanning Dateline?

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

Current Time: Sat Oct 11 11:51:39 PDT 2025

Total time taken to generate the page: 0.56160 seconds