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
Script control of images
Re: Script control of images
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.
....
....
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.