How to automate the preparation of Seestar images for HOYS upload
As a follow up to Mark Phillips’ Lightcurve of the Week 262, which focused on utilizing the ZWO Seestar scope for data capture, I have developed a small Python program to streamline the preparation of data obtained from the Seestar using Siril.
This program splits each image into Red (R), Green (G), and Blue (B) channels. It then updates the FITS header to comply with the requirements of the HOYS data server, renames the files, and places them into a designated directory ready for uploading.
For instance, where multiple targets are imaged in a single night, each image undergoes processing consecutively. This entire process is both simple and fast, taking less than a minute to prepare six files for upload.
For detailed instructions on setting up and installing this automation process, see below and also in the HOYS FAQs.
One time set up Windows
- Install Siril
- Install python 3.9 from windows store
- Install astropy package that contains key functionality and common tools needed for performing astronomy – on your computer open a command window and type pip install astropy
– You may need to run the command window as administrator. Instructions on how to do this can be found here.
- Create a folder for processing HOYS data, e.g. SeestarHOYS. (** it is important that path for this folder does not contain any spaces in the folder names**)
- Extract the 2 files in this zip file to the HOYS folder above (step 4).
- In the HOYS folder create a new folder called lights
Processing Seestar data
Copy data from the Seestar to your computer
In the directory you created above for the HOYS data, copy all the stacked Seestar files you want to process to the lights directory (delete any files from earlier processing).
How to access the Seestar stacked files:
- Connect your Seestar to your computer via the provided USB cable and power on
- Your Seestar should appear as a drive on your computer
- Open this drive and then open the MyWork folder
- For each target there should be 2 folders <target name> and <target name-sub>, eg M42 and M42-sub. The stacked file will be in the <target name> folder, eg M42
- Copy the stacked file with the fit file type ,eg Stacked_m42_10s_IRCUT……fit to the lights folder created above.
- You can repeat this process to move all your Seestar stacked files to your PC that are ready to be uploaded to the HOYS data server
Prepare the Seestar data for upload to the HOYS data server
- On your computer
- Open a command window navigate to the SeestarHOYS folder you created above
- type python seestarhoys.py
- This small python program will set your siril working directory to your SeestarHOYS directory
- Each file in the Lights folder will be processed in turn.
- Enter the HOYS target number when prompted. This is optional but makes it easier when uploading data to the Data Server.
- The FITS header will be updated to show the total exposure time for this stacked image (i.e. individual exposure time times the number of frames in the stack)
- Each R,G and B file will be renamed to the following format<HOYS target number>_<target name>_<Filter>_<total exposure time>_<date time>_<HH:MM:SS to ensure unique ID>
- Each R,G and B file will be moved to a folder called HOYS
- This process is repeated for each file in the Lights folder
- When complete, all of the individual R,G,B files will be in the HOYS directory and are ready to upload to the HOYS data server.