ApJdataFrames
Muzic2012Title
: Substellar Objects in Nearby Young Clusters (SONYC). V. New Brown Dwarfs in ρ Ophiuchi
Authors
: Muzic et al.
Data is from this paper:
http://iopscience.iop.org/0004-637X/744/2/134/
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]:
addr = "http://iopscience.iop.org/0004-637X/744/2/134/suppdata/apj408590t1_ascii.txt"
names = ["ID","RA", "DEC", "ins", "A_V_phot","A_V","T_eff","SpT","Ref","Name"]
tbl1 = pd.read_csv(addr, sep='\t', skiprows=10, skipfooter=8, index_col=False,
engine='python', na_values=r" ... ", names = names)
tbl1.T_eff = tbl1.T_eff.str.replace(">or=", '')
tbl1
Out[3]:
In [4]:
addr = "http://iopscience.iop.org/0004-637X/744/2/134/suppdata/apj408590t2_ascii.txt"
names = ["ID","SpT_HPI", "SpT_Q", "SpT_H_2O"]
tbl2 = pd.read_csv(addr, sep='\t', skiprows=8, skipfooter=5, index_col=False,
engine='python', na_values=r" ... ", names = names)
tbl2
Out[4]:
Need to parse these strings if I'm going to use this data.
In [5]:
!mkdir ../data/Muzic2012
In [6]:
tbl1.to_csv("../data/Muzic2012/tbl1.csv", sep='\t', index=False)
Script finished.