I am using the following command line in Windows as batch file:
"C:\Program Files\astap\astap_cli.exe" -debug -focus1 D:\Processing\FOCUS5302.fit -focus2 D:\Processing\FOCUS5352.fit -focus3 D:\Processing\FOCUS5402.fit -focus4 D:\Processing\FOCUS5452.fit -focus5 D:\Processing\FOCUS5502.fit
echo Exit Code is %errorlevel%
pause
But the result is : echo Exit Code is 0
The analyse feature works like charm instead. Of course I can fit a hyperbolic function myself, but if there is already a feature in ASTAP which does that I can avoid to develop it myself. :-)
Many thanks for help
Nicola
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This functionality is only available in the astap.exe version Not it the astap_cli.exe version . This last version is a stripped version only containing the solver.
Just change in your command line astap_cli.exe to astap.exe and it should work.
Tell me if you succeed. I haven't tested for over a year now and many code changes where made.
Cheers, Han
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
it worked but give a wrong error statement: I submitted 5 images as you can see from my previous command.
12:32:40 "C:\Program Files\astap\astap.exe" -debug -focus1 D:\Processing\FOCUS5302.fit -focus2 D:\Processing\FOCUS5352.fit -focus3 D:\Processing\FOCUS5402.fit -focus4 D:\Processing\FOCUS5452.fit -focus5 D:\Processing\FOCUS5502.fit
12:32:40 Finding the best focus position for each area using hyperbola curve fitting
12:32:40 Positions are for an image with pixel position 1,1 at left bottom. Area 1,1 is bottom left, area 3,3 is top right. Center area is area 2,2
12:32:40 Offset in focuser steps relative to center area (area 2,2).
12:32:40 █ █ █ █ █ █ Error, four or more images are required at different focus positions! █ █ █ █ █ █
Nicola
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You could try to add -debug option. Then the GUI will open with the images. Select the inspector tab. The click then on hyperbola curve fitting button at the top.
Share also the five images and I will have a look here.
Note the focus is report as such:
D:\astap_test_files\focus_out_of_focus>echo Exit Code is 59240033
Exit Code is 59240033
Focus is then at position 5924. Remaining error 33
Han
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello All,
I am using the following command line in Windows as batch file:
"C:\Program Files\astap\astap_cli.exe" -debug -focus1 D:\Processing\FOCUS5302.fit -focus2 D:\Processing\FOCUS5352.fit -focus3 D:\Processing\FOCUS5402.fit -focus4 D:\Processing\FOCUS5452.fit -focus5 D:\Processing\FOCUS5502.fit
echo Exit Code is %errorlevel%
pause
But the result is : echo Exit Code is 0
The analyse feature works like charm instead. Of course I can fit a hyperbolic function myself, but if there is already a feature in ASTAP which does that I can avoid to develop it myself. :-)
Many thanks for help
Nicola
Hi,
This functionality is only available in the astap.exe version Not it the astap_cli.exe version . This last version is a stripped version only containing the solver.
Just change in your command line astap_cli.exe to astap.exe and it should work.
Tell me if you succeed. I haven't tested for over a year now and many code changes where made.
Cheers, Han
Hi Han,
it worked but give a wrong error statement: I submitted 5 images as you can see from my previous command.
12:32:40 "C:\Program Files\astap\astap.exe" -debug -focus1 D:\Processing\FOCUS5302.fit -focus2 D:\Processing\FOCUS5352.fit -focus3 D:\Processing\FOCUS5402.fit -focus4 D:\Processing\FOCUS5452.fit -focus5 D:\Processing\FOCUS5502.fit
12:32:40 Finding the best focus position for each area using hyperbola curve fitting
12:32:40 Positions are for an image with pixel position 1,1 at left bottom. Area 1,1 is bottom left, area 3,3 is top right. Center area is area 2,2
12:32:40 Offset in focuser steps relative to center area (area 2,2).
12:32:40 █ █ █ █ █ █ Error, four or more images are required at different focus positions! █ █ █ █ █ █
Nicola
I will check it this afternoon.
You could try an older version for the time being:
https://sourceforge.net/projects/astap-program/files/windows_installer/older%20versions/
I tried it here and it works.
You could try to add -debug option. Then the GUI will open with the images. Select the inspector tab. The click then on hyperbola curve fitting button at the top.
Share also the five images and I will have a look here.
Note the focus is report as such:
D:\astap_test_files\focus_out_of_focus>echo Exit Code is 59240033
Exit Code is 59240033
Focus is then at position 5924. Remaining error 33
Han
I have updated the manual a little to make it clearer:
http://www.hnsky.org/astap#astap_command_line