ApJdataFrames
Dahn2002Title
: ASTROMETRY AND PHOTOMETRY FOR COOL DWARFS AND BROWN DWARFS
Authors
: Dahn et al.
Data is from this paper: http://iopscience.iop.org/1538-3881/124/2/1170/fulltext/
In [2]:
%pylab inline
import seaborn as sns
import pandas as pd
import warnings
sns.set_context("notebook", font_scale=1.5)
warnings.filterwarnings("ignore")
In [6]:
names = ['Star','Spectral Type','MJ','BCJ','Mbol','R/R_sun','Teff']
tbl5 = pd.read_csv('../data/Dahn2002/tbl5.txt', sep='\t', names = names, usecols=['Spectral Type', 'BCJ'])
In [8]:
from gully_custom import specType
In [10]:
tbl5["SpT"] = specType(tbl5["Spectral Type"])
In [17]:
tbl5.to_csv('../data/Dahn2002/tbl5plus.txt', index=False)
In [14]:
plt.plot(tbl5.SpT, tbl5.BCJ, '.')
Out[14]:
In [15]:
tbl5.head(2)
Out[15]:
In [ ]:
In [ ]:
The end.