""" 
The main purpose of this script is to print headers informations that we get using the 
jfits-cassis library for heach HDU.
For each keyword, print the name, the value and the description/comment.

Warning: as the function is written in Java, the result will not be printed on
 jython console but on the one used to start CASSIS.

Author: J-M. Glorian
Author: M. Boiziot
Version: 1
Date: 01/20/16
Licence: CeCILL-C
Last update: 12-jan-2026
Tested on: CASSIS 6.5
"""

# The imports
from eu.omp.irap.cassis.file.fits.util import ScanFits
from java.io import File
from eu.omp.irap.cassis.properties import Software


# You have to change the path of the file here.
path = Software.getCassisPath() + "/delivery/script/data/CO.fits"

ScanFits.inspectFitsFile(File(path))
print("Fits file information is printed in the terminal from which CASSIS was started.")
