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

Home » Public Forums » archive » Re: chunk indexing like
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: chunk indexing like [message #69316 is a reply to message #69314] Sat, 09 January 2010 08:50 Go to previous messageGo to previous message
rogass is currently offline  rogass
Messages: 200
Registered: April 2008
Senior Member
On 9 Jan., 16:10, David Fanning <n...@dfanning.com> wrote:
> Wox writes:
>> I know how to get
>> from [2,3,1,0,5] to [0,0,1,1,1,2,4,4,4,4,4] (i.e. chunk indexing)
>> but how do I get
>> from [2,3,1,0,5] to [0,1,0,1,2,0,0,1,2,3,4]
>> without loops that is.
>
>> I have been juggling with histogram and total(.../cumulative) but I
>> can figure this one out.
>
> Here is my problem with this, and with Chris's answers:
> is this an intellectual exercise, or is there a reason
> for wanting to do something like this? :-(
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

David,
I will take this approach to address the different features within my
varying spectral feature database. So, it helps me too. Nevertheless,
the problem was interesting for me, because it also touches somehow
the missing possibility of IDL to do (arr
[indexarray1:indexarray1+x,indexarray3:indexarray3+y])[*]

However, I assumed that WOX wanted help or searched for a different
approach due to his/her problem. Some people here - especially you and
your website - helped me and so I try to help others too if I can. It
would be wonderful, if ITTVIS would reflect or solve the most common
problems posted to this newsgroup in their upcoming IDL releases.

Regards

CR
[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
Previous Topic: Greek Symbols in Plot Annotations
Next Topic: isurface with custom palette

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

Current Time: Fri Oct 10 01:45:56 PDT 2025

Total time taken to generate the page: 2.00135 seconds