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

Home » Public Forums » archive » Re: Can I use HISTOGRAM to do this?
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: Can I use HISTOGRAM to do this? [message #39991] Tue, 29 June 2004 01:08
Chris Lee is currently offline  Chris Lee
Messages: 101
Registered: August 2003
Senior Member
In article <6e84eb0a.0406281357.6a6cde84@posting.google.com>, "bridgemat"
<bridgemat@yahoo.com> wrote:

> Re: Can I use HISTOGRAM to do this?

Histogram can do anything, no really :)

I'm dutybound to refer you to the histogram tutorial at

http://www.dfanning.com/tips/histogram_tutorial.html

You want to read the section on Reverse indices. Essentially, histogram
can give you the index numbers of the elements which go into each bin in
your histogram, so..

hist=histogram(geo.lat,min=30,max=90,nbins=61,reverse_indice s=ri)
ind=indgen(61) + 30.5
avg=fltarr(61)
value=fltarr(90,90) ; your array of time values

;the histogram tutorial says what each element of 'ri' is for
for i=0, 60 do if(ind[i] ne 0) then avg[i]=mean(value[ ri[ ri[i]:ri[i+1]-1 ] ])

;end

Chris
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Can I use HISTOGRAM to do this?
Next Topic: Re: Plot problem

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

Current Time: Fri Oct 10 11:26:20 PDT 2025

Total time taken to generate the page: 7.03996 seconds