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

Home » Public Forums » archive » Re: The IDL way, summing variable sized slices of array.
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: The IDL way, summing variable sized slices of array. [message #79754] Wed, 04 April 2012 09:01 Go to previous message
cgguido is currently offline  cgguido
Messages: 195
Registered: August 2005
Senior Member
How about something like:
lo=rebin(b[*,0], [nl,nt])
hi=rebin(b[*,1], [nl,nt])

logic=(d ge lo) AND (d lt hi)
newd=d*logic

Not sure I get what your 't' array is for, but:

p=total(newd,1)/total(logic,1) ;should do it

I may very well have switched dimensions 7 times in the above code. columns-rows rows-columns... yikes

G
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Resizing Raster Files
Next Topic: The IDL way, summing variable sized slices of array.

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

Current Time: Wed Oct 08 18:10:22 PDT 2025

Total time taken to generate the page: 0.00188 seconds