Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Working on script to count stars in an image

  1. #11
    Junior Member
    Join Date
    Jul 2017
    Location
    Worthing
    Posts
    16
    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:
    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:
    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
    Keith Butterworth
    Worthing
    England

    "Retired and happily tinkering with astronomy and astrophotography"

  2. #12
    Developer
    Join Date
    Apr 2012
    Posts
    423
    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.

  3. #13
    Junior Member
    Join Date
    Jul 2017
    Location
    Worthing
    Posts
    16
    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
    Keith Butterworth
    Worthing
    England

    "Retired and happily tinkering with astronomy and astrophotography"

  4. #14
    Developer
    Join Date
    Apr 2012
    Posts
    423
    Hi, the attach in the last message cannot be opened, by the way here is a working example:

    Code:
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •