Search found 275 matches

by Forum_2017
11 Dec 2018, 16:47
Forum: Scripts
Topic: SP3 Star detector
Replies: 4
Views: 2422

SP3 Star detector

Hi Fabio, I think the 'star detection' parameters in the 'preferences' do not seem to be applied immediately (you have to reload AA6). This may be OK as normally the preferences are only set once and left. I just happened to be trying to tune 'star detection'. Another issue with 'star detection' is ...
by Forum_2017
11 Dec 2018, 16:45
Forum: Scripts
Topic: Working on script to count stars in an image
Replies: 13
Views: 6158

Re: Working on script to count stars in an image

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
by Forum_2017
11 Dec 2018, 16:45
Forum: Scripts
Topic: Working on script to count stars in an image
Replies: 13
Views: 6158

Re: Working on script to count stars in an image

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
by Forum_2017
11 Dec 2018, 16:45
Forum: Scripts
Topic: Working on script to count stars in an image
Replies: 13
Views: 6158

Re: Working on script to count stars in an image

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...
by Forum_2017
11 Dec 2018, 16:44
Forum: Scripts
Topic: Working on script to count stars in an image
Replies: 13
Views: 6158

Re: Working on script to count stars in an image

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 ...
by Forum_2017
11 Dec 2018, 16:42
Forum: Scripts
Topic: Working on script to count stars in an image
Replies: 13
Views: 6158

Re: Working on script to count stars in an image

Hello, it's the same thing of chapter 9.10. Maybe it's = Sqrt(x^2+y^2) ? By the way, I think that it does not matter. Actually I usually use the Minimum value of X and Y to evalute focus, since X can be affected by imprecise tracking: I wouldn't pause for bad seeing, who knows, a discover could happ...
by Forum_2017
11 Dec 2018, 16:42
Forum: Scripts
Topic: Working on script to count stars in an image
Replies: 13
Views: 6158

Re: Working on script to count stars in an image

Have just found this in a forum entry

FWHM = sqrt(FWHMx * FWHMy)

is that correct!?
by Forum_2017
11 Dec 2018, 16:42
Forum: Scripts
Topic: Working on script to count stars in an image
Replies: 13
Views: 6158

Re: Working on script to count stars in an image

Hi another clarification the function Image.FWHM Measures image average star FWHMX and Y and returns 2 values Wx,wy = Image.FWHM How does this relate to FWHM measurement as mentioned in the User Manual section 9.10 What I would like to do is cv seeing from a reference set of images to a test set bef...
by Forum_2017
11 Dec 2018, 16:41
Forum: Scripts
Topic: Working on script to count stars in an image
Replies: 13
Views: 6158

Re: Working on script to count stars in an image

Hi thanks for reply I have started saving files as fit - I assumme this does not destroy most of the scientific content of the image - correct me if this is wrong please. I tried the Image.Find(10) approach again but this does not do what I require - I am after all the stars in the image above the t...
by Forum_2017
11 Dec 2018, 16:40
Forum: Scripts
Topic: Working on script to count stars in an image
Replies: 13
Views: 6158

Re: Working on script to count stars in an image

Hi, I suggest to remove the second Image.Close to find out what is happening. Saving an image to JPEG (8 bit, compressed) and reopening it actually destroys most of the scientific content of the image, so the FWHM is probably wrong. About the number of stars, a workaround could be to increase the Mi...
by Forum_2017
11 Dec 2018, 16:40
Forum: Scripts
Topic: Working on script to count stars in an image
Replies: 13
Views: 6158

Re: Working on script to count stars in an image

Hi again - didn't think i'd be back so quick but this is a follow up to the original question. I have the following draft code which does not return what I would say is sensible data!? As before I am using simulator for both cameras and telescope. SQREF(10,10) 'SQTest(10,10) sub SQRef (exposure, Rep...
by Forum_2017
11 Dec 2018, 16:39
Forum: Scripts
Topic: Working on script to count stars in an image
Replies: 13
Views: 6158

Re: Working on script to count stars in an image

Fabio that is excellent - worked first time - as they say a little bit of knowledge is a dangerous thing Thanks for tips re what functions scope is. I'm really getting impressed with this software - seems to be flexible and powerful not an easy combination to get right for software developers many t...