Show UCAC4 stars in the Deep Sky Annotation
-
Jean-Francois
- Posts: 822
- Joined: Sun Oct 13, 2019 10:52 am
- Location: Germany
Re: Show UCAC4 stars in the Deep Sky Annotation
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
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
-
Jean-Francois
- Posts: 822
- 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
-
Jean-Francois
- Posts: 822
- 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
-
watan_rockhand
- 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 4334 times
-
Jean-Francois
- Posts: 822
- 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
Re: Show UCAC4 stars in the Deep Sky Annotation
Dear Jean-François,
Thanks to you and our conversations during the OHP spectro party last week, I am able to use your v1.4 script to get the UCAC4 catalog in my field of view.
Unfortunately, I can only use the UCAC4_annotation_menu_1.4.py script. When I try to use the v1.5 that you sent as test to Hiroyuki (that you called Hiroyuki_test_version in message #13, not the one deleted by Robin later), I get the incorrect UCAC4_read.exe version window.
I took care to unzip the files with 7Z to get the real creation date and when I test it in the console, I got the effective creation date "Sat Apr 13 13:48:47 2024". And still, when I try to run the script, I get the error message.
Did I miss something ? It drives me crazy as I am not at all efficient in coding and all that touches softwares of all kind.
Isabelle Auvray
PS : I hope your return travel to Germany went well. For our part, Laurent and I arrived in Nancy last night at 2h30 !!
Thanks to you and our conversations during the OHP spectro party last week, I am able to use your v1.4 script to get the UCAC4 catalog in my field of view.
Unfortunately, I can only use the UCAC4_annotation_menu_1.4.py script. When I try to use the v1.5 that you sent as test to Hiroyuki (that you called Hiroyuki_test_version in message #13, not the one deleted by Robin later), I get the incorrect UCAC4_read.exe version window.
I took care to unzip the files with 7Z to get the real creation date and when I test it in the console, I got the effective creation date "Sat Apr 13 13:48:47 2024". And still, when I try to run the script, I get the error message.
Did I miss something ? It drives me crazy as I am not at all efficient in coding and all that touches softwares of all kind.
Isabelle Auvray
PS : I hope your return travel to Germany went well. For our part, Laurent and I arrived in Nancy last night at 2h30 !!
- Attachments
-
- Capture d’écran (174).png (39.28 KiB) Viewed 3488 times
-
Jean-Francois
- Posts: 822
- Joined: Sun Oct 13, 2019 10:52 am
- Location: Germany
Re: Show UCAC4 stars in the Deep Sky Annotation
Hello Isabelle,
OK, I will have a look ... I did too much different versions that I can not follow it myself.
I started this morning at 11:00 and I arrived at home at 22:20.
So I will now sleep and I will have a look at the problem tomorrow.
Salutations,
Jean-Francois
OK, I will have a look ... I did too much different versions that I can not follow it myself.
I started this morning at 11:00 and I arrived at home at 22:20.
So I will now sleep and I will have a look at the problem tomorrow.
Salutations,
Jean-Francois
-
Jean-Francois
- Posts: 822
- Joined: Sun Oct 13, 2019 10:52 am
- Location: Germany
Re: Show UCAC4 stars in the Deep Sky Annotation
Hello Isabelle,
Try the version from this topic: viewtopic.php?p=43503#p43503
Modification: for the last version, please download the file from here: viewtopic.php?t=8255
Ignore the attachments of this message !
If it is fine, then I will copy the same zip in this actual topic.
So that people will found it here too.
Please, erase all the other files from the ZIP and unzip the files from the upper topic link.
Then have a look in the *.py files. You need to change very few things (the path of your UCAC4 catalogue for example).
In the upper ZIP file, you will have two other scripts (for the occultation and the LED-Calibration).
Ignore the second if you have not QHY174GPS camera.
Jean-Francois
Try the version from this topic: viewtopic.php?p=43503#p43503
Modification: for the last version, please download the file from here: viewtopic.php?t=8255
Ignore the attachments of this message !
If it is fine, then I will copy the same zip in this actual topic.
So that people will found it here too.
Please, erase all the other files from the ZIP and unzip the files from the upper topic link.
Then have a look in the *.py files. You need to change very few things (the path of your UCAC4 catalogue for example).
In the upper ZIP file, you will have two other scripts (for the occultation and the LED-Calibration).
Ignore the second if you have not QHY174GPS camera.
Jean-Francois
Last edited by Jean-Francois on Thu Feb 27, 2025 8:43 pm, edited 2 times in total.
Re: Show UCAC4 stars in the Deep Sky Annotation
Hi Jean-François and thanks a lot !
The UCAC4 v1.6 script works perfectly.
I will try the other script later as I will leave soon to our spot for this night occultation (1998AG6 occult UCAC4 405-108887).
https://cloud.occultwatcher.net/event/1 ... 34-U108887#
Have a good evening.
Isabelle
The UCAC4 v1.6 script works perfectly.
I will try the other script later as I will leave soon to our spot for this night occultation (1998AG6 occult UCAC4 405-108887).
https://cloud.occultwatcher.net/event/1 ... 34-U108887#
Have a good evening.
Isabelle
-
Jean-Francois
- Posts: 822
- Joined: Sun Oct 13, 2019 10:52 am
- Location: Germany
Re: Show UCAC4 stars in the Deep Sky Annotation
Hello Isabelle,
Thanks for the confirmation that the script is working.
Good luck for your observation.
Jean-Francois
Thanks for the confirmation that the script is working.
Good luck for your observation.
Jean-Francois