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

Home » Public Forums » archive » azimuthal median
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: azimuthal median [message #58108 is a reply to message #58026] Tue, 15 January 2008 07:57 Go to previous messageGo to previous message
Brian Larsen is currently offline  Brian Larsen
Messages: 270
Registered: June 2006
Senior Member
Bringfried,

I do this all the time and histogram is definitely the correct way. I
find that I have to reread the horrors of histogram often (although
less often lately, maybe I am learning). http://www.dfanning.com/tips/histogram_tutorial.html


The basic idea is that you have to setup histogram to have bins where
you want them then pull the indices out with reverse_indices.

I have a few to many things this second to make an example but in sudo
code it is like this (for me)

;; get the data
;; run histogram on the data
hi = histogram(data, binzise=0.4, min=1, reverse_indices=ri)
for i=0l, n_elements(hi)-1 do begin
;; do the reverse indices magic to get the right indices
;; do whatever computation and store it somewhere
endfor








Cheers,

Brian

------------------------------------------------------------ --------------
Brian Larsen
Boston University
Center for Space Physics
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Map Projection Problem Persists in Perpetuity
Next Topic: Re: Format of contour labels?

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

Current Time: Sat Oct 11 01:52:41 PDT 2025

Total time taken to generate the page: 0.87943 seconds