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

Home » Public Forums » archive » Re: How to Sort/Uniq a list and keep its original index
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: How to Sort/Uniq a list and keep its original index [message #50703 is a reply to message #50698] Thu, 12 October 2006 09:19 Go to previous messageGo to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
without the histogram, you could try:

tmp = lindgen(650000)
tmp[indexU] = -1
duplicate = tmp[where tmp ne -1)]

Jean

Dilkushi@gmail.com wrote:
> Dear all
> I have to sort a file with 650,000 records in search of duplicate
> records.. and I need a list of duplicates (not a list without
> duplicates)...
> indexS=sort(testTotal)
> test=testTotal[indexS]
> indexU=uniq(test)
>
> indexU is an index with no duplicates..
> how do I get an index pertaining to the duplicates only?..
> please help..
> thanks in advance
> dilkushi
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Weirdest Error Ever
Next Topic: Re: vector of bin indices using histogram?

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

Current Time: Wed Oct 08 19:30:22 PDT 2025

Total time taken to generate the page: 0.00453 seconds