ApJdataFrames
Schlieder2012Title
: THE Na 8200 Å DOUBLET AS AN AGE INDICATOR IN LOW-MASS STARS
Authors
: Joshua E Schlieder, Sebastien Lepine, Emily Rice, Michal Simon, Drummond Fielding, and Rachael Tomasino
Data is from this paper:
http://iopscience.iop.org/1538-3881/143/5/114/article
In [1]:
%pylab inline
import seaborn as sns
sns.set_context("notebook", font_scale=1.5)
import warnings
warnings.filterwarnings("ignore")
In [2]:
import pandas as pd
In [3]:
from astropy.io import ascii
In [4]:
tbl1 = pd.read_csv("http://iopscience.iop.org/1538-3881/143/5/114/suppdata/aj424365t1_ascii.txt",
skipfooter=2, skiprows=[0,1,2,4], sep='\t')
tbl1.drop("Unnamed: 7", axis=1, inplace=True)
tbl1
Out[4]:
In [5]:
tbl2 = pd.read_csv("http://iopscience.iop.org/1538-3881/143/5/114/suppdata/aj424365t2_ascii.txt",
skipfooter=5, skiprows=[0,1,2,4], sep='\t')
tbl2.drop("Unnamed: 7", axis=1, inplace=True)
tbl2
Out[5]:
In [ ]:
tbl4 = pd.read_csv("http://iopscience.iop.org/1538-3881/143/5/114/suppdata/aj424365t4_ascii.txt",
skipfooter=3, skiprows=[0,1,2,3,5], sep='\t', na_values="sdotsdotsdot")
tbl4.drop("Unnamed: 5", axis=1, inplace=True)
In [21]:
tbl4_1Gyr = tbl4[36:]
tbl4_1Gyr
Out[21]:
In [33]:
mass_bins = [0.5, 0.3, 0.2, 0.1] #Solar masses
tbl4_5Myr = tbl4[(tbl4.Age == "5")]
tbl4_5Myr["Mass"] = mass_bins
tbl4_5Myr
Out[33]:
Script finished.