Re: quickly reassign numbers in large array? [message #50101] |
Wed, 13 September 2006 16:52  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
vlk.astro@gmail.com writes:
> There has to be a faster, if not cleverer, way to do this reassignment.
> Those multiple where()'s and the for-loop are fine for readability,
> but are a major drain on the cpu and user patience when you have large
> images and thousands of segments.
You're teasing us, right? All those discrete integers,
regularly spaced. What do YOU think the answer is going
to be? :-)
Cheers,
David
P.S. Here's some light reading for when you take a break
from all that deep thinking tonight:
http://www.dfanning.com/tips/histogram_tutorial.html
--
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.")
|
|
|
Re: quickly reassign numbers in large array? [message #50178 is a reply to message #50101] |
Thu, 14 September 2006 13:49  |
vlk.astro
Messages: 11 Registered: March 2006
|
Junior Member |
|
|
Reverse indices! Of course!
thanks much,
Vinay
David Fanning wrote:
> vlk.astro@gmail.com writes:
>
>> There has to be a faster, if not cleverer, way to do this reassignment.
>> Those multiple where()'s and the for-loop are fine for readability,
>> but are a major drain on the cpu and user patience when you have large
>> images and thousands of segments.
>
> You're teasing us, right? All those discrete integers,
> regularly spaced. What do YOU think the answer is going
> to be? :-)
>
> Cheers,
>
> David
>
> P.S. Here's some light reading for when you take a break
> from all that deep thinking tonight:
>
> http://www.dfanning.com/tips/histogram_tutorial.html
>
> --
> 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.")
|
|
|