naroo_reader/main.py
2023-08-22 03:37:40 +02:00

19 lines
406 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 )
hdul = open( settings.filename )
plate = Plate( hdul[0].data )
head = hdul[0].header
hdul.close()
import matplotlib.pyplot as plt
plt.imshow( plate.image[ plate.border.slice() ] )
plt.show()