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

Home » Public Forums » archive » Re: Getting array indices
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: Getting array indices [message #62701 is a reply to message #62700] Tue, 23 September 2008 13:41 Go to previous message
Brian Larsen is currently offline  Brian Larsen
Messages: 270
Registered: June 2006
Senior Member
Interesting what you learn when you dig into a routine...

array_indices.pro
<<snip>>
for d=ndim-1, 1, -1 do begin
; Remove indices from even higher dimensions.
if (d lt ndim-1) then $
temp mod= dimProduct[d]
; Indices for higher dimensions.
result[d, *] = temp/dimProduct[d-1]
endfor
<</snip>>

of course some people say that all you get when you dig that deep is
dirty :)

Brian

------------------------------------------------------------ --------------
Brian Larsen
Boston University
Center for Space Physics
http://people.bu.edu/balarsen/Home/IDL
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Getting array indices
Next Topic: Re: what is the best way to do a surface (or 2D) interpolation?

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

Current Time: Sat Oct 11 18:07:55 PDT 2025

Total time taken to generate the page: 2.00253 seconds