Page 1 of 1

Stars.Find

Posted: 17 Apr 2020, 04:07
by Craig
Is there a way to set the Find stars parameters within the script? For example, something like this:

Stars.Find.SNR = 10.0
Stars.Find.ADU = 200
Stars.Find.FWHM = 3.5
Stars.Find

Here is what I tried:
Manually start AA
Load an Image
Click Tools|Find stars
Change S/N to 10
Test .. get 50 stars found
Close AA

Run my external program
It starts AA
It loads the same image
Call Stars.Find
returns 121 stars
I then manually check the Find stars settings and they have been reverted back to a default set.

Is there any way to preset these parameters or set them within the script?

Craig

Re: Stars.Find

Posted: 18 Apr 2020, 17:01
by fabdev
Hello,
no, but after the stars have been collected, it's possible to select only those needed:

Code: Select all

Image.Stars.Find(100)
for i = 1 to Image.Stars.Count
  adu = Image.Stars.ADU(i)
  fwx = Image.Stars.FwhmX(i)
  if fwx < 5.0 then print adu, fwx
next i
The stars will be also returned ordered, by ADU (so by S/N)

Re: Stars.Find

Posted: 19 Apr 2020, 06:36
by Craig
Thanks. That works.

Craig