In [14]:
%matplotlib inline
In [12]:
import numpy as np
import matplotlib.pyplot as plt
from astropy.io import ascii
In [10]:
data = ascii.read('/home/glauffer/Dropbox/FURG/final_project/data/kplr001026032-2009166043257_llc.dat')
data
# Time (days), Raw Flux, Raw Flux error, Corrected Flux, Corrected Flux error
Out[10]:
In [15]:
plt.plot(data['col1'], data['col4'])
Out[15]:
In [19]:
#convertendo fluxo em magnitude
mag = -2.5 * np.log(data['col4'])
mag
Out[19]:
In [22]:
plt.plot(data['col1'], mag)
plt.gca().invert_yaxis()
plt.xlabel('Dias [JD]')
plt.ylabel('Magnitude')
Out[22]:
In [28]:
kpl6b = ascii.read('/home/glauffer/Dropbox/FURG/final_project/data/kplr010874614-2009131105131_llc.dat')
#kpl6b
mag6b = -2.5 * np.log(kpl6b['col4'])
plt.clf()
plt.plot(kpl6b['col1'], mag6b)
#plt.plot(kpl6b['col1'], kpl6b['col4'])
plt.gca().invert_yaxis()
plt.title('Kepler 6B - KIC 10874614')
plt.xlabel('Dias [JD]')
plt.ylabel('Magnitude')
Out[28]:
In [29]:
#supernova KSN 2011a
sn = ascii.read('/home/glauffer/Dropbox/FURG/final_project/data/kplr008480662-2011271113734_llc.dat')
magSN = -2.5 * np.log(sn['col4'])
plt.clf()
plt.plot(sn['col1'], magSN)
plt.gca().invert_yaxis()
plt.title('KSN 2011a - KIC 8480662')
plt.xlabel('Dias [JD]')
plt.ylabel('Magnitude')
Out[29]:
In [ ]: