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

Home » Public Forums » archive » Re: Where Function with Arrays
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 Function with Arrays [message #40131] Tue, 20 July 2004 16:11 Go to previous message
rats is currently offline  rats
Messages: 11
Registered: June 2004
Junior Member
> The way you can do this is to append the two arrays together, sort and
> uniq them. But really I've already done this in a routine called
> CMSET_OP(), which will return the indices of an array intersection
> like this:
>
> wh = cmset_op(ArrayX, 'AND', ArrayY, /INDEX)
>
> which will give you indices into the ArrayX array. You can then
> reverse the order of X/Y and get the indices into the ArrayY array.
> Of course, you should check for the case of no intersection
> whatsoever.
>
> Good luck,
> Craig
>
> http://cow.physics.wisc.edu/~craigm/idl/idl.html (under "Array/Set" utilities)


Thanks Craig for your reply ... now it is working :)

Rafael
[Message index]
 
Read Message
Read Message
Previous Topic: Sparse Matrix Routines
Next Topic: Keyboard Shortcuts

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

Current Time: Fri Oct 10 19:18:07 PDT 2025

Total time taken to generate the page: 1.67957 seconds