Menu

Exit code 0 for focus command line

2023-04-10
2023-04-14
  • Florian Signoret

    Hello,
    I am under windows with ASTAP v2023.04.09

    The command line works, but I cannot get any result for the focus command:

    D:\Temp\focus\test3>D:\astap\astap_cli -f focus_2023-3-5T8h2m52s_10.6000.fits -analyse 30
    HFD_MEDIAN=11.3
    STARS=14
    
    D:\Temp\focus\test3>echo Exit Code is 1128000014
    Exit Code is 1128000014
    
    D:\Temp\focus\test3>D:\astap\astap_cli -focus1 D:\Temp\focus\test3\focus_2023-3-5T8h2m52s_10.6000.fits -focus2 D:\Temp\focus\test3\focus_2023-3-5T8h2m52s_11.0000.fits -focus3 D:\Temp\focus\test3\focus_2023-3-5T8h2m52s_11.4000.fits -focus4 D:\Temp\focus\test3\focus_2023-3-5T8h2m52s_11.8000.fits -focus5 D:\Temp\focus\test3\focus_2023-3-5T8h2m52s_12.2000.fits
    
    D:\Temp\focus\test3>echo Exit Code is 0
    Exit Code is 0
    

    Thanks for your help.
    Clear skies
    Florian

     
  • han.k

    han.k - 2023-04-11

    Hi Florian,

    The command line looks okay but you can not use the barebone solver astap_cli for that. This version is stripped to the minimum. Just change to command line for astap.exe and it should work.

    The find focus routine you could test also in tab "Inspector" (ctrl+A). It is the same routine.

    Cheers,
    Han

     
  • Florian Signoret

    Hello,
    Thanks for the reply!
    I got the same result using astap.exe.
    The focus works very well in the UI, and I can see the process and result in the logs.
    But using the command line, I have no clue of the result, neither in the standard output nor in the return code.

    D:\Temp\focus\test3>D:\astap\astap.exe -f focus_2023-3-5T8h2m52s_10.6000.fits -analyse 30
    
    D:\Temp\focus\test3>echo Exit Code is 1128000014
    Exit Code is 1128000014
    
    D:\Temp\focus\test3>D:\astap\astap.exe -focus1 D:\Temp\focus\test3\focus_2023-3-5T8h2m52s_10.6000.fits -focus2 D:\Temp\focus\test3\focus_2023-3-5T8h2m52s_11.0000.fits -focus3 D:\Temp\focus\test3\focus_2023-3-5T8h2m52s_11.4000.fits -focus4 D:\Temp\focus\test3\focus_2023-3-5T8h2m52s_11.8000.fits -focus5 D:\Temp\focus\test3\focus_2023-3-5T8h2m52s_12.2000.fits
    
    D:\Temp\focus\test3>echo Exit Code is 0
    Exit Code is 0
    

    Thanks for your help.
    Florian

     

    Last edit: Florian Signoret 2023-04-12
    • han.k

      han.k - 2023-04-12

      I will test it tomorrow. Haven't used it fora long time.

      Can you share the 5 files used?

      Uing 5 is problythe bare minimum. Does these five result in a good resultin the GUI ?

      Han

       
  • Florian Signoret

    Hello,
    I also tested with more files.
    In the GUI I have correct results.
    Here are the files.
    Thanks
    Florian

     
  • han.k

    han.k - 2023-04-13

    Hallo florian.

    For one image the HFD is too large. The others are all one side of the focus. That will not work. You will need images at both sides of the focus curve. Secondly the HFD values are pretty high. You have to stay closer to the focus.I would not go beyond HFD 12, maybe 14.

    See attached image.

    Does it work for other images with lower HFD values?

    Han

     

    Last edit: han.k 2023-04-13
  • Florian Signoret

    Indeed, it works with more images, thanks.
    I would have expected an error code instead of 0, though.
    Clear skies!
    Florian

     
  • han.k

    han.k - 2023-04-14

    If you find anything else please report.

    Yes zero indicates "failure curve fitting". Any other value could be interpreted as a focus point.

    Clear skies, Han

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.