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

Home » Public Forums » archive » extracting values from an array
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
extracting values from an array [message #44281] Wed, 01 June 2005 11:44
Francois L. is currently offline  Francois L.
Messages: 19
Registered: December 2004
Junior Member
Hello,

Probably a simple question...

I have an array A and I want to extract values greater than -1.
> A = [2,-1, -1, 3,-1,-1, 4, -1]
> w = where(a gt -1)
> if w[0] gt -1 then b = a[w]

Is there a cleaner and faster way to do this ?

Thanks,

Fran�ois.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Georeferencing info in tiff files?
Next Topic: data comparison

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

Current Time: Sat Oct 11 07:47:06 PDT 2025

Total time taken to generate the page: 0.56803 seconds