ApJdataFrames 002: Luhman2004b

Title: 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")


Populating the interactive namespace from numpy and matplotlib

Table 1- Composite photometry

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]:
component RA Dec Spectral Type Teff AJ Lbol R-I I J-H H-Ks Ks Mass
0 A 11 01 19.218 -77 32 38.60 M7.25 \pm 0.25 2838 0.45 0.0200 2.57 17.21 0.84 0.60 11.97 0.050
1 B 11 01 19.438 -77 32 37.36 M8.25 \pm 0.25 2632 0.00 0.0062 2.60 18.28 0.82 0.64 12.81 0.025

The end.