Commit c9c10514 authored by Alfonso's avatar Alfonso
Browse files

prima versione rmf

parent 66c74b6c
Loading
Loading
Loading
Loading

README.txt

0 → 100644
+2 −0
Original line number Diff line number Diff line
SCRIVI UN READ ME GIGANTE CHE SPIEGA IL TUO CODICE
RISCHI DI NON RICORDARE UN CAZZO DEGLI SCRIPT CHE CREI

all_info_fits.py

0 → 100644
+19 −0
Original line number Diff line number Diff line
#printa tutte le info di un file fits
#sostituisci il path del file .fits

from astropy.io import fits

# Percorso del file FITS
file_path = '/home/alfonso/Scrivania/THESEUS/XGIS-X_0deg_reqEOL_v8.rmf'

# Apri il file FITS
with fits.open(file_path) as hdul:
    # Stampa un sommario delle HDU nel file
    hdul.info()
    
    # Itera su tutte le HDU e stampa l'header e i dati
    for hdu in hdul:
        print(f"\nHeader HDU {hdul.index(hdu)}:")
        print(hdu.header)
        print("\nDati:")
        print(hdu.data)

arf/SaeFF_0.0_0.0.arf

0 → 100644
+8.44 KiB

File added.

No diff preview for this file type.

+8.44 KiB

File added.

No diff preview for this file type.

+8.44 KiB

File added.

No diff preview for this file type.

Loading