Trying to retrace my steps for creating LCS_all_size.fits because there seems to be some discrepancies in how the simard+2011 catalog was matched to my sources.
There are a few galaxies that are in Simard, but their values for B/T where not propagated through to the final fits table - yikes!
So what is the process to make LCS_all_size.fits
In [3]:
from matplotlib import pyplot as plt
import numpy as np
%matplotlib inline
In [4]:
y = np.array([0.,1.,2.,3.,4.,5.],'f')
t = np.array([0.,.54,.72,.91,1.01,1.17],'f')
In [5]:
plt.figure()
plt.plot(t,y,'bo')
Out[5]:
In [11]:
plt.figure()
plt.plot(t**2,y,'bo')
plt.xlabel('Time Squared')
plt.ylabel('Distance')
c = np.polyfit(t**2,y,1)
tfit = np.arange(0,1.4,.01)
yfit = np.polyval(c,tfit)
plt.plot(tfit,yfit,'r-')
print c
In [12]:
tfit
Out[12]:
In [ ]: