ApJdataFrames
Alves_de_Oliveira_2013Title
: Herschel survey of brown dwarf disks in ρ Ophiuchi
Authors
: C. Alves Alves de Oliveira, P Ábrahám, G Marton, C Pinte, Cs Kiss, M Kun, Á Kóspál, Philippe André, and V Konyves
Data is from this paper:
http://www.aanda.org/articles/aa/full_html/2013/11/aa22402-13/aa22402-13.html
In [1]:
%pylab inline
import seaborn as sns
In [2]:
import warnings
warnings.filterwarnings("ignore")
In [3]:
import pandas as pd
pd.options.display.max_columns = 150
So A&A offers no method to directly download a .txt file. SO I have to copy the table to a clipboard to read it in.
This. Boggles. My. Mind.
http://www.aanda.org/articles/aa/full_html/2013/11/aa22402-13/T1.html
names = ["Identifier","RA","Dec","SpT","A V","Ref.","70 μm","100 μm","160 μm"]
tbl1 = pd.read_clipboard(sep='\t', names = names)
Since the reading from the keyboard method is not automatically repeatable, let's save this to as tab-separated data file, locally.
Use tabs because there are commas in the content.
tbl1.to_csv("../data/Alves_de_Oliveira2013/tbl1.csv", sep='\t', index=False)
In [4]:
tbl1 = pd.read_csv("../data/Alves_de_Oliveira2013/tbl1.csv", sep='\t')
In [5]:
tbl1.head()
Out[5]:
Let's get all the data directly from c2d.
In [8]:
import astropy.units as u
In [9]:
from astroquery import irsa
custom_Irsa = irsa.Irsa
result = custom_Irsa.query_region('16:26:58.41 -24:21:30.0', radius=3.0*u.arcsec, catalog='dr4_clouds_full')
Out[9]:
In [6]:
tbl1.Identifier
Out[6]:
In [ ]:
In [ ]:
In [ ]:
Once again, having to use the clipboard.
http://www.aanda.org/articles/aa/full_html/2013/11/aa22402-13/T3.html
names = ["Identifier","RA","Dec","SpT","A V","Ref.","70 μm","100 μm","160 μm"]
tblA1 = pd.read_clipboard(sep='\t', names = names)
tblA1.to_csv("../data/Alves_de_Oliveira2013/tblA1.csv", sep = '\t', index=False)
In [16]:
tblA1 = pd.read_csv("../data/Alves_de_Oliveira2013/tblA1.csv", sep='\t', encoding='latin-1')
The End.