Hello Norman and Robin,
I test the script for the polar alignment.
I can say that it was not easy to set the different part of software together.
Norman, please note that German link of the script contains only the "slewer183.py" and "astro_v22.R" script.
But, the video (
https://youtu.be/FYEBOxvo1qk) shows that you use 3 scripts.
From the video I copy (image by image) the missing script.
Do I have a good result ? ... no.
Something seems to be wrong in the script function "collect(v1, v2)".
When I open the resulting text file, I have the following:
SIDEREAL;RA;DEC;ANGLE
21,9751577170;0,79688129;0,25989115;179,7,-1,00007
...
Do you remark ? ... 179,7,-1,0000 in place of 179,7;-1,0000
I modify the script function in:
import csv
...
def collect(v1, v2) :
mypath = ("C:\\Astro\\Align_Pics\\%03d_%03d.apm") % (v1, v2)
global SIDE
print(mypath)
plate = csv.reader(open(mypath, "rb"), delimiter = ",")
line_1 = next(plate)
line_2 = next(plate)
check = line_1[:3]
if check == '999' :
print(check)
else:
mytext = str(SIDE[v1]) + ";" + line_1[0] + ";" + line_1[1] + ";" + line_2[1] + ";" + line_2[2]
mytext2 = mytext.replace('.',',')
print(mytext2)
if check == '999' :
pass
else:
with open('C:\\Astro\\Align_Pics\\ps_positions.txt', "a") as myfile:
myfile.writelines(mytext2 + "\n")
I repeat with this modification ... but no good result.
The R script calculates the correction to several 10° ... My mount is not so bad oriented.
I have an EQ8 mount and I perform the 2 stars alignment followed by the polar alignment sequence of the mount.
In the last alignment, the mount mentions that the polar alignment is below 1 arcmin on both axis.
Additional question ?
Why do you program a script in R ? in place to stay in the Ironpython script ?
It makes the software use not really user friendly. (first a script A, then a script B, copy manually the values in a script C and start script C).
Do you have the intention to modify the scripts in "all in one" script ?
(I ask so then if you do, I will not start to do by myself
)
Other point ... your method use the mount movement for the setting of the polar angle.
I think that it could be better to use the live image on the camera directly in place of the mount movement (backslash error).
With the plate solve result, it is possible to calculate the displacement (direction and length) on the image itself.
The user can click on a star, the script insert a box at the wanted position, then the user adjust the mount until the star is centered in the box.
If the displacement is larger than the view, the script can repeat this several times.
(Like the method of King in the software Prism ... but it uses the stars near the polar star, what is not visible from my location)
Best regards,
Jean-Francois
Note: Norman, during reading your R-script, I remark that your location is very near to my location ... ~25 km.
A question for visualization of the script code ... how can I insert it ?