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

Home » Public Forums » archive » Re: Point Spread Function Simulation
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: Point Spread Function Simulation [message #68215 is a reply to message #68211] Thu, 24 September 2009 08:35 Go to previous message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
On Sep 24, 11:23 am, Jacob Mendez <jake.men...@gmail.com> wrote:
> Hello, I'm trying to generate a simulated 2D point spread function to
> test a program that I am writing and I am wondering what might be a
> good way to do this.

It's pretty easy:

nx=512;dimensions of images
ny=512
sigma=10;width of psf

x=findgen(nx)-nx/2;x axis of image
y=findgen(ny)-ny/2

xx=x#(x*0+1);create 2D coordinates
yy=(y*0+1)#y

zz=exp(-0.5*(xx^2+yy^2)/sigma^2);compute PSF


Ciao,
Paolo

>
> My program will take 2D point spread functions and generate 1D line
> spread functions at incremental rotations of the 2D PSF.
>
> Thanks
[Message index]
 
Read Message
Read Message
Previous Topic: Re: optimization; which point falls into a polygon
Next Topic: newbie workbench question

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

Current Time: Fri Oct 10 17:46:08 PDT 2025

Total time taken to generate the page: 0.63931 seconds