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

Home » Public Forums » archive » Indexing arrays with arrays
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: indexing [message #65926 is a reply to message #55835] Wed, 01 April 2009 22:34 Go to previous messageGo to previous message
Chris[6] is currently offline  Chris[6]
Messages: 84
Registered: July 2008
Member
I would have done something like this, accomplishing the summation in
two steps

x = [3, 2, 3]
y = [4, 1, 7]
sum = total(array[*,*,1:3], 3) ; summed along z direction
answer = total(sum[x,y]) ; summed over x,y pairs


chris
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: How to programmatically access the Available Band List
Next Topic: Histogram Warning

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

Current Time: Fri Oct 10 21:35:27 PDT 2025

Total time taken to generate the page: 0.71783 seconds