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

Home » Public Forums » archive » Re: Array/Group Help
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: Array/Group Help [message #62990 is a reply to message #62988] Tue, 21 October 2008 15:49 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
plim.dreaming@gmail.com writes:

> There must be a real simple way of doing the following but my
> knowledge of IDL is real limited.
>
> I have three 1-D arrays. Each array contains numbers from 1 to 1000.
> But they differ because the arrays contain different arrangements of
> numbers and different number of number.
>
> I would like to get a list of numbers that exist in all three arrays.
> In terms of groups I have three groups and I want to know what the
> intersect is.

Assuming the "numbers" are integers, you can use the set
methods outlined here:

http://www.dfanning.com/tips/set_operations.html

Cheers,

David
--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Previous Topic: Array/Group Help
Next Topic: Re: QUESTION: is there a command in idl which could clean up memory pieces?

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

Current Time: Sat Oct 11 11:15:50 PDT 2025

Total time taken to generate the page: 0.87611 seconds