ApJdataFrames
Liu et al. 2010Title
: Discovery of a Highly Unequal-mass Binary T Dwarf with Keck Laser Guide Star Adaptive Optics: A Coevality Test of Substellar Theoretical Models and Effective Temperatures
Authors
: Liu, Dupuy, Leggett
Data is from this paper:
http://iopscience.iop.org/article/10.1088/0004-637X/722/1/311/
In [1]:
import warnings
warnings.filterwarnings("ignore")
In [2]:
from astropy.io import ascii
In [3]:
import pandas as pd
In [4]:
#! mkdir ../data/Liu2010
#! curl http://iopscience.iop.org/0004-637X/722/1/311/suppdata/apj336343t6_ascii.txt > ../data/Liu2010/apj336343t6_ascii.txt
In [5]:
tbl6 = pd.read_csv("../data/Liu2010/apj336343t6_ascii.txt",
sep="\t", na_values=" ... ", skiprows=[0,1,2], skipfooter=1, usecols=range(9))
tbl6.head()
Out[5]:
We want the J-Band coefficients, in order of highest order coefficient to lowest order coefficient.
In [6]:
J_s = tbl6.loc[0]
In [7]:
coeffs = J_s[["c_"+str(i) for i in range(6, -1, -1)]].values
In [8]:
func = np.poly1d(coeffs)
In [9]:
print(func)
The end