Hello Hiroyuki,
In the case that something is wrong with the "z001" file.
I search in the internet a description for the download of the UCAC4 catalogue ... I found this:
https://forums.dc3.com/showthread.php?4 ... -Oct-2023)
If you want to download again ... go the section of the UCAC4 and follow the instructions.
Important is to set the data transfer to binary.
I did the new download for testing the files. My scripts work.
Ignore the step with the "Catalogue Checker", that is specific for the PinPoint software.
Regards,
Jean-Francois
Show UCAC4 stars in the Deep Sky Annotation
-
- Posts: 417
- Joined: Sun Oct 13, 2019 10:52 am
- Location: Germany
-
- Posts: 417
- Joined: Sun Oct 13, 2019 10:52 am
- Location: Germany
Re: Show UCAC4 stars in the Deep Sky Annotation
Hello Hiroyuki,
Maybe the best news of the day ... I think that I found the reason of the problem.
In fact .. all is working properly ... except that you have a blank in your directory
I remark that you saved the script in a subfolder of "SharpCap Captures" ... that is the error.
The return value "1" was not coming from my C-program, but from the os.system() function !
Normally it is possible to use a path with blank inside with the "r" before the string.
But here in my script ... we have a second important blank between "UCAC4_read" and "-v".
I do not found a combination of "" or """ or ' ' with the "r" for solving the problem.
=> so, please try my script from a path without a blank.
One solution would be to modify (again) the C-code of "UCAC4_read.exe",
so that the program return the version with only "UCAC4_read", also without parameter.
So in this case the r"string" trick will work (I hope).
Regards,
Jean-Francois
Maybe the best news of the day ... I think that I found the reason of the problem.
In fact .. all is working properly ... except that you have a blank in your directory
I remark that you saved the script in a subfolder of "SharpCap Captures" ... that is the error.
The return value "1" was not coming from my C-program, but from the os.system() function !
Normally it is possible to use a path with blank inside with the "r" before the string.
But here in my script ... we have a second important blank between "UCAC4_read" and "-v".
I do not found a combination of "" or """ or ' ' with the "r" for solving the problem.
=> so, please try my script from a path without a blank.
One solution would be to modify (again) the C-code of "UCAC4_read.exe",
so that the program return the version with only "UCAC4_read", also without parameter.
So in this case the r"string" trick will work (I hope).
Regards,
Jean-Francois
-
- Posts: 417
- Joined: Sun Oct 13, 2019 10:52 am
- Location: Germany
Re: Show UCAC4 stars in the Deep Sky Annotation
Hello,
I search a little bit deeper ... I found the "^" character.
Add a line in the script:
UCAC4_script_path = UCAC4_script_path.Replace(" ", "^ ")
Regards,
Jean-Francois
I search a little bit deeper ... I found the "^" character.
Add a line in the script:
UCAC4_script_path = UCAC4_script_path.Replace(" ", "^ ")
Code: Select all
# Test UCAC4_read.exe progam, if exists and which version
if os.path.exists(UCAC4_script_path + "\\UCAC4_read.exe"): # UCAC4_read.exe exists
UCAC4_script_path = UCAC4_script_path.Replace(" ", "^ ")
UCAC4_read_version = os.system(UCAC4_script_path + "\\" + "UCAC4_read -v") / 10.0
Jean-Francois
-
- Posts: 27
- Joined: Sat Jun 27, 2020 11:20 am
Re: Show UCAC4 stars in the Deep Sky Annotation
Hello Jean,
Thank you for letting me know the cause!
It is complete.
Best regards,
Hiroyuki Watanabe
Thank you for letting me know the cause!
It is complete.
Best regards,
Hiroyuki Watanabe
- Attachments
-
- Show UCAC4 stars.jpg (865.52 KiB) Viewed 472 times
-
- Posts: 417
- Joined: Sun Oct 13, 2019 10:52 am
- Location: Germany
Re: Show UCAC4 stars in the Deep Sky Annotation
Hello,
Yes, finally !
I will prepare the update and send it tomorrow.
Regards,
Jean-Francois
Yes, finally !
I will prepare the update and send it tomorrow.
Regards,
Jean-Francois