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

Home » Public Forums » archive » pixel value to x and y position
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: pixel value to x and y position [message #67555 is a reply to message #67512] Fri, 31 July 2009 08:00 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Paolo writes:

> Just not to let any wrong impression by readers
> of this thread, the mod and / method does indeed
> work and delivers the same result as array_indices!
>
> a=bytarr(123,777);create test
> array
> ind=43527L ;create test index
>
> print,ind mod 123,ind / 123
> 108 353
> print,array_indices(a,ind)
> 108 353

Well, as long as we are cautioning readers, we should
probably point out than none of these (successful) methods
is probably needed. One dimensional indices work just
as well, and 99% of the time there is absolutely no
need to convert them to 2D indices.

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.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: SCALE3.pro isn't doing it's job
Next Topic: workbench stops responding

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

Current Time: Sat Oct 11 06:09:43 PDT 2025

Total time taken to generate the page: 0.55931 seconds