In [14]:
import pyfits as pf
In [2]:
example_file = pf.open('/home/mldantas/Dropbox/DoutoradoIAG/Challenge/models_forchallenge/Eku1.30Zm0.25T00.0300_iTp0.00_baseFe.fits') # with my personal path
In [3]:
example_file.info()
In [4]:
# see 'Dimensions'
In [5]:
print_header = example_file[0].header
In [6]:
print_header
Out[6]:
In [7]:
print (print_header.keys())
In [8]:
data = print_header['CRVAL1']
In [9]:
data
Out[9]:
In [10]:
print_header['CDELT1']
Out[10]:
In [11]:
print_header['CRPIX1']
Out[11]:
In [15]:
dataset = pf.getdata('/home/mldantas/Dropbox/DoutoradoIAG/Challenge/models_forchallenge/Eku1.30Zm0.25T00.0300_iTp0.00_baseFe.fits')
In [18]:
import matplotlib.pyplot as plt
In [26]:
plt.plot(dataset)
plt.xlim(0,10000)
plt.show()
In [ ]: