ApJdataFrames 009: Luhman2009

Title: An Infrared/X-Ray Survey for New Members of the Taurus Star-Forming Region
Authors: Kevin L Luhman, E. E. Mamajek, P R Allen, and Kelle L Cruz

Data is from this paper:
http://iopscience.iop.org/0004-637X/703/1/399/article#apj319072t2


In [1]:
%pylab inline
import seaborn as sns


Populating the interactive namespace from numpy and matplotlib

In [2]:
import warnings
warnings.filterwarnings("ignore")

In [3]:
import pandas as pd

Table 2- Members of Taurus in Spectroscopic Sample


In [4]:
tbl2 = pd.read_csv("http://iopscience.iop.org/0004-637X/703/1/399/suppdata/apj319072t2_ascii.txt", 
                   nrows=43, sep='\t', skiprows=2, na_values=[" sdotsdotsdot"])
tbl2.drop("Unnamed: 10",axis=1, inplace=True)

Clean the column names.


In [5]:
new_names = ['2MASS', 'Other_Names', 'Spectral_Type', 'T_eff', 'A_J','L_bol','Membership',
       'EW_Halpha', 'Basis of Selection', 'Night']
old_names = tbl2.columns.values
tbl2.rename(columns=dict(zip(old_names, new_names)), inplace=True)

In [6]:
tbl2.head()


Out[6]:
2MASS Other_Names Spectral_Type T_eff A_J L_bol Membership EW_Halpha Basis of Selection Night
0 J04034997+2620382 XEST 06-006 M5.25 3091 0.00 0.012 NaK, mu 9 +or- 0.5 X-ray 11
1 J04144739+2803055 XEST 20-066 M5.25 3091 0.00 0.120 NaK, mu 8.5 +or- 0.5 X-ray 21
2 J04145234+2805598 XEST 20-071 M3.25 3379 0.78 0.840 A_V, NaK, mu 7.5 +or- 0.5 X-ray 17
3 J04153916+2818586 NaN M3.75 3306 0.56 0.270 ex, NaK, A_V 14 +or- 1 IR 7
4 J04154278+2909597 IRAS 04125+2902 M1.25 3669 0.56 0.280 A_V, ex, mu 2.3 +or- 0.3 IR 45

In [7]:
sns.set_context("notebook", font_scale=1.5)

In [8]:
plt.plot(tbl2.T_eff, tbl2.L_bol, '.')
plt.ylabel(r"$L/L_{sun}$")
plt.xlabel(r"$T_{eff} (K)$")
plt.yscale("log")
plt.title("Luhman et al. 2009 Taurus Members")
plt.xlim(5000,2000)


Out[8]:
(5000, 2000)

Save the data tables locally.


In [10]:
! mkdir ../data/Luhman2009

In [11]:
tbl2.to_csv("../data/Luhman2009/tbl2.csv", sep="\t")

The end.