Re: comparing an array of strings [message #60040] |
Fri, 25 April 2008 11:27 |
Ryan.
Messages: 77 Registered: March 2006
|
Member |
|
|
On Apr 25, 1:35 pm, Bob Crawford <Snowma...@gmail.com> wrote:
> Check out:http://www.dfanning.com/tips/set_operations.html
>
> It seems like Craig Markwardt's CMSET_OP will do what you're looking
> for.http://cow.physics.wisc.edu/~craigm/idl/idl.html
>
> Bob.
> (who just spent time coding his own... then found the above)
Thanks Bob!
I found that page on David's website but after the first few methods I
stopped because I didn't think they handled string arrays. I guess
I'll make sure to read it through to the end next time!
Craig's routine looks to be exactly what I am looking for, Thanks!
Ryan.
|
|
|
Re: comparing an array of strings [message #60041 is a reply to message #60040] |
Fri, 25 April 2008 10:35  |
Bob[3]
Messages: 60 Registered: December 2006
|
Member |
|
|
On Apr 25, 9:45 am, "Ryan." <rchug...@brutus.uwaterloo.ca> wrote:
> Hi All,
>
> Having a routine that will compare two string arrays of different
> sizes would be very useful to me. Does anyone know of a routine that
> previously exists that is able to compare two string arrays and return
> the common elements as well as some keyword to return the differing
> elements? I could write some routine that would do it but due to my
> limited knowledge of IDL it probably won't be efficient.
>
> Thanks,
> Ryan.
Check out:
http://www.dfanning.com/tips/set_operations.html
It seems like Craig Markwardt's CMSET_OP will do what you're looking
for.
http://cow.physics.wisc.edu/~craigm/idl/idl.html
Bob.
(who just spent time coding his own... then found the above)
|
|
|