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

Home » Public Forums » archive » How to find the pixel 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: How to find the pixel position [message #70677 is a reply to message #70640] Thu, 29 April 2010 11:42 Go to previous messageGo to previous message
Aram Panasenco is currently offline  Aram Panasenco
Messages: 41
Registered: April 2010
Member
Chris wrote:
>
>> Note that the WHERE function returns one-dimensional subscripts. You can
>> convert them back to two-dimensional subscripts (if you need to) using
>> the ARRAY_INDICES function:
>>
>> rectIndices = array_indices([1024,1024],findIndices,/dimensions)
>
>
> Can anyone enlighten me about whether there's any advantage to using
> the /dimensons keyword in array_indices? I hear people claim it's to
> prevent passing big arrays around, but those big arrays would be
> passed by reference, yes? In which case that wouldn't be a problem
>
> chris
>

In IDL, it is _usually_ a bad idea to pass a variable that you don't
want modified into a routine, because it is so easy for the routine to
change it. Now, array_indices() does not do that for a fact, but for me
personally it's just a matter of consistency.

~Aram Panasenco
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: SSW Coordinate Conversions
Next Topic: Plotting spherical slice surfaces

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

Current Time: Fri Oct 10 15:12:51 PDT 2025

Total time taken to generate the page: 1.12666 seconds