ApJdataFrames Dahn2002

Title: 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")


Populating the interactive namespace from numpy and matplotlib

Table 5


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]:
[<matplotlib.lines.Line2D at 0x1135eb5d0>]

In [15]:
tbl5.head(2)


Out[15]:
Spectral Type BCJ SpT
0 M5.5 2.02 5.5
1 M6.5 2.05 6.5

In [ ]:


In [ ]:

The end.