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

Home » Public Forums » archive » How to extract a datarange from a multidimensional 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
How to extract a datarange from a multidimensional array? [message #42360] Fri, 28 January 2005 02:01
Bismarck is currently offline  Bismarck
Messages: 3
Registered: January 2005
Junior Member
Hi,


i have following example data:
x = [0,5,2,6,5,3,9]
y = [1,5,7,4,3,4,8]


to get the (x,y)-pairs in a special range i used the following:
points = WHERE((x LE (5))AND(x GE (2))AND(y LE (7))AND(y GE (3)),count)


Because i accept now the fact, that IDL works faster with array
operations instead of for-loops ;)
i want to do the following:
xy=[[0,5,2,6,5,3,9],[1,5,7,4,3,4,8]]


points=???


i tried
points= WHERE ((xy LE[5,7])AND(xy GE[2,3]),count)
but this dont works for me.


I know the solution is for sure simple one, but i cant find it.
THX for every idea.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL on SuSE v9.0?
Next Topic: How to add each member of a pointarray to each member of another pointarray with arrayoperations?

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

Current Time: Wed Oct 08 13:44:24 PDT 2025

Total time taken to generate the page: 0.00704 seconds