naroo_reader/main.py
2023-08-22 23:19:10 +02:00

14 lines
335 B
Python
Executable file

#!/usr/bin/env python3
from classes.science.plate import Plate
from classes.utils.settings import Settings
from astropy.io.fits import open
from sys import argv as arguments
settings = Settings( arguments[ 1 : ] ) # remove the "main.py" part
hdul = open( settings.input )
plate = Plate( hdul[0].data )
plate.rotate()
hdul.close()