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

Home » Public Forums » archive » Re: rebinning histogram
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: rebinning histogram [message #46128] Mon, 31 October 2005 10:34
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
James Kuyper wrote:
> 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), $

correction:

summary[*,col,row] = ...

> ratio*row:(ratio*row+10), MIN=1, MAX=VALUES)
> ENDFOR
> ENDFOR
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: rebinning histogram
Next Topic: problem:symbol not be showed in IdlgrPlot object etc.

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

Current Time: Sat Oct 11 12:52:52 PDT 2025

Total time taken to generate the page: 1.04241 seconds