Page 1 of 1

Script control of images

Posted: 25 Apr 2020, 16:36
by VAastro
Hi,

I am trying to automate my telescope to image a list of objects.
How can I safely stop imaging a particular object if the object sky is cloudy and move on to the next object?

I am using the script function Image.FindCoordinates(ra,de,nstars)
If I set a conditional so that if the number of stars is less than nstars the script would move on to the next object
or is there a more elegant approach?

Thanks
Erik

Re: Script control of images

Posted: 01 May 2020, 17:25
by VAastro
The problem has been solved using the return value of FindCoordinates:

....
....
nstars = 5
ok = Image.FindCoordinates(ra,de,nstars)
if not ok then continue
....
....

so when the function fails, the script continues to the next object.