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

Home » Public Forums » archive » rebinning histogram
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
rebinning histogram [message #46131] Mon, 31 October 2005 09:30
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
Is there some way within IDL to do the following while avoiding the
inefficiency of using IDL loops?

rows = 135
cols = 203
ratio = 10
values = 8

summary = DBLARR(values, cols, rows)
data = DBLARR(cols*ratio, rows*ratio)

FOR row=0,rows-1 DO BEGIN
FOR col=0, cols-1 DO BEGIN
summary[col,row,*] = HISTOGRAM(data[ratio*col:(ratio*col+1), $
ratio*row:(ratio*row+10), MIN=1, MAX=VALUES)
ENDFOR
ENDFOR
[Message index]
 
Read Message
Previous Topic: middle mouse button emulation in widget_draw
Next Topic: Re: rebinning histogram

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

Current Time: Fri Oct 10 17:38:14 PDT 2025

Total time taken to generate the page: 0.56266 seconds