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

Home » Public Forums » archive » Re: PSF Energy inside circle
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: PSF Energy inside circle [message #61708 is a reply to message #61664] Fri, 25 July 2008 10:18 Go to previous messageGo to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article
<808314ce-4419-478d-8593-bc94dd7f1789@p25g2000hsf.googlegroups.com>,
Bob Crawford <Snowman42@gmail.com> wrote:

> Is there an advantage of using this method to determine d over using
> DIST?

DIST computes a different function.

!P.MULTI = [0, 2, 1]
x = FINDGEN(51)
xx = REBIN(x, 51, 51)
yy = REBIN(REFORM(x, 1, 51), 51, 51)
d = SQRT((xx - 25.0)^2 + (yy - 25.0)^2)
SURFACE, d
SURFACE, DIST(51)

The Euclidian distance is a circular cone. DIST computes an
array proportional to the frequency of each element.

Ken Bowman
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: plot stddev bars for each data point
Next Topic: Re: Newbie question concerning summations/loops in IDL

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

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

Total time taken to generate the page: 0.63930 seconds