Show UCAC4 stars in the Deep Sky Annotation
Posted: Mon Apr 08, 2024 12:54 pm
Hello,
I have now a small program for the generation of a custom star catalogue from the UCAC4 catalogue.
The UCAC4 catalogue is much too large for importing completely in the Deep Sky Annotation tool.
So I did a small script and a C-program for this.
Unzip the following file where you want.
Modification: for the last version, please download the file from here: viewtopic.php?t=8255
Ignore the attachments at the end of this message !
The ZIP file contains the files:
UCAC4_annotation.py => SharpCap script for the IronPython console (manual start)
UCAC4_annotation_menu.py => Same SharpCap script for the menu
UCAC4_read.exe => the C-program for the UCAC4 catalogue (with my own modification for working with SharpCap)
You need the UCAC4 catalogue installed on your computer.
The original version with the "\u4b" directory with the z001 to z900 files.
When you have the files on your computer, it is necessary to modify some input in the script.
Open the script with a text editor (Notepad or similar). Change the path of the UCAC4 catalogue. Note the "\\" double character (one "\" could work too, but it is safer to have it double).
If you have SharpCap version 4.0, then please modify the path in the variable "script_path".
SharpCap 4.1 and above can find automatically the location of the script.
If you want to use the "menu" version of my script, you need to insert the script in the list under:
"File" - "SharpCap Settings" - "Startup Scripts" - "Add".
After this, restart SharpCap. The menu "UAC4" will appear. in the menu
If you want use the script from the console, then open it and start it with the green arrow.
For a quick test, use the Sky Simulator camera.
Start the Deep Sky Annotation and then start the UCAC4 script.
Click on the button "Copy UCAC4 stars to clipboard". A file with the stars in the field of the camera is generated in the following directory:
C:\Users\%USER%\AppData\Roaming\SharpCap\AnnotationCatalogs\currentroi.txt
Note: the file name could change later in *.csv when Robin finish some work on the Deep Sky Annotation tool.
Paste the stars in the Deep Sky Annotation tool by clicking the button "Paste Custom Object Info".
A new catalogue will appear "Pasted from Clipboard (xxx objects)". And here the result (small region of my monitor):
When you move the telescope and you have a new star field, first click the button "Clear" from the Deep Sky Annotation before generating a new list of stars with my script. The "Paste Custom Object Info" does not delete the preceding list.
What I have to do next:
- set a magnitude limit
- set a maximum number limit
- solve some behaviour near the 90° declination
The actual script generates all the stars that is located in the field of view of the camera.
If you have a large detector with a short focal, then you will have several 10'000 stars.
That will be again too much for the Deep Sky Annotation tool. So the tool with the UCAC4 catalogue is for long focal telescope or small detector.
Best regards and give some feedback,
Jean-Francois
I have now a small program for the generation of a custom star catalogue from the UCAC4 catalogue.
The UCAC4 catalogue is much too large for importing completely in the Deep Sky Annotation tool.
So I did a small script and a C-program for this.
Unzip the following file where you want.
Modification: for the last version, please download the file from here: viewtopic.php?t=8255
Ignore the attachments at the end of this message !
The ZIP file contains the files:
UCAC4_annotation.py => SharpCap script for the IronPython console (manual start)
UCAC4_annotation_menu.py => Same SharpCap script for the menu
UCAC4_read.exe => the C-program for the UCAC4 catalogue (with my own modification for working with SharpCap)
You need the UCAC4 catalogue installed on your computer.
The original version with the "\u4b" directory with the z001 to z900 files.
When you have the files on your computer, it is necessary to modify some input in the script.
Open the script with a text editor (Notepad or similar). Change the path of the UCAC4 catalogue. Note the "\\" double character (one "\" could work too, but it is safer to have it double).
If you have SharpCap version 4.0, then please modify the path in the variable "script_path".
SharpCap 4.1 and above can find automatically the location of the script.
If you want to use the "menu" version of my script, you need to insert the script in the list under:
"File" - "SharpCap Settings" - "Startup Scripts" - "Add".
After this, restart SharpCap. The menu "UAC4" will appear. in the menu
If you want use the script from the console, then open it and start it with the green arrow.
For a quick test, use the Sky Simulator camera.
Start the Deep Sky Annotation and then start the UCAC4 script.
Click on the button "Copy UCAC4 stars to clipboard". A file with the stars in the field of the camera is generated in the following directory:
C:\Users\%USER%\AppData\Roaming\SharpCap\AnnotationCatalogs\currentroi.txt
Note: the file name could change later in *.csv when Robin finish some work on the Deep Sky Annotation tool.
Paste the stars in the Deep Sky Annotation tool by clicking the button "Paste Custom Object Info".
A new catalogue will appear "Pasted from Clipboard (xxx objects)". And here the result (small region of my monitor):
When you move the telescope and you have a new star field, first click the button "Clear" from the Deep Sky Annotation before generating a new list of stars with my script. The "Paste Custom Object Info" does not delete the preceding list.
What I have to do next:
- set a magnitude limit
- set a maximum number limit
- solve some behaviour near the 90° declination
The actual script generates all the stars that is located in the field of view of the camera.
If you have a large detector with a short focal, then you will have several 10'000 stars.
That will be again too much for the Deep Sky Annotation tool. So the tool with the UCAC4 catalogue is for long focal telescope or small detector.
Best regards and give some feedback,
Jean-Francois