ApJdataFrames
009: Luhman2009Title
: 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
In [2]:
import warnings
warnings.filterwarnings("ignore")
In [3]:
import pandas as pd
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]:
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]:
In [10]:
! mkdir ../data/Luhman2009
In [11]:
tbl2.to_csv("../data/Luhman2009/tbl2.csv", sep="\t")
The end.