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

Home » Public Forums » archive » Making array out of sinc
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: Making array out of sinc [message #72334 is a reply to message #72262] Sun, 29 August 2010 09:56 Go to previous messageGo to previous message
Wout De Nolf is currently offline  Wout De Nolf
Messages: 194
Registered: October 2008
Senior Member
On Sat, 28 Aug 2010 04:42:43 -0700 (PDT), sirvival
<fpfeifer@hs.uni-hamburg.de> wrote:

> On 27 Aug., 13:32, Wox <s...@nomail.com> wrote:
>> On Fri, 27 Aug 2010 04:00:40 -0700 (PDT), sirvival
>>
>> <fpfei...@hs.uni-hamburg.de> wrote:
>>> I want something that looks like when raindrop hits water.
>>> So when I do a contour plot it looks like elipsis.
>>> How can I do this?
>>
>> nx=201
>> ny=81
>> ratio=1.
>> x=rebin(findgen(nx)-nx/2,nx,ny,/sample)
>> y=rebin(findgen(1,ny)-ny/2,nx,ny,/sample)*ratio
>> r=sqrt(x*x+y*y)
>> psf3=sin(r)/r
>>
>> This gives circles as contours. Change the "ratio" to make ellipses.
>> Btw, this is not a 2D sinc function. That would be sin(x)sin(y)/xy.
>
> Hi,
> thanks alot.
> Thats what I am looking for.
>
> PS: Is my psf3=psfx3#psfy3 not equal to your sin(x)sin(y)/xy?

Yes it is, I didn't pay attention :-). My point was that if you need a
2D-sinc function, sin(x)sin(y)/xy is it, not the "raindrop function"
you ask for.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: IDL8 CWO issue
Next Topic: Re: finite difference method (iteration) in IDL

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

Current Time: Fri Oct 10 20:10:34 PDT 2025

Total time taken to generate the page: 0.80083 seconds