ApJdataFrames
Chabrier2000Title
: Deuterium Burning in Substellar Objects
Authors
: CBAH
Data is from this paper:
http://adsabs.harvard.edu/abs/2000ApJ...542L.119C
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]:
names = ["mass","t_Myr","Teff","log_L","log_g", "MB","MV","MR","MI","MJ","MH","MK"]
tbl1 = pd.read_csv("http://iopscience.iop.org/1538-4357/542/2/L119/fulltext/005577.tb1.txt",
skiprows=0, sep='\t', names=names, usecols=["mass","t_Myr","Teff","log_L"])
tbl1.mass.ffill(inplace=True)
tbl1["D_abundance"] = np.NaN
tbl1["D_abundance"][0::2]=2.0e-5
tbl1["D_abundance"][1::2]=1.0e-5
tbl1
Out[4]:
! mkdir ../data/Chabrier2000
In [5]:
tbl1.to_csv("../data/Chabrier2000/tbl1.csv", sep='\t', index=False)
Script finished.