This project automates the process of preparing, filtering and uploading astronomical data from ROTUZ to the BHTOM system.
The core logic is handled by main.py. You pass the path to a folder containing the data you want to process. The script then performs the following operations:
-
Unpacking
All.gzfiles in the specified directory are automatically unzipped [unzip_files.sh]. -
File Processing
Each file is processed individually:- The script checks whether any astronomical objects are detected in the image [
stars_detection.py]. - The photometric filter is extracted from the filename [
filter.py]. - If the object name from the
.fitsfile differs from the name used on BHTOM, it is mapped to the correct version [stars_detection.py]. - A log entry is created, including a timestamp, object name, filename and detection status [
logs.py].
- The script checks whether any astronomical objects are detected in the image [
-
Uploading to BHTOM
If the file contains detectable objects, it is sent to the BHTOM system via the API [upload_files.py].