Re: How to create synthetic images of stars with gaussian psf in IDL. [message #92980 is a reply to message #92978] |
Mon, 04 April 2016 21:15   |
Sonu Tabitha
Messages: 29 Registered: April 2016
|
Junior Member |
|
|
On Monday, April 4, 2016 at 11:13:35 PM UTC+5:30, Michael Galloy wrote:
> On 4/4/16 9:01 AM, Sonu Tabitha wrote:
>> On Monday, April 4, 2016 at 1:13:27 PM UTC+5:30, Sonu Tabitha wrote:
>>> I want to create a synthetic image to resemble a stellar field
>>> (say covering an area of 255 by 255 pixels, with a total of about 4
>>> stars having Gaussian PSF). The rest of the image has to be filled
>>> with constant background and noise, as present in the entire image,
>>> but devoid of stars. I want to create this to test a source
>>> extraction algorithm that I have developed. I am a beginner in IDL.
>>> Can you please help me out in coding?
>>
>> Is there any way to do it with FLTARR?
>
> FLTARR just makes an array of floats (by default 0.0's) of a given size.
> You might use it, but that will the least of your worries.
>
> Mike
> --
> Michael Galloy
> www.michaelgalloy.com
> Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
I used PSF_gaussian to generate a star with gaussian profile. But while plotting what I am obtaining is a graph. Doesn't look like a star. Infact i need to create a closed object (circular or elliptical) to represent stars. Can you please tell em how to do it?
|
|
|