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

Home » Public Forums » archive » Ordered index array
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Ordered index array [message #45445] Wed, 07 September 2005 08:40
Emmanuel Christophe is currently offline  Emmanuel Christophe
Messages: 11
Registered: March 2004
Junior Member
Hi,

I would like to change the values on an array according to the order
they appear. Following this example:

starting with the array
[3,6,2,1,2,8,1,1]
I would like to get
[1,2,3,4,3,5,4,4]

3 being the first value seen it is affected to 1
6 being the second, affected to 2
...

I guess this process is similar to lookup tables, or color tables. As I
would like to process quite big arrays (>60000 long elements), i'm
looking for an efficient function. I don't really know what to look for
in IDL help to find something which could help.

Thanks in advance for any suggestion !

Emmanuel
[Message index]
 
Read Message
Previous Topic: Reproject MODIS automatically using IDL
Next Topic: Shaped Based Interpolation, ever hear of it??

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

Current Time: Sat Oct 11 12:34:55 PDT 2025

Total time taken to generate the page: 1.52250 seconds