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

Home » Public Forums » archive » Re: 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 #72261 is a reply to message #72260] Fri, 27 August 2010 04:23 Go to previous messageGo to previous message
Maxwell Peck is currently offline  Maxwell Peck
Messages: 61
Registered: February 2010
Member
On Aug 27, 9:00 pm, sirvival <fpfei...@hs.uni-hamburg.de> wrote:
> Hi,
> I want to create an array out of two sinc function.
> My code looks like this right now:
>
> ;sinc psf
>     x=findgen(201)-100
>     psfx3=DBLARR(N_ELEMENTS(X))
>     for i=0, n_elements(x)-1 do begin
>       if x(i) eq 0 then begin
>         psfx3(i)=1
>       endif else begin
>         psfx3(i)=sin(x(i))/(x(i))
>       endelse
>     endfor
>     y=findgen(81)-40
>     psfy3=DBLARR(N_ELEMENTS(y))
>
>     for i=0, n_elements(y)-1 do begin
>       if y(i) eq 0 then begin
>         psfy3(i)=1
>       endif else begin
>         psfy3(i)=sin(y(i))/(y(i))
>       endelse
>     endfor
>     psf3=psfx3#psfy3
>     psf3=psf3/total(psf3)
>
>     plot,psfx3
>     stop
>     plot,psfy3
>     stop
>     shade_surf,psf3
> end
>
> The result is not what I am looking for.
> 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?
>
> Thanks
>
> PS: I use IDL 7.1. Not sure when IT will upgrade to 8.0

http://www.dfanning.com/documents/books.html
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Does ENVI_FILE_MNG work with 'In Memory' files?
Next Topic: How to ensure arrays are de-allocated in IDL?

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

Current Time: Fri Oct 10 01:05:44 PDT 2025

Total time taken to generate the page: 0.48510 seconds