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

Home » Public Forums » archive » remove duplicate elements from a multi-dimensional array efficiently in IDL
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
remove duplicate elements from a multi-dimensional array efficiently in IDL [message #66331] Fri, 01 May 2009 09:13
chenbo09@gmail.com is currently offline  chenbo09@gmail.com
Messages: 15
Registered: May 2009
Junior Member
Hello, everyone!

Is there anyone knows a routine in IDL that be capable to remove
duplicate elements from a multi-dimensional array efficiently? I 'm
now working with huge arrays, and I have written one by myself, it
works but is with low efficiency.

example of my problem:
the input array:
1,10,9,100,200
2,11,8,101,201
2,11,8,101,201
3,10,9,100,200
4,7,12,99,199
2,11,8,101,201

goal:
remove the duplicate elements with the same values for the second and
the third column.

expected output:
1,10,9,100,200
2,11,8,101,201
4,7,12,99,199


Thanks for your help!

Bo
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL_tools version 2.0
Next Topic: Re: A problem with envi_save_rois

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

Current Time: Wed Oct 08 15:40:00 PDT 2025

Total time taken to generate the page: 0.00633 seconds