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

Home » Public Forums » archive » Finding strings values common to two (large!) 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: Finding strings values common to two (large!) arrays [message #92079 is a reply to message #92078] Wed, 07 October 2015 07:45 Go to previous messageGo to previous message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
On Wednesday, October 7, 2015 at 4:13:59 PM UTC+2, rj...@le.ac.uk wrote:
> I have arrays of numerical IDs in string format.
>
> I want to find all of the indices in Array A that contain a value that is present anywhere in Array B.
>
> The arrays are both quite large (>1 million values) so a loop is out of the question and them being strings complicates it as well.
>
> Any IDL Way tips?

Interesting... I guess that a set operation will do or in other words, you want to find (A) AND (B)
Did you look at David's page:
https://www.idlcoyote.com/tips/set_operations.html

There are some good tips, among which Craig's CMSET_OP which works also on strings (but does not return indices...).

I hope it helps.

Cheers,
Helder
[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
Previous Topic: point on an image()
Next Topic: Histogram within a colorbar

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

Current Time: Wed Oct 08 13:51:23 PDT 2025

Total time taken to generate the page: 0.00383 seconds