ApJdataFrames
002: Luhman2004bTitle
: The First Discovery of a Wide Binary Brown Dwarf
Authors
: Luhman K.L.
Data is from this paper: http://iopscience.iop.org/0004-637X/614/1/398
In [1]:
import warnings
warnings.filterwarnings("ignore")
Since this table is formatted in the CDS
format, it is easiest to take advantage of the Astropy
functionality, ascii.read
, which automatically detects the header formatting. We will also take advantage of the fact that ascii.read
can accept a url as an argument, so we won't have to actually save the data locally. Let's hope ApJ doesn't change their web link though.
In [3]:
import pandas as pd
In [5]:
names = ["component", "RA", "Dec", "Spectral Type", "Teff", "AJ", "Lbol", "R-I","I", "J-H","H-Ks", "Ks", "Mass"]
tbl1 = pd.read_csv("http://iopscience.iop.org/0004-637X/614/1/398/fulltext/60660.tb1.txt", sep='\t', names=names)
tbl1
Out[5]:
The end.