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

Home » Public Forums » archive » Number of points inside a contour curve
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: Number of points inside a contour curve [message #52016 is a reply to message #51947] Fri, 22 December 2006 02:24 Go to previous messageGo to previous message
burkina is currently offline  burkina
Messages: 32
Registered: February 2005
Member
On Dec 21, 4:55 pm, David Fanning <n...@dfanning.com> wrote:
> but couldn't this
> loop be replaced with a cumulative total (I.e., TOTAL
> with the CUMULATIVE keyword set)?
>

I think I cannot replace it with a TOTAL/CUMULATIVE command, because
the histogram I have to sum contains the frequencies of the points of
the 2D array and these frequencies cannot be summed up before being
transformed in points as I do in the while loop. I may be wrong, but I
cannot find an easy way to cancel the loop (although I'm sure most of
you can!).
In any case, the code was slightly wrong, because I didn't consider the
k increment at the end of the while loops, so that the maxlevel should
read:

maxlevel=histoden[n_histo-k] * (maxvalue-k+1)

Thanks,

Stefano
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Formatting string
Next Topic: ENVI and the IDL Virtual Machine

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

Current Time: Sat Oct 11 18:44:45 PDT 2025

Total time taken to generate the page: 0.71955 seconds