Working on script to count stars in an image

Scripts and programs to automate Astroart
Forum_2017
Posts: 275
Joined: 10 Dec 2018, 16:23

Re: Working on script to count stars in an image

Post by Forum_2017 »

Fabio
had a think about your last reply and think if FWHMX and FWHMY are measurements of star x and y radii then a ratio of 1 is what to aim for if the star is in focus
and the closer to one the better the focus - is that a safe assumption to make!? or have I gone too far :-)

One other thing re new function inputbutton
I am using it in the following way

Code: Select all

InfoMess = "----->REFERENCE-->Number of Stars-->"+str$(GetSQRef)+crlf$()+"Star Shape Ratio-->"+str$(GetFWHMRef)+"NELM value-->"+str$(GetSQMRef)
if ContinueOn(InfoMess) = "No" then End
and

Code: Select all

sub ContinueOn(ShowInfo)
   InputButton("Carry On ?"+ShowInfo,"Yes","No")
end sub
resulting in the following
Attachment 253

I realise this is probably a no no but is there anything that can be done re spacing of the prompt -

again thanks for your assistance

Forum_2017
Posts: 275
Joined: 10 Dec 2018, 16:23

Re: Working on script to count stars in an image

Post by Forum_2017 »

Hello,
yes, FWHM is just a measurement of the radius of the star, in pixel.
A FWHM X or Y of 1 would be very bad (undersampling, ccd structure problems).

A good FWHM is usually 2.5 - 3.5. By the way, there is not an optimal FWHM.
FWHM is not so imporant, it's only a relative value, it depends mainly on the camera and telescope.

For example, if my telescope and camera gives a FWHM of 3.2 in optimal conditions, and one day I get 4.5, this only means that I'm not working in optimal conditions (bad seeing? bad focus?). It's all relative.
For photometry, a higher FWHM would be even desirable.

Forum_2017
Posts: 275
Joined: 10 Dec 2018, 16:23

Re: Working on script to count stars in an image

Post by Forum_2017 »

Hi Fabio
thanks for the insight - will use for reference

Do you have any comments on the inputbutton issue I have highlighted - if it is not possible to ammend the functionality let me know and I will use a different approach
like a message box with the inputbutton

Forum_2017
Posts: 275
Joined: 10 Dec 2018, 16:23

Re: Working on script to count stars in an image

Post by Forum_2017 »

Hi, the attach in the last message cannot be opened, by the way here is a working example:

Code: Select all

if ContinueOn("Test") then
   print "OK Continue"
else
   print "Let's stop"
end if

sub ContinueOn(ShowInfo)
   r = InputButton("Carry On ? " + ShowInfo, "Yes", "No")
   return r = "Yes"
end sub

Post Reply