Jha et al. 2007
Title: Improved Distances to Type Ia Supernovae with Multicolor Light-Curve Shapes: MLCS2k2
Authors: Saurabh Jha, Adam G. Riess, and Robert P. Kirshner
ADS: http://adsabs.harvard.edu/abs/2007ApJ...659..122J
In [1]:
%matplotlib inline
%config InlineBackend.figure_format = 'retina'
import numpy as np
import matplotlib.pyplot as plt
In [2]:
import pandas as pd
In [3]:
#! mkdir ../data/Jha2007
Uncomment out the line below or download directly from the Paper's ApJ Website
In [4]:
#! wget -P ../data/Jha_2007ApJ...659..122J/ -e html_extension=Off http://iopscience.iop.org/article/10.1086/512054/fulltext/63969.tb1.txt
In [5]:
! head -n 4 ../data/Jha2007/63969.tb1.txt
In [6]:
names = ['SN_Ia','galactic_longitude','galactic_latitude','cz_km_s_sun','cz_km_s_LG',
'cz_km_s_CMB','morphological_type','SN_offset_N_as','SN_offset_E_as','t_1_days',
'filters','E_B_V','Refs']
In [7]:
df_tbl1 = pd.read_csv('../data/Jha2007/63969.tb1.txt', names=names,
delim_whitespace=True, na_values='\ldots')
In [8]:
df_tbl1.tail()
Out[8]:
In [9]:
import matplotlib.ticker as plticker
In [10]:
fig,ax=plt.subplots(figsize=(8,8))
#Spacing between each line
intervals = 1.0
loc = plticker.MultipleLocator(base=intervals)
ax.xaxis.set_major_locator(loc)
ax.yaxis.set_major_locator(loc)
# Add the grid
ax.grid(which='major', axis='both', linestyle='-')
ax.plot(df_tbl1.SN_offset_E_as/4.0, df_tbl1.SN_offset_N_as/4.0, '.')
ax.plot([0], [0], 'ro')
ax.set_xlim(-25, 25)
ax.set_ylim(-25, 25)
ax.xaxis.set_ticklabels([])
ax.yaxis.set_ticklabels([])
ax.set_title('Host galaxy type Ia supernovae distances')
ax.set_xlabel('Kepler pixels')
ax.set_ylabel('Kepler pixels');
In [11]:
rad_dist = np.sqrt(df_tbl1.SN_offset_E_as**2 + df_tbl1.SN_offset_N_as**2)
In [12]:
import seaborn as sns
In [13]:
sns.distplot(rad_dist/4.0)
plt.xlabel('$N$ Kepler pixels');
In [14]:
np.percentile(rad_dist/4.0, 80)
Out[14]:
Most supernovae fall with 13 Kepler pixels of the center of the Galaxy.