Group Abstract Group Abstract

Message Boards Message Boards

2
|
21.8K Views
|
9 Replies
|
9 Total Likes
View groups...
Share
Share this post:

Computing FWHM from star image data

Posted 11 years ago
POSTED BY: Dan Pollock
9 Replies
Posted 11 years ago

Ran the first cuda parallel code on the tegra stack last night. Impressive. I wish Mathematica was on those boards. The articles I read for the image processing are these.

http://blog.wolfram.com/2014/08/14/fixing-bad-astrophotography-ii-imaging-mars-with-mathematica/ http://blog.wolfram.com/2010/12/27/fixing-bad-astrophotography-using-mathematica-8-and-advanced-image-deconvolution/

You will have to play around with it a bit to get it working. I'll have to do it again myself as I've managed to loose what I had working. I keep forgetting to do a shutdown on the pi's and ruining the SD image. Now I'm trying to do it with OpenCV which is much easier for me to get my head around. It has a function where you click on a star and it will cut out what ever size you want. That is going to be more useful for what I want to do.

POSTED BY: Dan Pollock

Hi Dan,

We mentioned a mathematica program that separate the stars out a small image. Would you mind share it here? I am very interested using mathematica codes in astrophotography.

POSTED BY: Marcelo De Cicco
Posted 11 years ago
POSTED BY: Dan Pollock

Hi Dan,

thank you very much for your nice response! I am glad to hear that my little hint was helpful to your project, which really impresses me!

Regards -- Henrik

POSTED BY: Henrik Schachner
Posted 11 years ago

Thanks for the info. I missed these in the deluge of daily e-mail. I'll have to try it out.

Dan

POSTED BY: Dan Pollock
POSTED BY: Henrik Schachner

Dan, I am not sure if you have seen this, but there is a nice blog post by Tom Sherlock, perhaps interesting to you:

Serial Interface Control of Astronomical Telescopes

POSTED BY: Sam Carrettie
Posted 11 years ago

Thanks that is a huge help.

Dan

POSTED BY: Dan Pollock
Posted 11 years ago

Here is one way:

In[1]:= (* make some data *)
data = Table[
   rSquared = x^2 + y^2;
   3. Exp[-rSquared/5^2],
   {x, -10, 10}, {y, -10, 10}
   ];

In[2]:= (* generate an {x,y,z} list *)
indexedData = 
  Flatten[Table[{x, y, data[[x, y]]}, {x, Length[data]}, {y, 
     Length[data[[1]]]}], 1];

In[3]:= (* fit to Gaussian to recover parameters *)
FindFit[indexedData, 
 i0 Exp[-((x - x0)^2 + (y - y0)^2)/a^2], {i0, x0, y0, a}, {x, y}]

Out[3]= {i0 -> 3., x0 -> 11., y0 -> 11., a -> 5.}
POSTED BY: David Keith
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard