In [1]:
%pylab inline
%config InlineBackend.figure_format = 'retina'
import astropy.io.ascii as aa
import astropy.io.fits as af
import binned
import bisect
import emcee
import gzip
from matplotlib.colors import LogNorm
import os
import os.path as op
import plotutils.autocorr as ac
import plotutils.plotutils as pu
import plotutils.runner as pr
import scipy.integrate as sint
import scipy.interpolate as si
import scipy.optimize as so


Populating the interactive namespace from numpy and matplotlib

Occurrence Rate Calculations (Binned)


In [2]:
hw_data_directory = '/Users/farr/Documents/Research/KepHackWeek/data'
occur_dir = '/Users/farr/Google Drive/Kepler ExoPop Hack 2015/end2end_occ_calc'
eff_dir = '/Volumes/KepHacWkWMF/Kepler_HW2015/Dp4_DetectionCountours/v0'

In [3]:
rbins = array([1.5**(i-1) for i in range(9)])
pbins = array([10*2**i for i in range(6)])
print rbins, pbins


[  0.66666667   1.           1.5          2.25         3.375        5.0625
   7.59375     11.390625    17.0859375 ] [ 10  20  40  80 160 320]

In [4]:
def integrate_efficiency(ps, rs, eff, pmin, pmax, rmin, rmax):
    sel = (ps >= pmin) & (ps < pmax)
    p_integral = sint.simps(eff[sel, :], ps[sel], axis=0)
    p_integral = p_integral / (np.max(ps[sel])-np.min(ps[sel]))
    sel = (rs >= rmin) & (rs < rmax)
    return sint.simps(p_integral[sel], rs[sel]) / (np.max(rs[sel]) - np.min(rs[sel]))

In [5]:
def rate_and_uncertainty(npl, nexpected):
    Rbest = npl / nexpected
    dr = sqrt(npl + 1) / nexpected
    
    Rmin = max(0.0, Rbest - 10*dr)
    Rmax = Rbest + 10*dr
    
    Rs = linspace(Rmin, Rmax, 10000)
    logpost = (npl-0.5)*log(Rs) - nexpected*Rs
    post = exp(logpost)
    post = post / trapz(post, Rs)
    cumpost = sint.cumtrapz(post, Rs)
    
    imin = argmin(abs(cumpost - 0.16))
    imed = argmin(abs(cumpost - 0.5))
    imax = argmin(abs(cumpost - 0.84))
    
    return Rs[imed], Rs[imin], Rs[imax]

Planet Database


In [6]:
planets = aa.read(op.join(hw_data_directory, 'dr24_koi.csv'))
planets


Out[6]:
<Table masked=True length=7470>
kepidkepoi_namekepler_namerara_errra_strdecdec_errdec_strkoi_gmagkoi_gmag_errkoi_rmagkoi_rmag_errkoi_imagkoi_imag_errkoi_zmagkoi_zmag_errkoi_jmagkoi_jmag_errkoi_hmagkoi_hmag_errkoi_kmagkoi_kmag_errkoi_kepmagkoi_kepmag_errkoi_delivnamekoi_vet_statkoi_quarterskoi_dispositionkoi_pdispositionkoi_countkoi_num_transitskoi_max_sngle_evkoi_max_mult_evkoi_bin_oedp_sigkoi_limbdark_modkoi_ldm_coeff4koi_ldm_coeff3koi_ldm_coeff2koi_ldm_coeff1koi_trans_modkoi_model_snrkoi_model_dofkoi_model_chisqkoi_time0bkkoi_time0bk_err1koi_time0bk_err2koi_eccenkoi_eccen_err1koi_eccen_err2koi_longpkoi_longp_err1koi_longp_err2koi_pradkoi_prad_err1koi_prad_err2koi_smakoi_sma_err1koi_sma_err2koi_impactkoi_impact_err1koi_impact_err2koi_durationkoi_duration_err1koi_duration_err2koi_ingresskoi_ingress_err1koi_ingress_err2koi_depthkoi_depth_err1koi_depth_err2koi_periodkoi_period_err1koi_period_err2koi_rorkoi_ror_err1koi_ror_err2koi_dorkoi_dor_err1koi_dor_err2koi_inclkoi_incl_err1koi_incl_err2koi_teqkoi_teq_err1koi_teq_err2koi_steffkoi_steff_err1koi_steff_err2koi_sloggkoi_slogg_err1koi_slogg_err2koi_smetkoi_smet_err1koi_smet_err2koi_sradkoi_srad_err1koi_srad_err2koi_smasskoi_smass_err1koi_smass_err2koi_sagekoi_sage_err1koi_sage_err2koi_sparprovkoi_fwm_stat_sigkoi_fwm_srakoi_fwm_sra_errkoi_fwm_sdeckoi_fwm_sdec_errkoi_fwm_sraokoi_fwm_srao_errkoi_fwm_sdecokoi_fwm_sdeco_errkoi_fwm_praokoi_fwm_prao_errkoi_fwm_pdecokoi_fwm_pdeco_errkoi_dicco_mrakoi_dicco_mra_errkoi_dicco_mdeckoi_dicco_mdec_errkoi_dicco_mskykoi_dicco_msky_errkoi_dicco_frakoi_dicco_fra_errkoi_dicco_fdeckoi_dicco_fdec_errkoi_dicco_fskykoi_dicco_fsky_errkoi_dikco_mrakoi_dikco_mra_errkoi_dikco_mdeckoi_dikco_mdec_errkoi_dikco_mskykoi_dikco_msky_errkoi_dikco_frakoi_dikco_fra_errkoi_dikco_fdeckoi_dikco_fdec_errkoi_dikco_fskykoi_dikco_fsky_errkoi_commentkoi_vet_datekoi_tce_plnt_numkoi_tce_delivnamekoi_datalink_dvskoi_disp_provkoi_parm_provkoi_time0koi_time0_err1koi_time0_err2koi_datalink_dvrkoi_fpflag_ntkoi_fpflag_sskoi_fpflag_cokoi_fpflag_eckoi_insolkoi_insol_err1koi_insol_err2koi_srhokoi_srho_err1koi_srho_err2koi_fittype
int64str9str14float64float64str12float64float64str12float64int64float64int64float64int64float64int64float64float64float64float64float64float64float64int64str15str4float64str14str14int64int64float64float64int64str33float64float64float64float64str34float64int64int64float64float64float64int64int64int64int64int64int64float64float64float64float64int64int64float64float64float64float64float64float64int64int64int64float64float64float64float64float64float64float64float64float64float64float64float64float64int64int64float64int64int64float64float64float64float64float64float64int64int64int64float64float64float64float64float64float64int64int64int64str14float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64float64int64int64int64int64int64int64float64float64float64float64float64float64int64int64int64int64int64int64str225str10int64str15str64str15str15float64float64float64str60int64int64int64int64float64float64float64float64float64float64str4
7697568K01829.01--296.522430.019h46m05.38s43.3633690.0+43d21m48.1s16.591--15.841--15.62--15.448--14.4370.02914.0330.03113.8650.04915.911--q1_q17_dr24_koiDone1.11111111111e+30CANDIDATECANDIDATE25712.03608550.30746--Claret (2011 A&A 529 75) ATLAS LS0.00.00.22230.4689Mandel and Agol (2002 ApJ 580 171)60.5----138.634160.00119-0.001190----------23.378.48-1.930.1499----1.18450.5157-0.11522.68370.0633-0.0633------3390.371.2-71.222.841510553.352e-05-3.352e-050.2603880.504439-0.10006528.036.5-6.587.66----556.0----5383.0184.0-150.04.5430.038-0.231------0.8220.298-0.0680.8610.096-0.08------stellar_q1_q160.019.76815295.6e-0643.3634036.1e-05-0.360.220.120.220.001380.00087-0.00060.0010.160.1-0.120.110.20.12------------0.110.11-0.260.110.280.12--------------2015-09-241q1_q17_dr24_tce007/007697/007697568/dv/kplr007697568-001-20141002224145_dvs.pdfq1_q17_dr24_koiq1_q17_dr24_koi2454971.6340.00119-0.00119007/007697/007697568/dv/kplr007697568-20141002224145_dvr.pdf000022.625.39-5.620.798160.18483-0.05489MCMC
5730445K02189.01--298.0747380.019h52m17.94s40.948990.0+40d56m56.4s16.079--15.187--14.9--14.742--13.6460.0413.1140.04313.020.04415.253--q1_q17_dr24_koiDone1.11111111111e+28CANDIDATECANDIDATE1307.50301526.079973--Claret (2011 A&A 529 75) ATLAS LS0.00.00.15440.5664Mandel and Agol (2002 ApJ 580 171)30.6----137.571720.00262-0.002620----------3.385.42-0.320.1854----0.28450.1944-0.28451.8870.104-0.104------1852.776.2-76.233.358552289.369e-05-9.369e-050.0387610.001522-0.001631134.930.2-30.289.95----459.0----5009.0198.0-148.04.5150.067-0.788------0.7991.279-0.0760.7630.176-0.059------stellar_q1_q160.01319.87167118e-0640.9489959.2e-050.860.320.020.330.000710.000640.000450.0007-0.40.2-0.320.240.510.21-------------0.050.21-0.190.220.20.22--------------2015-09-241q1_q17_dr24_tce005/005730/005730445/dv/kplr005730445-001-20141002224145_dvs.pdfq1_q17_dr24_koiq1_q17_dr24_koi2454970.5720.00262-0.00262005/005730/005730445/dv/kplr005730445-20141002224145_dvr.pdf000010.4672.19-2.8641.765589.33283-13.30358MCMC
8733497K03527.01--282.0008850.018h48m00.21s44.960770.0+44d57m38.8s14.557--14.009--13.852--13.771--12.8880.02412.5270.02912.4740.02814.063--q1_q17_dr24_koiDone1.11111111111e+31CANDIDATECANDIDATE1162109.49414750.9688--Claret (2011 A&A 529 75) ATLAS LS0.00.00.2810.3711Mandel and Agol (2002 ApJ 580 171)3954.2----188.12578883e-05-3e-050----------48.1419.56-3.620.3356----0.71560.0189-0.01685.118190.00258-0.00258------240672.0113.0-113.076.8198456152.678e-06-2.678e-060.5615290.011881-0.009649159.141.2-1.289.95----382.0----5668.0153.0-143.04.5790.032-0.261------0.7850.319-0.0590.8550.098-0.085------stellar_q1_q160.018.8000579095.9e-0844.96077915.3e-07-0.05310.00230.03270.0019-0.040.120.080.180.0080.067-0.0230.0670.0240.067------------0.0240.0790.1020.0710.1050.071--------------2015-09-241q1_q17_dr24_tce008/008733/008733497/dv/kplr008733497-001-20141002224145_dvs.pdfq1_q17_dr24_koiq1_q17_dr24_koi2455021.1263e-05-3e-05008/008733/008733497/dv/kplr008733497-20141002224145_dvr.pdf00005.056.07-1.1512.919960.09689-0.09168MCMC
4255422K03528.01--289.6970520.019h18m47.29s39.3716390.0+39d22m17.9s13.12--12.667--12.555------11.1820.02710.9380.0310.8420.0212.724--q1_q17_dr24_koiDone1.11111111111e+31CANDIDATECANDIDATE181791.09133652.878--Claret (2011 A&A 529 75) ATLAS LS0.00.00.29520.3171Mandel and Agol (2002 ApJ 580 171)6518.5----141.57615445.29e-05-5.29e-050----------114.4449.28-55.050.59----1.09620.0174-0.037713.64810.00316-0.00316------67215.115.8-15.8165.405752091.042e-05-1.042e-050.4796110.016573-0.02688692.0170.524-0.52489.38----515.0----6061.0200.0-194.03.7590.491-0.228------2.1850.941-1.0510.9990.239-0.192------stellar_q1_q160.019.3131378184.2e-0839.37168935.9e-070.04250.00180.17390.00210.00060.0060.00050.0077-0.0110.0670.0020.0670.0120.067-------------0.0070.0680.1460.0690.1460.069--------------2015-09-241q1_q17_dr24_tce004/004255/004255422/dv/kplr004255422-001-20141002224145_dvs.pdfq1_q17_dr24_koiq1_q17_dr24_koi2454974.5765.29e-05-5.29e-05004/004255/004255422/dv/kplr004255422-20141002224145_dvr.pdf000016.5622.05-12.640.538720.00307-0.00689MCMC
9837544K03529.01--294.4863890.019h37m56.73s46.6761510.0+46d40m34.1s15.943--15.105--14.834--14.681--13.7090.02513.1380.02813.1140.03415.167--q1_q17_dr24_koiDone1.11111111111e+28FALSE POSITIVEFALSE POSITIVE101972.89285965.767--Claret (2011 A&A 529 75) ATLAS LS0.00.00.16690.5528Mandel and Agol (2002 ApJ 580 171)1148.3----172.9072260.000108-0.0001080----------56.0649.32-5.720.3107----0.52370.025-0.01566.399480.0057-0.0057------372197.0310.0-310.071.6619327818.834e-06-8.834e-060.6229780.011297-0.009512131.421.5-1.589.95----365.0----5075.0207.0-156.04.4970.078-0.606------0.8240.725-0.0840.7770.137-0.061------stellar_q1_q16--------------------------------------------------------------------------SIG_SEC_IN_ALT_MODEL_SHIFT---OTHER_TCE_AT_SAME_PERIOD_DIFF_EPOCH---FIT_FAILED2015-09-241q1_q17_dr24_tce009/009837/009837544/dv/kplr009837544-001-20141002224145_dvs.pdfq1_q17_dr24_koiq1_q17_dr24_koi2455005.9070.000108-0.000108009/009837/009837544/dv/kplr009837544-20141002224145_dvr.pdf01004.1813.13-1.218.360670.09617-0.0626MCMC
7877824K03530.01--286.2884520.019h05m09.23s43.6143420.0+43d36m51.6s16.179--15.567--15.423--15.353--14.350.03314.0040.05313.9390.05815.65--q1_q17_dr24_koiDone1.11111111111e+28FALSE POSITIVEFALSE POSITIVE101598.8969495.494--Claret (2011 A&A 529 75) ATLAS LS0.00.00.2630.4037Mandel and Agol (2002 ApJ 580 171)626.5----136.0264920.000132-0.0001320----------68.9225.36-5.10.0882----0.3790.0076-0.00556.430130.0061-0.0061------501762.0465.0-465.09.4494268311.428e-06-1.428e-060.6974260.003533-0.00185818.60360.0967-0.096788.81----813.0----5754.0177.0-196.04.5340.026-0.273------0.9050.333-0.0671.0210.107-0.117------stellar_q1_q16--------------------------------------------------------------------------SIG_SEC_IN_ALT_MODEL_SHIFT---OTHER_TCE_AT_SAME_PERIOD_DIFF_EPOCH---FIT_FAILED2015-09-241q1_q17_dr24_tce007/007877/007877824/dv/kplr007877824-001-20141002224145_dvs.pdfq1_q17_dr24_koiq1_q17_dr24_koi2454969.0260.000132-0.000132007/007877/007877824/dv/kplr007877824-20141002224145_dvr.pdf0100103.29114.89-26.191.364070.00709-0.00484MCMC
6947164K03531.01--291.3569640.019h25m25.67s42.4936410.0+42d29m37.1s15.101--14.585--14.419--14.361--13.5130.02213.1590.02113.1050.02414.624--q1_q17_dr24_koiDone1.11111111111e+31CANDIDATECANDIDATE1201629.57965183.436--Claret (2011 A&A 529 75) ATLAS LS0.00.00.2970.337Mandel and Agol (2002 ApJ 580 171)6519.4----190.49981385.04e-05-5.04e-050----------50.8620.59-4.390.332----0.87030.045-0.02528.822290.00384-0.00384------154986.052.8-52.870.5828613345.386e-06-5.386e-060.5152010.030962-0.01669975.8160.927-0.92789.38----435.0----5973.0156.0-176.04.5160.038-0.293------0.9040.366-0.0780.980.111-0.122------stellar_q1_q160.019.4237960425.4e-0842.493642615.3e-07-0.07790.00220.00940.0019-0.0020.0320.0020.0440.0030.067-0.0010.0670.0030.067------------0.0140.067-0.0410.0670.0430.067--------------2015-09-241q1_q17_dr24_tce006/006947/006947164/dv/kplr006947164-001-20141002224145_dvs.pdfq1_q17_dr24_koiq1_q17_dr24_koi2455023.55.04e-05-5.04e-05006/006947/006947164/dv/kplr006947164-20141002224145_dvr.pdf00008.4510.03-2.191.654780.02023-0.02116MCMC
10748621K03532.01--297.7727660.019h51m05.46s48.098110.0+48d05m53.2s15.648--15.066--14.92--14.762--13.8230.03113.4610.0313.4610.05415.138--q1_q17_dr24_koiDone1.11111011101e+31FALSE POSITIVEFALSE POSITIVE101857.1823079.412--Claret (2011 A&A 529 75) ATLAS LS0.00.00.28250.364Mandel and Agol (2002 ApJ 580 171)198.2----314.101560.00302-0.003020----------67.5626.86-6.990.8405----0.63610.1423-0.160616.0120.197-0.197------344196.04066.0-4066.0286.1757280.001577-0.0015770.6540450.082116-0.095875208.523.2-23.289.95----276.0----5904.0169.0-185.04.4710.059-0.279------0.9460.376-0.0980.9660.125-0.11------stellar_q1_q16--------------------------------------------------------------------------OTHER_TCE_AT_SAME_PERIOD_DIFF_EPOCH---FIT_FAILED2015-09-242q1_q17_dr24_tce010/010748/010748621/dv/kplr010748621-002-20141002224145_dvs.pdfq1_q17_dr24_koiq1_q17_dr24_koi2455147.1020.00302-0.00302010/010748/010748621/dv/kplr010748621-20141002224145_dvr.pdf01001.381.63-0.412.092620.23286-0.17574MCMC
4079530K03594.01--296.7344970.019h46m56.28s39.1861110.0+39d11m10.0s16.081--15.52--15.331--15.216--14.3590.0413.9220.03713.8930.06215.556--q1_q17_dr24_koiDone1.110111e+21FALSE POSITIVEFALSE POSITIVE125613.31522237.9883--Claret (2011 A&A 529 75) ATLAS LS0.00.00.29710.3323Mandel and Agol (2002 ApJ 580 171)1739.5----144.067850.000286-0.0002860----------36.3214.81-3.20.1317----0.01480.0359-0.01484.152180.00399-0.00399------162202.0174.0-174.017.7272679664.327e-06-4.327e-060.3716360.00028-0.00021744.74130.0501-0.050189.95----692.0----6021.0180.0-207.04.520.039-0.294------0.8950.365-0.0790.9670.108-0.121------stellar_q1_q160.019.7823174347.5e-0839.18633881.5e-060.72970.00310.82350.00530.0520.0720.2430.093-1.470.21-4.160.364.420.35------------0.1470.078-0.20.0710.2480.078------------SIG_SEC_IN_DV_MODEL_SHIFT---SIG_SEC_IN_ALT_MODEL_SHIFT---OTHER_TCE_AT_SAME_PERIOD_DIFF_EPOCH---KIC_OFFSET2015-09-241q1_q17_dr24_tce004/004079/004079530/dv/kplr004079530-001-20141002224145_dvs.pdfq1_q17_dr24_koiq1_q17_dr24_koi2454977.0680.000286-0.000286004/004079/004079530/dv/kplr004079530-20141002224145_dvr.pdf010054.3266.8-15.065.391380.00604-0.03924MCMC
11521793K00352.01Kepler-143 c298.0676880.019h52m16.25s49.4126010.0+49d24m45.4s14.217--13.706--13.579--13.487--12.590.02512.2920.02312.2230.02513.77--q1_q17_dr24_koiDone1.11111111111e+31CONFIRMEDCANDIDATE2537.753589637.06911--Claret (2011 A&A 529 75) ATLAS LS0.00.00.2910.3464Mandel and Agol (2002 ApJ 580 171)42.5----191.805680.00272-0.002720----------2.360.91-0.290.1759----0.7870.1103-0.54014.7360.0866-0.0866------428.212.0-12.027.082470849.991e-05-9.991e-050.0208460.001516-0.00184428.412.3-12.388.24----644.0----6010.0154.0-179.04.4010.085-0.266------1.0370.398-0.1260.9870.148-0.114------stellar_q1_q160.019.8711781e-0549.412710.0001-0.080.350.410.370.000110.00015-0.000340.000160.010.150.290.190.290.18------------0.070.160.240.180.250.18--------------2015-09-241q1_q17_dr24_tce011/011521/011521793/dv/kplr011521793-001-20141002224145_dvs.pdfq1_q17_dr24_koiq1_q17_dr24_koi2455024.8060.00272-0.00272011/011521/011521793/dv/kplr011521793-20141002224145_dvr.pdf000040.5845.41-12.830.5921.53831-0.18799MCMC
............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
10538176K01301.01Kepler-284 b293.1464840.019h32m35.16s47.7296490.0+47d43m46.7s16.391--15.764--15.581--15.456--14.5590.03414.1550.04114.0790.08515.824--q1_q17_dr24_koiDone1.01111111111e+30CONFIRMEDCANDIDATE2947.297801525.696955--Claret (2011 A&A 529 75) ATLAS LS0.00.00.25670.4127Mandel and Agol (2002 ApJ 580 171)28.1----184.989520.00306-0.003060----------2.440.87-0.190.1032----0.4130.0762-0.38552.92160.0925-0.0925------855.033.1-33.112.699029954.625e-05-4.625e-050.0270240.000555-0.00109931.212.4-12.489.38----701.0----5614.0158.0-147.04.5610.03-0.244------0.8270.294-0.0660.9080.086-0.094------stellar_q1_q160.00619.5430971.3e-0547.729780.00012-0.070.470.470.43-0.000590.000383e-050.00035-0.010.150.180.140.180.14------------0.170.160.470.150.50.15--------------2015-09-241q1_q17_dr24_tce010/010538/010538176/dv/kplr010538176-001-20141002224145_dvs.pdfq1_q17_dr24_koiq1_q17_dr24_koi2455017.990.00306-0.00306010/010538/010538176/dv/kplr010538176-20141002224145_dvr.pdf000057.0960.12-13.623.573251.42035-0.55867MCMC
10538176K01301.02Kepler-284 c293.1464840.019h32m35.16s47.7296490.0+47d43m46.7s16.391--15.764--15.581--15.456--14.5590.03414.1550.04114.0790.08515.824--q1_q17_dr24_koiDone1.01111111111e+30CONFIRMEDCANDIDATE2346.67143525.85144--Claret (2011 A&A 529 75) ATLAS LS0.00.00.25670.4127Mandel and Agol (2002 ApJ 580 171)28.4----189.304920.00464-0.004640----------2.81.0-0.220.2125----0.65450.0217-0.50955.3450.154-0.154------1039.539.1-39.137.51406930.0002051-0.00020510.0310580.00802-0.00176342.718.6-18.689.38----489.0----5614.0158.0-147.04.5610.03-0.244------0.8270.294-0.0660.9080.086-0.094------stellar_q1_q160.019.5431041.3e-0547.729780.000120.170.480.480.42-0.000960.000472e-050.000430.060.16-0.20.20.210.2------------0.220.160.080.220.230.2--------------2015-09-242q1_q17_dr24_tce010/010538/010538176/dv/kplr010538176-002-20141002224145_dvs.pdfq1_q17_dr24_koiq1_q17_dr24_koi2455022.3050.00464-0.00464010/010538/010538176/dv/kplr010538176-20141002224145_dvr.pdf000013.4614.18-3.211.04841.36681-0.03836MCMC
10724369K01302.01--289.0836490.019h16m20.08s48.0181310.0+48d01m05.3s15.223--14.676--14.554--14.492--13.5570.02913.2370.03713.1950.03214.755--q1_q17_dr24_koiDone1.11111111111e+31CANDIDATECANDIDATE12711.05664540.716595--Claret (2011 A&A 529 75) ATLAS LS0.00.00.2840.3681Mandel and Agol (2002 ApJ 580 171)50.9----187.55060.00251-0.002510----------2.961.17-0.270.2901----0.53190.053-0.43047.1190.112-0.112------896.321.0-21.055.639340.0001825-0.00018250.0281880.003331-0.00075452.515.9-15.989.38----478.0----5949.0163.0-200.04.4930.042-0.286------0.9620.38-0.0871.050.159-0.133------stellar_q1_q160.01119.27224867.9e-0648.0180197.2e-050.210.29-0.40.26-7e-050.000250.000350.000230.080.11-0.020.170.080.18------------0.070.11-0.060.180.090.18--------------2015-09-241q1_q17_dr24_tce010/010724/010724369/dv/kplr010724369-001-20141002224145_dvs.pdfq1_q17_dr24_koiq1_q17_dr24_koi2455020.5510.00251-0.00251010/010724/010724369/dv/kplr010724369-20141002224145_dvr.pdf000012.3314.4-3.440.886280.53801-0.08246MCMC
10867062K01303.01--294.2300720.019h36m55.22s48.2044790.0+48d12m16.1s15.594--14.934--14.695--14.565--13.5750.02213.1120.0213.0720.02914.965--q1_q17_dr24_koiDone1.11111111111e+31CANDIDATECANDIDATE1409.812839.907787--Claret (2011 A&A 529 75) ATLAS LS0.00.00.30490.3444Mandel and Agol (2002 ApJ 580 171)67.1----143.674490.00687-0.006870----------1.692.65-0.190.1849----0.12140.2266-0.121318.6390.195-0.195------473.813.9-13.934.29630170.000327-0.0003270.0198230.000484-0.000314.2460.827-0.82789.38----493.0----5433.0196.0-160.04.5050.092-0.755------0.7831.222-0.0910.7160.19-0.043------stellar_q1_q160.019.61534425.6e-0648.2045796e-050.220.20.360.22-0.000170.00013-0.000330.000140.050.19-0.220.280.220.27------------0.020.23-0.280.280.280.28--------------2015-09-241q1_q17_dr24_tce010/010867/010867062/dv/kplr010867062-001-20141002224145_dvs.pdfq1_q17_dr24_koiq1_q17_dr24_koi2454976.6740.00687-0.00687010/010867/010867062/dv/kplr010867062-20141002224145_dvr.pdf000013.9891.67-4.290.04650.0027-0.00829MCMC
6936909K01363.02Kepler-291 c287.9163510.019h11m39.92s42.4373020.0+42d26m14.3s16.435--15.855--15.719--15.64--14.6880.03314.3370.03614.150.05815.934--q1_q17_dr24_koiDone1.11111111111e+31CONFIRMEDCANDIDATE22234.148478511.985193--Claret (2011 A&A 529 75) ATLAS LS0.00.00.28520.365Mandel and Agol (2002 ApJ 580 171)15.0----132.691440.00369-0.003690----------1.930.77-0.170.0644----0.02240.4224-0.02241.6410.109-0.109------384.129.9-29.95.700711532.47e-05-2.47e-050.0179280.001126-0.00065527.024.0-4.089.95----1034.0----5993.0167.0-227.04.4890.041-0.288------0.9860.393-0.0891.0930.189-0.148------stellar_q1_q160.019.1944092.5e-0542.438010.00028-0.61.02.551.00.000180.00033-0.000830.000330.220.64-0.120.340.250.64------------0.030.64-0.20.340.210.63--------------2015-09-242q1_q17_dr24_tce006/006936/006936909/dv/kplr006936909-002-20141002224145_dvs.pdfq1_q17_dr24_koiq1_q17_dr24_koi2454965.6910.00369-0.00369006/006936/006936909/dv/kplr006936909-20141002224145_dvr.pdf0000270.62320.24-78.711.485911.68549-5.04815MCMC
6962977K01364.01Kepler-292 f295.7661440.019h43m03.87s42.4242780.0+42d25m27.4s16.626--15.89--15.669--15.526--14.5370.02814.0770.03413.970.05715.956--q1_q17_dr24_koiDone1.10111111111e+30CONFIRMEDCANDIDATE5546.56263221.495853--Claret (2011 A&A 529 75) ATLAS LS0.00.00.23160.4564Mandel and Agol (2002 ApJ 580 171)25.6----186.032810.00495-0.004950----------2.941.13-0.280.1442----0.60550.293-0.38914.40.141-0.141------957.539.5-39.520.83429470.000125-0.0001250.0294090.003671-0.00152530.111.6-11.688.81----613.0----5513.0175.0-151.04.4790.062-0.259------0.9150.351-0.0870.9210.092-0.072------stellar_q1_q160.01519.7177551.5e-0542.424060.000170.480.61-0.810.6-0.000330.000510.000660.00051-0.320.490.310.480.450.63-------------0.280.510.440.570.520.62--------------2015-09-243q1_q17_dr24_tce006/006962/006962977/dv/kplr006962977-003-20141002224145_dvs.pdfq1_q17_dr24_koiq1_q17_dr24_koi2455019.0330.00495-0.00495006/006962/006962977/dv/kplr006962977-20141002224145_dvr.pdf000033.2938.92-8.91.191080.91446-0.84903MCMC
6962977K01364.02Kepler-292 d295.7661440.019h43m03.87s42.4242780.0+42d25m27.4s16.626--15.89--15.669--15.526--14.5370.02814.0770.03413.970.05715.956--q1_q17_dr24_koiDone1.10111111111e+30CONFIRMEDCANDIDATE51656.889642226.264051--Claret (2011 A&A 529 75) ATLAS LS0.00.00.23160.4564Mandel and Agol (2002 ApJ 580 171)32.0----181.910260.00283-0.002830----------2.570.98-0.250.0701----0.03550.4119-0.03543.15360.0728-0.0728------814.926.6-26.67.05566712.268e-05-2.268e-050.0257120.000914-0.00060917.531.3-1.389.95----879.0----5513.0175.0-151.04.4790.062-0.259------0.9150.351-0.0870.9210.092-0.072------stellar_q1_q160.08919.7177491.3e-0542.424130.000140.260.51-0.550.5-0.000130.000360.000380.000350.00.310.160.360.160.35------------0.060.30.240.360.250.37--------------2015-09-241q1_q17_dr24_tce006/006962/006962977/dv/kplr006962977-001-20141002224145_dvs.pdfq1_q17_dr24_koiq1_q17_dr24_koi2455014.910.00283-0.00283006/006962/006962977/dv/kplr006962977-20141002224145_dvr.pdf0000140.85164.7-37.642.047380.15064-0.65992MCMC
6962977K01364.03Kepler-292 e295.7661440.019h43m03.87s42.4242780.0+42d25m27.4s16.626--15.89--15.669--15.526--14.5370.02814.0770.03413.970.05715.956--q1_q17_dr24_koiDone1.10111111111e+30CONFIRMEDCANDIDATE5975.54755722.083183--Claret (2011 A&A 529 75) ATLAS LS0.00.00.23160.4564Mandel and Agol (2002 ApJ 580 171)26.1----178.972010.00414-0.004140----------2.861.1-0.270.0997----0.79320.1113-0.54923.9370.115-0.115------795.232.2-32.211.9788225.722e-05-5.722e-050.0286410.002836-0.0031715.257.2-7.287.09----737.0----5513.0175.0-151.04.4790.062-0.259------0.9150.351-0.0870.9210.092-0.072------stellar_q1_q160.00719.7177541.5e-0542.424040.000160.460.58-0.850.57-0.000280.000420.000610.00042-0.090.39-0.180.570.210.54-------------0.050.38-0.190.630.20.63--------------2015-09-242q1_q17_dr24_tce006/006962/006962977/dv/kplr006962977-002-20141002224145_dvs.pdfq1_q17_dr24_koiq1_q17_dr24_koi2455011.9720.00414-0.00414006/006962/006962977/dv/kplr006962977-20141002224145_dvr.pdf000069.6381.42-18.60.467611.3253-0.03856MCMC
11512246K00168.01Kepler-23 c294.2189330.019h36m52.54s49.4792210.0+49d28m45.2s13.89--13.43--13.244--13.216--12.3530.02112.0470.01711.9980.01913.438--q1_q17_dr24_koiDone1.11111111111e+31CONFIRMEDCANDIDATE31259.16936965.01795--Claret (2011 A&A 529 75) ATLAS LS0.00.00.27520.3789Mandel and Agol (2002 ApJ 580 171)95.2----133.286370.00142-0.001420----------3.150.1-0.090.0977----0.12740.2642-0.12746.06480.0611-0.0611------419.34.8-4.810.742427661.85e-05-1.85e-050.0186640.000332-0.0002213.6890.362-0.36289.38----1023.0----5828.0100.0-100.04.090.019-0.019------1.5480.048-0.0481.0780.077-0.077------stellar_q1_q160.00119.61459135.3e-0649.4793414.9e-05-0.140.190.440.180.0001037.4e-05-8.8e-057.1e-05-0.070.140.070.130.10.13------------0.00.160.20.140.20.15--------------2015-09-241q1_q17_dr24_tce011/011512/011512246/dv/kplr011512246-001-20141002224145_dvs.pdfq1_q17_dr24_koiq1_q17_dr24_koi2454966.2860.00142-0.00142011/011512/011512246/dv/kplr011512246-20141002224145_dvr.pdf0000259.235.73-32.10.420490.01113-0.12131MCMC
6962977K01364.04Kepler-292 c295.7661440.019h43m03.87s42.4242780.0+42d25m27.4s16.626--15.89--15.669--15.526--14.5370.02814.0770.03413.970.05715.956--q1_q17_dr24_koiDone1.10111111111e+30CONFIRMEDCANDIDATE52953.904743216.348024--Claret (2011 A&A 529 75) ATLAS LS0.00.00.23160.4564Mandel and Agol (2002 ApJ 580 171)19.1----169.783620.00427-0.004270----------1.790.69-0.170.0457----0.21430.2594-0.21412.5240.117-0.117------390.522.0-22.03.715453911.934e-05-1.934e-050.0179030.000789-0.00065911.212.6-2.688.81----1088.0----5513.0175.0-151.04.4790.062-0.259------0.9150.351-0.0870.9210.092-0.072------stellar_q1_q160.2619.7177622.1e-0542.424350.000220.760.820.230.79-0.000240.00029-8e-050.00028-0.320.30.370.490.490.42-------------0.230.320.510.470.560.45--------------2015-09-244q1_q17_dr24_tce006/006962/006962977/dv/kplr006962977-004-20141002224145_dvs.pdfq1_q17_dr24_koiq1_q17_dr24_koi2455002.7840.00427-0.00427006/006962/006962977/dv/kplr006962977-20141002224145_dvr.pdf0000331.41387.51-88.561.928870.45577-0.67998MCMC

G Dwarfs

Load up the G-star table:


In [25]:
gdata = genfromtxt(op.join(occur_dir, 'hack_week_g_stars.csv'), delimiter=',', names=True)

We want to know the average detection efficiency across the bin. (Actually, what we want to know is the fraction of the planets appearing in the bin that would be detected, but since we are assuming that the planet distribution function is flat, this reduces to the average.)

$$ \alpha_i \equiv \frac{1}{\Delta P \Delta R} \int dP\,dR\, p_{det}(P,R) $$

For each of the Kep ID's in the G-star table, load up the efficiency contour, and calculate the efficiency integrated over the relevant bin limits. Save a two-column kepid and alpha file. There are lots of errors because there are a number of stars that pass our cuts that do not have efficiency calculations from Chris---I think these are the un-classified stars that have $T$ and $log(g)$ replaced with solar values.


In [27]:
with gzip.open('g-integrated-eff.dat.gz.temp', 'w') as out:
    out.write('# kepid ')
    out.write(' '.join(['(%g-%g, %g-%g)'%(plow, phigh, rlow, rhigh) \
                        for (plow, phigh) in zip(pbins[:-1], pbins[1:]) \
                        for (rlow, rhigh) in zip(rbins[:-1], rbins[1:])]))
    out.write('\n')
    for kid in gdata['kepid']:
        try:
            kid = int(round(kid))
            eff = af.open(op.join(eff_dir, 'contourV0%09d_tot.fits.gz'%kid))
            ps = exp(linspace(log(eff[0].header['MINPER']), log(eff[0].header['MAXPER']), eff[0].header['NPER']))
            rs = exp(linspace(log(eff[0].header['MINRP']), log(eff[0].header['MAXRP']), eff[0].header['NRP']))
            int_effs = []
            for plow, phigh in zip(pbins[:-1], pbins[1:]):
                for rlow, rhigh in zip(rbins[:-1], rbins[1:]):
                    int_effs.append(integrate_efficiency(ps, rs, eff[0].data.T, plow, phigh, rlow, rhigh))
            int_effs = array(int_effs)
            out.write('%09d '%kid)
            out.write(' '.join(['%g'%ie for ie in int_effs]))
            out.write('\n')
            eff.close()
        except:
            print 'Could not process KID ', kid, ' exception: ', sys.exc_info()[0]
os.rename('g-integrated-eff.dat.gz.temp', 'g-integrated-eff.dat.gz')


Could not process KID  10022963  exception:  <type 'exceptions.IOError'>
Could not process KID  10056832  exception:  <type 'exceptions.IOError'>
Could not process KID  10139107  exception:  <type 'exceptions.IOError'>
Could not process KID  10099921  exception:  <type 'exceptions.IOError'>
Could not process KID  10092945  exception:  <type 'exceptions.IOError'>
Could not process KID  10093235  exception:  <type 'exceptions.IOError'>
Could not process KID  10035798  exception:  <type 'exceptions.IOError'>
Could not process KID  10120296  exception:  <type 'exceptions.IOError'>
Could not process KID  10133522  exception:  <type 'exceptions.IOError'>
Could not process KID  10054770  exception:  <type 'exceptions.IOError'>
Could not process KID  10066637  exception:  <type 'exceptions.IOError'>
Could not process KID  10095484  exception:  <type 'exceptions.IOError'>
Could not process KID  10150202  exception:  <type 'exceptions.IOError'>
Could not process KID  10121662  exception:  <type 'exceptions.IOError'>
Could not process KID  10014886  exception:  <type 'exceptions.IOError'>
Could not process KID  10014922  exception:  <type 'exceptions.IOError'>
Could not process KID  10003561  exception:  <type 'exceptions.IOError'>
Could not process KID  10428267  exception:  <type 'exceptions.IOError'>
Could not process KID  10454974  exception:  <type 'exceptions.IOError'>
Could not process KID  10328299  exception:  <type 'exceptions.IOError'>
Could not process KID  10349975  exception:  <type 'exceptions.IOError'>
Could not process KID  10349990  exception:  <type 'exceptions.IOError'>
Could not process KID  10386123  exception:  <type 'exceptions.IOError'>
Could not process KID  10411571  exception:  <type 'exceptions.IOError'>
Could not process KID  10334895  exception:  <type 'exceptions.IOError'>
Could not process KID  10342248  exception:  <type 'exceptions.IOError'>
Could not process KID  10342385  exception:  <type 'exceptions.IOError'>
Could not process KID  10363300  exception:  <type 'exceptions.IOError'>
Could not process KID  10382425  exception:  <type 'exceptions.IOError'>
Could not process KID  10382492  exception:  <type 'exceptions.IOError'>
Could not process KID  10382558  exception:  <type 'exceptions.IOError'>
Could not process KID  10395553  exception:  <type 'exceptions.IOError'>
Could not process KID  10455016  exception:  <type 'exceptions.IOError'>
Could not process KID  10456424  exception:  <type 'exceptions.IOError'>
Could not process KID  10459654  exception:  <type 'exceptions.IOError'>
Could not process KID  10460758  exception:  <type 'exceptions.IOError'>
Could not process KID  10346522  exception:  <type 'exceptions.IOError'>
Could not process KID  10292465  exception:  <type 'exceptions.IOError'>
Could not process KID  10201016  exception:  <type 'exceptions.IOError'>
Could not process KID  10223008  exception:  <type 'exceptions.IOError'>
Could not process KID  10209239  exception:  <type 'exceptions.IOError'>
Could not process KID  10255066  exception:  <type 'exceptions.IOError'>
Could not process KID  10262210  exception:  <type 'exceptions.IOError'>
Could not process KID  10225504  exception:  <type 'exceptions.IOError'>
Could not process KID  10274244  exception:  <type 'exceptions.IOError'>
Could not process KID  10195532  exception:  <type 'exceptions.IOError'>
Could not process KID  10264202  exception:  <type 'exceptions.IOError'>
Could not process KID  10275784  exception:  <type 'exceptions.IOError'>
Could not process KID  10710467  exception:  <type 'exceptions.IOError'>
Could not process KID  10780580  exception:  <type 'exceptions.IOError'>
Could not process KID  10732402  exception:  <type 'exceptions.IOError'>
Could not process KID  10732407  exception:  <type 'exceptions.IOError'>
Could not process KID  10671021  exception:  <type 'exceptions.IOError'>
Could not process KID  10645900  exception:  <type 'exceptions.IOError'>
Could not process KID  10671321  exception:  <type 'exceptions.IOError'>
Could not process KID  10671414  exception:  <type 'exceptions.IOError'>
Could not process KID  10741228  exception:  <type 'exceptions.IOError'>
Could not process KID  10741613  exception:  <type 'exceptions.IOError'>
Could not process KID  10663396  exception:  <type 'exceptions.IOError'>
Could not process KID  10728219  exception:  <type 'exceptions.IOError'>
Could not process KID  10747056  exception:  <type 'exceptions.IOError'>
Could not process KID  10780620  exception:  <type 'exceptions.IOError'>
Could not process KID  10676398  exception:  <type 'exceptions.IOError'>
Could not process KID  10728950  exception:  <type 'exceptions.IOError'>
Could not process KID  10747445  exception:  <type 'exceptions.IOError'>
Could not process KID  10743597  exception:  <type 'exceptions.IOError'>
Could not process KID  10743600  exception:  <type 'exceptions.IOError'>
Could not process KID  10788070  exception:  <type 'exceptions.IOError'>
Could not process KID  10490960  exception:  <type 'exceptions.IOError'>
Could not process KID  10472210  exception:  <type 'exceptions.IOError'>
Could not process KID  10472290  exception:  <type 'exceptions.IOError'>
Could not process KID  10555881  exception:  <type 'exceptions.IOError'>
Could not process KID  10487119  exception:  <type 'exceptions.IOError'>
Could not process KID  10487138  exception:  <type 'exceptions.IOError'>
Could not process KID  10517020  exception:  <type 'exceptions.IOError'>
Could not process KID  10474105  exception:  <type 'exceptions.IOError'>
Could not process KID  10477502  exception:  <type 'exceptions.IOError'>
Could not process KID  10477607  exception:  <type 'exceptions.IOError'>
Could not process KID  10584140  exception:  <type 'exceptions.IOError'>
Could not process KID  10601549  exception:  <type 'exceptions.IOError'>
Could not process KID  10515725  exception:  <type 'exceptions.IOError'>
Could not process KID  10554967  exception:  <type 'exceptions.IOError'>
Could not process KID  10596718  exception:  <type 'exceptions.IOError'>
Could not process KID  11100670  exception:  <type 'exceptions.IOError'>
Could not process KID  11083935  exception:  <type 'exceptions.IOError'>
Could not process KID  11085539  exception:  <type 'exceptions.IOError'>
Could not process KID  10962785  exception:  <type 'exceptions.IOError'>
Could not process KID  10987833  exception:  <type 'exceptions.IOError'>
Could not process KID  10987979  exception:  <type 'exceptions.IOError'>
Could not process KID  11021406  exception:  <type 'exceptions.IOError'>
Could not process KID  11047071  exception:  <type 'exceptions.IOError'>
Could not process KID  11084835  exception:  <type 'exceptions.IOError'>
Could not process KID  11023993  exception:  <type 'exceptions.IOError'>
Could not process KID  10971674  exception:  <type 'exceptions.IOError'>
Could not process KID  11034150  exception:  <type 'exceptions.IOError'>
Could not process KID  10975610  exception:  <type 'exceptions.IOError'>
Could not process KID  10975761  exception:  <type 'exceptions.IOError'>
Could not process KID  11036168  exception:  <type 'exceptions.IOError'>
Could not process KID  10976295  exception:  <type 'exceptions.IOError'>
Could not process KID  10982327  exception:  <type 'exceptions.IOError'>
Could not process KID  11038336  exception:  <type 'exceptions.IOError'>
Could not process KID  10938384  exception:  <type 'exceptions.IOError'>
Could not process KID  10794242  exception:  <type 'exceptions.IOError'>
Could not process KID  10816107  exception:  <type 'exceptions.IOError'>
Could not process KID  10811722  exception:  <type 'exceptions.IOError'>
Could not process KID  10905911  exception:  <type 'exceptions.IOError'>
Could not process KID  10928113  exception:  <type 'exceptions.IOError'>
Could not process KID  10928140  exception:  <type 'exceptions.IOError'>
Could not process KID  10928174  exception:  <type 'exceptions.IOError'>
Could not process KID  10928279  exception:  <type 'exceptions.IOError'>
Could not process KID  10798148  exception:  <type 'exceptions.IOError'>
Could not process KID  10798155  exception:  <type 'exceptions.IOError'>
Could not process KID  10931547  exception:  <type 'exceptions.IOError'>
Could not process KID  10881757  exception:  <type 'exceptions.IOError'>
Could not process KID  10855438  exception:  <type 'exceptions.IOError'>
Could not process KID  10902821  exception:  <type 'exceptions.IOError'>
Could not process KID  10841929  exception:  <type 'exceptions.IOError'>
Could not process KID  10841970  exception:  <type 'exceptions.IOError'>
Could not process KID  10932405  exception:  <type 'exceptions.IOError'>
Could not process KID  11339969  exception:  <type 'exceptions.IOError'>
Could not process KID  11453219  exception:  <type 'exceptions.IOError'>
Could not process KID  11453243  exception:  <type 'exceptions.IOError'>
Could not process KID  11287726  exception:  <type 'exceptions.IOError'>
Could not process KID  11391181  exception:  <type 'exceptions.IOError'>
Could not process KID  11360039  exception:  <type 'exceptions.IOError'>
Could not process KID  11312702  exception:  <type 'exceptions.IOError'>
Could not process KID  11392805  exception:  <type 'exceptions.IOError'>
Could not process KID  11416410  exception:  <type 'exceptions.IOError'>
Could not process KID  11441416  exception:  <type 'exceptions.IOError'>
Could not process KID  11449625  exception:  <type 'exceptions.IOError'>
Could not process KID  11454487  exception:  <type 'exceptions.IOError'>
Could not process KID  11179234  exception:  <type 'exceptions.IOError'>
Could not process KID  11139035  exception:  <type 'exceptions.IOError'>
Could not process KID  11139631  exception:  <type 'exceptions.IOError'>
Could not process KID  11204557  exception:  <type 'exceptions.IOError'>
Could not process KID  11232888  exception:  <type 'exceptions.IOError'>
Could not process KID  11247147  exception:  <type 'exceptions.IOError'>
Could not process KID  11247623  exception:  <type 'exceptions.IOError'>
Could not process KID  11154196  exception:  <type 'exceptions.IOError'>
Could not process KID  11154227  exception:  <type 'exceptions.IOError'>
Could not process KID  11175034  exception:  <type 'exceptions.IOError'>
Could not process KID  11180863  exception:  <type 'exceptions.IOError'>
Could not process KID  11233911  exception:  <type 'exceptions.IOError'>
Could not process KID  11247688  exception:  <type 'exceptions.IOError'>
Could not process KID  11129920  exception:  <type 'exceptions.IOError'>
Could not process KID  11147515  exception:  <type 'exceptions.IOError'>
Could not process KID  11255211  exception:  <type 'exceptions.IOError'>
Could not process KID  11134079  exception:  <type 'exceptions.IOError'>
Could not process KID  11143330  exception:  <type 'exceptions.IOError'>
Could not process KID  11143381  exception:  <type 'exceptions.IOError'>
Could not process KID  11177370  exception:  <type 'exceptions.IOError'>
Could not process KID  11151919  exception:  <type 'exceptions.IOError'>
Could not process KID  11178007  exception:  <type 'exceptions.IOError'>
Could not process KID  11655693  exception:  <type 'exceptions.IOError'>
Could not process KID  11812400  exception:  <type 'exceptions.IOError'>
Could not process KID  11815000  exception:  <type 'exceptions.IOError'>
Could not process KID  11817023  exception:  <type 'exceptions.IOError'>
Could not process KID  11802438  exception:  <type 'exceptions.IOError'>
Could not process KID  11816946  exception:  <type 'exceptions.IOError'>
Could not process KID  11651076  exception:  <type 'exceptions.IOError'>
Could not process KID  11704044  exception:  <type 'exceptions.IOError'>
Could not process KID  11663694  exception:  <type 'exceptions.IOError'>
Could not process KID  11665237  exception:  <type 'exceptions.IOError'>
Could not process KID  11675036  exception:  <type 'exceptions.IOError'>
Could not process KID  11700035  exception:  <type 'exceptions.IOError'>
Could not process KID  11704739  exception:  <type 'exceptions.IOError'>
Could not process KID  11710281  exception:  <type 'exceptions.IOError'>
Could not process KID  11710282  exception:  <type 'exceptions.IOError'>
Could not process KID  11710442  exception:  <type 'exceptions.IOError'>
Could not process KID  11712862  exception:  <type 'exceptions.IOError'>
Could not process KID  11760693  exception:  <type 'exceptions.IOError'>
Could not process KID  11721187  exception:  <type 'exceptions.IOError'>
Could not process KID  11716086  exception:  <type 'exceptions.IOError'>
Could not process KID  11716210  exception:  <type 'exceptions.IOError'>
Could not process KID  11612843  exception:  <type 'exceptions.IOError'>
Could not process KID  11457906  exception:  <type 'exceptions.IOError'>
Could not process KID  11460106  exception:  <type 'exceptions.IOError'>
Could not process KID  11469384  exception:  <type 'exceptions.IOError'>
Could not process KID  11493263  exception:  <type 'exceptions.IOError'>
Could not process KID  11503136  exception:  <type 'exceptions.IOError'>
Could not process KID  11555640  exception:  <type 'exceptions.IOError'>
Could not process KID  11464785  exception:  <type 'exceptions.IOError'>
Could not process KID  11610255  exception:  <type 'exceptions.IOError'>
Could not process KID  11512566  exception:  <type 'exceptions.IOError'>
Could not process KID  11516382  exception:  <type 'exceptions.IOError'>
Could not process KID  11550442  exception:  <type 'exceptions.IOError'>
Could not process KID  11516483  exception:  <type 'exceptions.IOError'>
Could not process KID  11599769  exception:  <type 'exceptions.IOError'>
Could not process KID  11617065  exception:  <type 'exceptions.IOError'>
Could not process KID  12155344  exception:  <type 'exceptions.IOError'>
Could not process KID  12023089  exception:  <type 'exceptions.IOError'>
Could not process KID  12104062  exception:  <type 'exceptions.IOError'>
Could not process KID  12111580  exception:  <type 'exceptions.IOError'>
Could not process KID  12114920  exception:  <type 'exceptions.IOError'>
Could not process KID  12156037  exception:  <type 'exceptions.IOError'>
Could not process KID  12160001  exception:  <type 'exceptions.IOError'>
Could not process KID  12156136  exception:  <type 'exceptions.IOError'>
Could not process KID  12156174  exception:  <type 'exceptions.IOError'>
Could not process KID  12156197  exception:  <type 'exceptions.IOError'>
Could not process KID  12164354  exception:  <type 'exceptions.IOError'>
Could not process KID  12019949  exception:  <type 'exceptions.IOError'>
Could not process KID  12052301  exception:  <type 'exceptions.IOError'>
Could not process KID  12052493  exception:  <type 'exceptions.IOError'>
Could not process KID  12213728  exception:  <type 'exceptions.IOError'>
Could not process KID  12062762  exception:  <type 'exceptions.IOError'>
Could not process KID  12107179  exception:  <type 'exceptions.IOError'>
Could not process KID  12219017  exception:  <type 'exceptions.IOError'>
Could not process KID  11857453  exception:  <type 'exceptions.IOError'>
Could not process KID  12013517  exception:  <type 'exceptions.IOError'>
Could not process KID  12015943  exception:  <type 'exceptions.IOError'>
Could not process KID  11970699  exception:  <type 'exceptions.IOError'>
Could not process KID  11858541  exception:  <type 'exceptions.IOError'>
Could not process KID  11913742  exception:  <type 'exceptions.IOError'>
Could not process KID  11904104  exception:  <type 'exceptions.IOError'>
Could not process KID  11904683  exception:  <type 'exceptions.IOError'>
Could not process KID  11922782  exception:  <type 'exceptions.IOError'>
Could not process KID  11960805  exception:  <type 'exceptions.IOError'>
Could not process KID  11968513  exception:  <type 'exceptions.IOError'>
Could not process KID  11906139  exception:  <type 'exceptions.IOError'>
Could not process KID  11855563  exception:  <type 'exceptions.IOError'>
Could not process KID  11924767  exception:  <type 'exceptions.IOError'>
Could not process KID  11958251  exception:  <type 'exceptions.IOError'>
Could not process KID  11974781  exception:  <type 'exceptions.IOError'>
Could not process KID  2156121  exception:  <type 'exceptions.IOError'>
Could not process KID  12983952  exception:  <type 'exceptions.IOError'>
Could not process KID  12984000  exception:  <type 'exceptions.IOError'>
Could not process KID  12984307  exception:  <type 'exceptions.IOError'>
Could not process KID  2425544  exception:  <type 'exceptions.IOError'>
Could not process KID  2285695  exception:  <type 'exceptions.IOError'>
Could not process KID  12737301  exception:  <type 'exceptions.IOError'>
Could not process KID  2308957  exception:  <type 'exceptions.IOError'>
Could not process KID  2309585  exception:  <type 'exceptions.IOError'>
Could not process KID  2309587  exception:  <type 'exceptions.IOError'>
Could not process KID  2305182  exception:  <type 'exceptions.IOError'>
Could not process KID  2305192  exception:  <type 'exceptions.IOError'>
Could not process KID  1725018  exception:  <type 'exceptions.IOError'>
Could not process KID  2305543  exception:  <type 'exceptions.IOError'>
Could not process KID  1701656  exception:  <type 'exceptions.IOError'>
Could not process KID  1701678  exception:  <type 'exceptions.IOError'>
Could not process KID  2163223  exception:  <type 'exceptions.IOError'>
Could not process KID  12459218  exception:  <type 'exceptions.IOError'>
Could not process KID  12459366  exception:  <type 'exceptions.IOError'>
Could not process KID  12459442  exception:  <type 'exceptions.IOError'>
Could not process KID  12567114  exception:  <type 'exceptions.IOError'>
Could not process KID  12598644  exception:  <type 'exceptions.IOError'>
Could not process KID  12306808  exception:  <type 'exceptions.IOError'>
Could not process KID  12403597  exception:  <type 'exceptions.IOError'>
Could not process KID  12553967  exception:  <type 'exceptions.IOError'>
Could not process KID  12554038  exception:  <type 'exceptions.IOError'>
Could not process KID  12418662  exception:  <type 'exceptions.IOError'>
Could not process KID  12264247  exception:  <type 'exceptions.IOError'>
Could not process KID  12300366  exception:  <type 'exceptions.IOError'>
Could not process KID  12304867  exception:  <type 'exceptions.IOError'>
Could not process KID  12406192  exception:  <type 'exceptions.IOError'>
Could not process KID  12406361  exception:  <type 'exceptions.IOError'>
Could not process KID  12519373  exception:  <type 'exceptions.IOError'>
Could not process KID  12519445  exception:  <type 'exceptions.IOError'>
Could not process KID  12552696  exception:  <type 'exceptions.IOError'>
Could not process KID  3103790  exception:  <type 'exceptions.IOError'>
Could not process KID  3241619  exception:  <type 'exceptions.IOError'>
Could not process KID  3003991  exception:  <type 'exceptions.IOError'>
Could not process KID  3101063  exception:  <type 'exceptions.IOError'>
Could not process KID  3120320  exception:  <type 'exceptions.IOError'>
Could not process KID  3216332  exception:  <type 'exceptions.IOError'>
Could not process KID  3323887  exception:  <type 'exceptions.IOError'>
Could not process KID  3004127  exception:  <type 'exceptions.IOError'>
Could not process KID  3124620  exception:  <type 'exceptions.IOError'>
Could not process KID  3324051  exception:  <type 'exceptions.IOError'>
Could not process KID  3338660  exception:  <type 'exceptions.IOError'>
Could not process KID  3234757  exception:  <type 'exceptions.IOError'>
Could not process KID  3231410  exception:  <type 'exceptions.IOError'>
Could not process KID  3098194  exception:  <type 'exceptions.IOError'>
Could not process KID  3341831  exception:  <type 'exceptions.IOError'>
Could not process KID  2557335  exception:  <type 'exceptions.IOError'>
Could not process KID  2853453  exception:  <type 'exceptions.IOError'>
Could not process KID  2853489  exception:  <type 'exceptions.IOError'>
Could not process KID  2975804  exception:  <type 'exceptions.IOError'>
Could not process KID  2572881  exception:  <type 'exceptions.IOError'>
Could not process KID  2711263  exception:  <type 'exceptions.IOError'>
Could not process KID  2573349  exception:  <type 'exceptions.IOError'>
Could not process KID  2711614  exception:  <type 'exceptions.IOError'>
Could not process KID  2712175  exception:  <type 'exceptions.IOError'>
Could not process KID  2580872  exception:  <type 'exceptions.IOError'>
Could not process KID  2835732  exception:  <type 'exceptions.IOError'>
Could not process KID  2836821  exception:  <type 'exceptions.IOError'>
Could not process KID  2575964  exception:  <type 'exceptions.IOError'>
Could not process KID  2714336  exception:  <type 'exceptions.IOError'>
Could not process KID  2837927  exception:  <type 'exceptions.IOError'>
Could not process KID  2845527  exception:  <type 'exceptions.IOError'>
Could not process KID  2860788  exception:  <type 'exceptions.IOError'>
Could not process KID  2851674  exception:  <type 'exceptions.IOError'>
Could not process KID  3663141  exception:  <type 'exceptions.IOError'>
Could not process KID  3853673  exception:  <type 'exceptions.IOError'>
Could not process KID  3663961  exception:  <type 'exceptions.IOError'>
Could not process KID  3655332  exception:  <type 'exceptions.IOError'>
Could not process KID  3745228  exception:  <type 'exceptions.IOError'>
Could not process KID  3848919  exception:  <type 'exceptions.IOError'>
Could not process KID  3745512  exception:  <type 'exceptions.IOError'>
Could not process KID  3765644  exception:  <type 'exceptions.IOError'>
Could not process KID  3849415  exception:  <type 'exceptions.IOError'>
Could not process KID  3835664  exception:  <type 'exceptions.IOError'>
Could not process KID  3842866  exception:  <type 'exceptions.IOError'>
Could not process KID  3836413  exception:  <type 'exceptions.IOError'>
Could not process KID  3846475  exception:  <type 'exceptions.IOError'>
Could not process KID  3847018  exception:  <type 'exceptions.IOError'>
Could not process KID  3661526  exception:  <type 'exceptions.IOError'>
Could not process KID  3661555  exception:  <type 'exceptions.IOError'>
Could not process KID  3547315  exception:  <type 'exceptions.IOError'>
Could not process KID  3344419  exception:  <type 'exceptions.IOError'>
Could not process KID  3351578  exception:  <type 'exceptions.IOError'>
Could not process KID  3344881  exception:  <type 'exceptions.IOError'>
Could not process KID  3344944  exception:  <type 'exceptions.IOError'>
Could not process KID  3345643  exception:  <type 'exceptions.IOError'>
Could not process KID  3560871  exception:  <type 'exceptions.IOError'>
Could not process KID  3561227  exception:  <type 'exceptions.IOError'>
Could not process KID  3527878  exception:  <type 'exceptions.IOError'>
Could not process KID  3550685  exception:  <type 'exceptions.IOError'>
Could not process KID  3437032  exception:  <type 'exceptions.IOError'>
Could not process KID  3538890  exception:  <type 'exceptions.IOError'>
Could not process KID  3543270  exception:  <type 'exceptions.IOError'>
Could not process KID  3543775  exception:  <type 'exceptions.IOError'>
Could not process KID  4345134  exception:  <type 'exceptions.IOError'>
Could not process KID  4359901  exception:  <type 'exceptions.IOError'>
Could not process KID  4155010  exception:  <type 'exceptions.IOError'>
Could not process KID  4352631  exception:  <type 'exceptions.IOError'>
Could not process KID  4354794  exception:  <type 'exceptions.IOError'>
Could not process KID  4281895  exception:  <type 'exceptions.IOError'>
Could not process KID  4145058  exception:  <type 'exceptions.IOError'>
Could not process KID  4347761  exception:  <type 'exceptions.IOError'>
Could not process KID  4247791  exception:  <type 'exceptions.IOError'>
Could not process KID  4247807  exception:  <type 'exceptions.IOError'>
Could not process KID  4356766  exception:  <type 'exceptions.IOError'>
Could not process KID  4378168  exception:  <type 'exceptions.IOError'>
Could not process KID  4249898  exception:  <type 'exceptions.IOError'>
Could not process KID  4345034  exception:  <type 'exceptions.IOError'>
Could not process KID  3951936  exception:  <type 'exceptions.IOError'>
Could not process KID  4071274  exception:  <type 'exceptions.IOError'>
Could not process KID  4054342  exception:  <type 'exceptions.IOError'>
Could not process KID  4054531  exception:  <type 'exceptions.IOError'>
Could not process KID  3968716  exception:  <type 'exceptions.IOError'>
Could not process KID  3957477  exception:  <type 'exceptions.IOError'>
Could not process KID  3945630  exception:  <type 'exceptions.IOError'>
Could not process KID  3965242  exception:  <type 'exceptions.IOError'>
Could not process KID  3946788  exception:  <type 'exceptions.IOError'>
Could not process KID  4040793  exception:  <type 'exceptions.IOError'>
Could not process KID  3975437  exception:  <type 'exceptions.IOError'>
Could not process KID  3975928  exception:  <type 'exceptions.IOError'>
Could not process KID  4042138  exception:  <type 'exceptions.IOError'>
Could not process KID  4071038  exception:  <type 'exceptions.IOError'>
Could not process KID  4681152  exception:  <type 'exceptions.IOError'>
Could not process KID  4845301  exception:  <type 'exceptions.IOError'>
Could not process KID  4682938  exception:  <type 'exceptions.IOError'>
Could not process KID  4823842  exception:  <type 'exceptions.IOError'>
Could not process KID  4823988  exception:  <type 'exceptions.IOError'>
Could not process KID  4824019  exception:  <type 'exceptions.IOError'>
Could not process KID  4825102  exception:  <type 'exceptions.IOError'>
Could not process KID  4825183  exception:  <type 'exceptions.IOError'>
Could not process KID  4670267  exception:  <type 'exceptions.IOError'>
Could not process KID  4830001  exception:  <type 'exceptions.IOError'>
Could not process KID  4456622  exception:  <type 'exceptions.IOError'>
Could not process KID  4390663  exception:  <type 'exceptions.IOError'>
Could not process KID  4473226  exception:  <type 'exceptions.IOError'>
Could not process KID  4466830  exception:  <type 'exceptions.IOError'>
Could not process KID  4490769  exception:  <type 'exceptions.IOError'>
Could not process KID  4579321  exception:  <type 'exceptions.IOError'>
Could not process KID  4474637  exception:  <type 'exceptions.IOError'>
Could not process KID  4636177  exception:  <type 'exceptions.IOError'>
Could not process KID  4452048  exception:  <type 'exceptions.IOError'>
Could not process KID  4636563  exception:  <type 'exceptions.IOError'>
Could not process KID  4584571  exception:  <type 'exceptions.IOError'>
Could not process KID  4476403  exception:  <type 'exceptions.IOError'>
Could not process KID  4584685  exception:  <type 'exceptions.IOError'>
Could not process KID  4384652  exception:  <type 'exceptions.IOError'>
Could not process KID  4464215  exception:  <type 'exceptions.IOError'>
Could not process KID  5179946  exception:  <type 'exceptions.IOError'>
Could not process KID  5180114  exception:  <type 'exceptions.IOError'>
Could not process KID  5040077  exception:  <type 'exceptions.IOError'>
Could not process KID  5178287  exception:  <type 'exceptions.IOError'>
Could not process KID  5023548  exception:  <type 'exceptions.IOError'>
Could not process KID  5171052  exception:  <type 'exceptions.IOError'>
Could not process KID  5104128  exception:  <type 'exceptions.IOError'>
Could not process KID  5107843  exception:  <type 'exceptions.IOError'>
Could not process KID  5087022  exception:  <type 'exceptions.IOError'>
Could not process KID  5087071  exception:  <type 'exceptions.IOError'>
Could not process KID  5107905  exception:  <type 'exceptions.IOError'>
Could not process KID  5116101  exception:  <type 'exceptions.IOError'>
Could not process KID  5127030  exception:  <type 'exceptions.IOError'>
Could not process KID  4941212  exception:  <type 'exceptions.IOError'>
Could not process KID  5018787  exception:  <type 'exceptions.IOError'>
Could not process KID  4913123  exception:  <type 'exceptions.IOError'>
Could not process KID  4917786  exception:  <type 'exceptions.IOError'>
Could not process KID  4853494  exception:  <type 'exceptions.IOError'>
Could not process KID  4937356  exception:  <type 'exceptions.IOError'>
Could not process KID  5010357  exception:  <type 'exceptions.IOError'>
Could not process KID  5001768  exception:  <type 'exceptions.IOError'>
Could not process KID  5010365  exception:  <type 'exceptions.IOError'>
Could not process KID  4992502  exception:  <type 'exceptions.IOError'>
Could not process KID  4922612  exception:  <type 'exceptions.IOError'>
Could not process KID  4901776  exception:  <type 'exceptions.IOError'>
Could not process KID  4909707  exception:  <type 'exceptions.IOError'>
Could not process KID  4948863  exception:  <type 'exceptions.IOError'>
Could not process KID  4909945  exception:  <type 'exceptions.IOError'>
Could not process KID  5483173  exception:  <type 'exceptions.IOError'>
Could not process KID  5481017  exception:  <type 'exceptions.IOError'>
Could not process KID  5355432  exception:  <type 'exceptions.IOError'>
Could not process KID  5355653  exception:  <type 'exceptions.IOError'>
Could not process KID  5432016  exception:  <type 'exceptions.IOError'>
Could not process KID  5463045  exception:  <type 'exceptions.IOError'>
Could not process KID  5475431  exception:  <type 'exceptions.IOError'>
Could not process KID  5475736  exception:  <type 'exceptions.IOError'>
Could not process KID  5467102  exception:  <type 'exceptions.IOError'>
Could not process KID  5441980  exception:  <type 'exceptions.IOError'>
Could not process KID  5377592  exception:  <type 'exceptions.IOError'>
Could not process KID  5370002  exception:  <type 'exceptions.IOError'>
Could not process KID  5215195  exception:  <type 'exceptions.IOError'>
Could not process KID  5215233  exception:  <type 'exceptions.IOError'>
Could not process KID  5215236  exception:  <type 'exceptions.IOError'>
Could not process KID  5354713  exception:  <type 'exceptions.IOError'>
Could not process KID  5343741  exception:  <type 'exceptions.IOError'>
Could not process KID  5343976  exception:  <type 'exceptions.IOError'>
Could not process KID  5266937  exception:  <type 'exceptions.IOError'>
Could not process KID  5345426  exception:  <type 'exceptions.IOError'>
Could not process KID  5347465  exception:  <type 'exceptions.IOError'>
Could not process KID  5347537  exception:  <type 'exceptions.IOError'>
Could not process KID  5195235  exception:  <type 'exceptions.IOError'>
Could not process KID  5347757  exception:  <type 'exceptions.IOError'>
Could not process KID  5349595  exception:  <type 'exceptions.IOError'>
Could not process KID  5219708  exception:  <type 'exceptions.IOError'>
Could not process KID  5282995  exception:  <type 'exceptions.IOError'>
Could not process KID  5269407  exception:  <type 'exceptions.IOError'>
Could not process KID  5301907  exception:  <type 'exceptions.IOError'>
Could not process KID  5302122  exception:  <type 'exceptions.IOError'>
Could not process KID  5697179  exception:  <type 'exceptions.IOError'>
Could not process KID  5697230  exception:  <type 'exceptions.IOError'>
Could not process KID  5697290  exception:  <type 'exceptions.IOError'>
Could not process KID  5807579  exception:  <type 'exceptions.IOError'>
Could not process KID  5796185  exception:  <type 'exceptions.IOError'>
Could not process KID  5779055  exception:  <type 'exceptions.IOError'>
Could not process KID  5738431  exception:  <type 'exceptions.IOError'>
Could not process KID  5653972  exception:  <type 'exceptions.IOError'>
Could not process KID  5718527  exception:  <type 'exceptions.IOError'>
Could not process KID  5728719  exception:  <type 'exceptions.IOError'>
Could not process KID  5781192  exception:  <type 'exceptions.IOError'>
Could not process KID  5729515  exception:  <type 'exceptions.IOError'>
Could not process KID  5730394  exception:  <type 'exceptions.IOError'>
Could not process KID  5802470  exception:  <type 'exceptions.IOError'>
Could not process KID  5803538  exception:  <type 'exceptions.IOError'>
Could not process KID  5527172  exception:  <type 'exceptions.IOError'>
Could not process KID  5534012  exception:  <type 'exceptions.IOError'>
Could not process KID  5534013  exception:  <type 'exceptions.IOError'>
Could not process KID  5546277  exception:  <type 'exceptions.IOError'>
Could not process KID  5517381  exception:  <type 'exceptions.IOError'>
Could not process KID  5598584  exception:  <type 'exceptions.IOError'>
Could not process KID  5520452  exception:  <type 'exceptions.IOError'>
Could not process KID  5520468  exception:  <type 'exceptions.IOError'>
Could not process KID  5611838  exception:  <type 'exceptions.IOError'>
Could not process KID  5633663  exception:  <type 'exceptions.IOError'>
Could not process KID  5559442  exception:  <type 'exceptions.IOError'>
Could not process KID  5559500  exception:  <type 'exceptions.IOError'>
Could not process KID  5568417  exception:  <type 'exceptions.IOError'>
Could not process KID  5568633  exception:  <type 'exceptions.IOError'>
Could not process KID  5614575  exception:  <type 'exceptions.IOError'>
Could not process KID  5615000  exception:  <type 'exceptions.IOError'>
Could not process KID  5537255  exception:  <type 'exceptions.IOError'>
Could not process KID  6029871  exception:  <type 'exceptions.IOError'>
Could not process KID  6150977  exception:  <type 'exceptions.IOError'>
Could not process KID  6019202  exception:  <type 'exceptions.IOError'>
Could not process KID  6068947  exception:  <type 'exceptions.IOError'>
Could not process KID  6070064  exception:  <type 'exceptions.IOError'>
Could not process KID  6044064  exception:  <type 'exceptions.IOError'>
Could not process KID  6047470  exception:  <type 'exceptions.IOError'>
Could not process KID  6128331  exception:  <type 'exceptions.IOError'>
Could not process KID  6111084  exception:  <type 'exceptions.IOError'>
Could not process KID  6128360  exception:  <type 'exceptions.IOError'>
Could not process KID  6128365  exception:  <type 'exceptions.IOError'>
Could not process KID  6073130  exception:  <type 'exceptions.IOError'>
Could not process KID  6058896  exception:  <type 'exceptions.IOError'>
Could not process KID  6064685  exception:  <type 'exceptions.IOError'>
Could not process KID  6041948  exception:  <type 'exceptions.IOError'>
Could not process KID  6045268  exception:  <type 'exceptions.IOError'>
Could not process KID  6146838  exception:  <type 'exceptions.IOError'>
Could not process KID  6060580  exception:  <type 'exceptions.IOError'>
Could not process KID  5814620  exception:  <type 'exceptions.IOError'>
Could not process KID  5873665  exception:  <type 'exceptions.IOError'>
Could not process KID  5816806  exception:  <type 'exceptions.IOError'>
Could not process KID  5824233  exception:  <type 'exceptions.IOError'>
Could not process KID  5965623  exception:  <type 'exceptions.IOError'>
Could not process KID  5965662  exception:  <type 'exceptions.IOError'>
Could not process KID  5864912  exception:  <type 'exceptions.IOError'>
Could not process KID  5864928  exception:  <type 'exceptions.IOError'>
Could not process KID  5881654  exception:  <type 'exceptions.IOError'>
Could not process KID  5957357  exception:  <type 'exceptions.IOError'>
Could not process KID  5857267  exception:  <type 'exceptions.IOError'>
Could not process KID  5975112  exception:  <type 'exceptions.IOError'>
Could not process KID  5882754  exception:  <type 'exceptions.IOError'>
Could not process KID  5949536  exception:  <type 'exceptions.IOError'>
Could not process KID  6497743  exception:  <type 'exceptions.IOError'>
Could not process KID  6393008  exception:  <type 'exceptions.IOError'>
Could not process KID  6444755  exception:  <type 'exceptions.IOError'>
Could not process KID  6463034  exception:  <type 'exceptions.IOError'>
Could not process KID  6463117  exception:  <type 'exceptions.IOError'>
Could not process KID  6367628  exception:  <type 'exceptions.IOError'>
Could not process KID  6367779  exception:  <type 'exceptions.IOError'>
Could not process KID  6449552  exception:  <type 'exceptions.IOError'>
Could not process KID  6372271  exception:  <type 'exceptions.IOError'>
Could not process KID  6446271  exception:  <type 'exceptions.IOError'>
Could not process KID  6384699  exception:  <type 'exceptions.IOError'>
Could not process KID  6443392  exception:  <type 'exceptions.IOError'>
Could not process KID  6355939  exception:  <type 'exceptions.IOError'>
Could not process KID  6226872  exception:  <type 'exceptions.IOError'>
Could not process KID  6314185  exception:  <type 'exceptions.IOError'>
Could not process KID  6273529  exception:  <type 'exceptions.IOError'>
Could not process KID  6276192  exception:  <type 'exceptions.IOError'>
Could not process KID  6195604  exception:  <type 'exceptions.IOError'>
Could not process KID  6306451  exception:  <type 'exceptions.IOError'>
Could not process KID  6300791  exception:  <type 'exceptions.IOError'>
Could not process KID  6204878  exception:  <type 'exceptions.IOError'>
Could not process KID  6209347  exception:  <type 'exceptions.IOError'>
Could not process KID  6284824  exception:  <type 'exceptions.IOError'>
Could not process KID  6288962  exception:  <type 'exceptions.IOError'>
Could not process KID  6213997  exception:  <type 'exceptions.IOError'>
Could not process KID  6836589  exception:  <type 'exceptions.IOError'>
Could not process KID  6753213  exception:  <type 'exceptions.IOError'>
Could not process KID  6781535  exception:  <type 'exceptions.IOError'>
Could not process KID  6781548  exception:  <type 'exceptions.IOError'>
Could not process KID  6781691  exception:  <type 'exceptions.IOError'>
Could not process KID  6841577  exception:  <type 'exceptions.IOError'>
Could not process KID  6694186  exception:  <type 'exceptions.IOError'>
Could not process KID  6782367  exception:  <type 'exceptions.IOError'>
Could not process KID  6794657  exception:  <type 'exceptions.IOError'>
Could not process KID  6768605  exception:  <type 'exceptions.IOError'>
Could not process KID  6794703  exception:  <type 'exceptions.IOError'>
Could not process KID  6794887  exception:  <type 'exceptions.IOError'>
Could not process KID  6773781  exception:  <type 'exceptions.IOError'>
Could not process KID  6795363  exception:  <type 'exceptions.IOError'>
Could not process KID  6800579  exception:  <type 'exceptions.IOError'>
Could not process KID  6685575  exception:  <type 'exceptions.IOError'>
Could not process KID  6685705  exception:  <type 'exceptions.IOError'>
Could not process KID  6591789  exception:  <type 'exceptions.IOError'>
Could not process KID  6524866  exception:  <type 'exceptions.IOError'>
Could not process KID  6505262  exception:  <type 'exceptions.IOError'>
Could not process KID  6600677  exception:  <type 'exceptions.IOError'>
Could not process KID  6531485  exception:  <type 'exceptions.IOError'>
Could not process KID  6602972  exception:  <type 'exceptions.IOError'>
Could not process KID  6621052  exception:  <type 'exceptions.IOError'>
Could not process KID  6546508  exception:  <type 'exceptions.IOError'>
Could not process KID  6627310  exception:  <type 'exceptions.IOError'>
Could not process KID  6535078  exception:  <type 'exceptions.IOError'>
Could not process KID  6522750  exception:  <type 'exceptions.IOError'>
Could not process KID  6594972  exception:  <type 'exceptions.IOError'>
Could not process KID  6616218  exception:  <type 'exceptions.IOError'>
Could not process KID  6608823  exception:  <type 'exceptions.IOError'>
Could not process KID  6619022  exception:  <type 'exceptions.IOError'>
Could not process KID  6636310  exception:  <type 'exceptions.IOError'>
Could not process KID  6636458  exception:  <type 'exceptions.IOError'>
Could not process KID  6664413  exception:  <type 'exceptions.IOError'>
Could not process KID  6595648  exception:  <type 'exceptions.IOError'>
Could not process KID  7173278  exception:  <type 'exceptions.IOError'>
Could not process KID  7199168  exception:  <type 'exceptions.IOError'>
Could not process KID  7187682  exception:  <type 'exceptions.IOError'>
Could not process KID  7060939  exception:  <type 'exceptions.IOError'>
Could not process KID  7060948  exception:  <type 'exceptions.IOError'>
Could not process KID  7178164  exception:  <type 'exceptions.IOError'>
Could not process KID  7124533  exception:  <type 'exceptions.IOError'>
Could not process KID  7132542  exception:  <type 'exceptions.IOError'>
Could not process KID  7125105  exception:  <type 'exceptions.IOError'>
Could not process KID  7035536  exception:  <type 'exceptions.IOError'>
Could not process KID  7040488  exception:  <type 'exceptions.IOError'>
Could not process KID  7128757  exception:  <type 'exceptions.IOError'>
Could not process KID  7042208  exception:  <type 'exceptions.IOError'>
Could not process KID  7115012  exception:  <type 'exceptions.IOError'>
Could not process KID  7115085  exception:  <type 'exceptions.IOError'>
Could not process KID  7136664  exception:  <type 'exceptions.IOError'>
Could not process KID  7119232  exception:  <type 'exceptions.IOError'>
Could not process KID  7094058  exception:  <type 'exceptions.IOError'>
Could not process KID  7094448  exception:  <type 'exceptions.IOError'>
Could not process KID  7021689  exception:  <type 'exceptions.IOError'>
Could not process KID  7021147  exception:  <type 'exceptions.IOError'>
Could not process KID  7009828  exception:  <type 'exceptions.IOError'>
Could not process KID  6865463  exception:  <type 'exceptions.IOError'>
Could not process KID  6865575  exception:  <type 'exceptions.IOError'>
Could not process KID  6939670  exception:  <type 'exceptions.IOError'>
Could not process KID  6964043  exception:  <type 'exceptions.IOError'>
Could not process KID  6881599  exception:  <type 'exceptions.IOError'>
Could not process KID  6881681  exception:  <type 'exceptions.IOError'>
Could not process KID  6886926  exception:  <type 'exceptions.IOError'>
Could not process KID  7007099  exception:  <type 'exceptions.IOError'>
Could not process KID  6936009  exception:  <type 'exceptions.IOError'>
Could not process KID  6936075  exception:  <type 'exceptions.IOError'>
Could not process KID  6957287  exception:  <type 'exceptions.IOError'>
Could not process KID  6854344  exception:  <type 'exceptions.IOError'>
Could not process KID  6888121  exception:  <type 'exceptions.IOError'>
Could not process KID  6940922  exception:  <type 'exceptions.IOError'>
Could not process KID  6859107  exception:  <type 'exceptions.IOError'>
Could not process KID  6859196  exception:  <type 'exceptions.IOError'>
Could not process KID  6941248  exception:  <type 'exceptions.IOError'>
Could not process KID  6941374  exception:  <type 'exceptions.IOError'>
Could not process KID  6949550  exception:  <type 'exceptions.IOError'>
Could not process KID  7016847  exception:  <type 'exceptions.IOError'>
Could not process KID  6890618  exception:  <type 'exceptions.IOError'>
Could not process KID  6933267  exception:  <type 'exceptions.IOError'>
Could not process KID  6954115  exception:  <type 'exceptions.IOError'>
Could not process KID  6973983  exception:  <type 'exceptions.IOError'>
Could not process KID  7524305  exception:  <type 'exceptions.IOError'>
Could not process KID  7524477  exception:  <type 'exceptions.IOError'>
Could not process KID  7524531  exception:  <type 'exceptions.IOError'>
Could not process KID  7534721  exception:  <type 'exceptions.IOError'>
Could not process KID  7519250  exception:  <type 'exceptions.IOError'>
Could not process KID  7521613  exception:  <type 'exceptions.IOError'>
Could not process KID  7521763  exception:  <type 'exceptions.IOError'>
Could not process KID  7501371  exception:  <type 'exceptions.IOError'>
Could not process KID  7438922  exception:  <type 'exceptions.IOError'>
Could not process KID  7439000  exception:  <type 'exceptions.IOError'>
Could not process KID  7439038  exception:  <type 'exceptions.IOError'>
Could not process KID  7439042  exception:  <type 'exceptions.IOError'>
Could not process KID  7369995  exception:  <type 'exceptions.IOError'>
Could not process KID  7439089  exception:  <type 'exceptions.IOError'>
Could not process KID  7514206  exception:  <type 'exceptions.IOError'>
Could not process KID  7524610  exception:  <type 'exceptions.IOError'>
Could not process KID  7524654  exception:  <type 'exceptions.IOError'>
Could not process KID  7372856  exception:  <type 'exceptions.IOError'>
Could not process KID  7372971  exception:  <type 'exceptions.IOError'>
Could not process KID  7462080  exception:  <type 'exceptions.IOError'>
Could not process KID  7440597  exception:  <type 'exceptions.IOError'>
Could not process KID  7456364  exception:  <type 'exceptions.IOError'>
Could not process KID  7441067  exception:  <type 'exceptions.IOError'>
Could not process KID  7441108  exception:  <type 'exceptions.IOError'>
Could not process KID  7445083  exception:  <type 'exceptions.IOError'>
Could not process KID  7471021  exception:  <type 'exceptions.IOError'>
Could not process KID  7445171  exception:  <type 'exceptions.IOError'>
Could not process KID  7445206  exception:  <type 'exceptions.IOError'>
Could not process KID  7445437  exception:  <type 'exceptions.IOError'>
Could not process KID  7341711  exception:  <type 'exceptions.IOError'>
Could not process KID  7349281  exception:  <type 'exceptions.IOError'>
Could not process KID  7349680  exception:  <type 'exceptions.IOError'>
Could not process KID  7345136  exception:  <type 'exceptions.IOError'>
Could not process KID  7357009  exception:  <type 'exceptions.IOError'>
Could not process KID  7357023  exception:  <type 'exceptions.IOError'>
Could not process KID  7357159  exception:  <type 'exceptions.IOError'>
Could not process KID  7258744  exception:  <type 'exceptions.IOError'>
Could not process KID  7357183  exception:  <type 'exceptions.IOError'>
Could not process KID  7357194  exception:  <type 'exceptions.IOError'>
Could not process KID  7357197  exception:  <type 'exceptions.IOError'>
Could not process KID  7357212  exception:  <type 'exceptions.IOError'>
Could not process KID  7357344  exception:  <type 'exceptions.IOError'>
Could not process KID  7283213  exception:  <type 'exceptions.IOError'>
Could not process KID  7210894  exception:  <type 'exceptions.IOError'>
Could not process KID  7210899  exception:  <type 'exceptions.IOError'>
Could not process KID  7357757  exception:  <type 'exceptions.IOError'>
Could not process KID  7358254  exception:  <type 'exceptions.IOError'>
Could not process KID  7358343  exception:  <type 'exceptions.IOError'>
Could not process KID  7358433  exception:  <type 'exceptions.IOError'>
Could not process KID  7201497  exception:  <type 'exceptions.IOError'>
Could not process KID  7264584  exception:  <type 'exceptions.IOError'>
Could not process KID  7264622  exception:  <type 'exceptions.IOError'>
Could not process KID  7201601  exception:  <type 'exceptions.IOError'>
Could not process KID  7277008  exception:  <type 'exceptions.IOError'>
Could not process KID  7277048  exception:  <type 'exceptions.IOError'>
Could not process KID  7277208  exception:  <type 'exceptions.IOError'>
Could not process KID  7284688  exception:  <type 'exceptions.IOError'>
Could not process KID  7212722  exception:  <type 'exceptions.IOError'>
Could not process KID  7289157  exception:  <type 'exceptions.IOError'>
Could not process KID  7220322  exception:  <type 'exceptions.IOError'>
Could not process KID  7336059  exception:  <type 'exceptions.IOError'>
Could not process KID  7829604  exception:  <type 'exceptions.IOError'>
Could not process KID  7749318  exception:  <type 'exceptions.IOError'>
Could not process KID  7827118  exception:  <type 'exceptions.IOError'>
Could not process KID  7744093  exception:  <type 'exceptions.IOError'>
Could not process KID  7708522  exception:  <type 'exceptions.IOError'>
Could not process KID  7708544  exception:  <type 'exceptions.IOError'>
Could not process KID  7813610  exception:  <type 'exceptions.IOError'>
Could not process KID  7708985  exception:  <type 'exceptions.IOError'>
Could not process KID  7744952  exception:  <type 'exceptions.IOError'>
Could not process KID  7813795  exception:  <type 'exceptions.IOError'>
Could not process KID  7815675  exception:  <type 'exceptions.IOError'>
Could not process KID  7815720  exception:  <type 'exceptions.IOError'>
Could not process KID  7700590  exception:  <type 'exceptions.IOError'>
Could not process KID  7709438  exception:  <type 'exceptions.IOError'>
Could not process KID  7709587  exception:  <type 'exceptions.IOError'>
Could not process KID  7746879  exception:  <type 'exceptions.IOError'>
Could not process KID  7746913  exception:  <type 'exceptions.IOError'>
Could not process KID  7746984  exception:  <type 'exceptions.IOError'>
Could not process KID  7815744  exception:  <type 'exceptions.IOError'>
Could not process KID  7835450  exception:  <type 'exceptions.IOError'>
Could not process KID  7766114  exception:  <type 'exceptions.IOError'>
Could not process KID  7821376  exception:  <type 'exceptions.IOError'>
Could not process KID  7821409  exception:  <type 'exceptions.IOError'>
Could not process KID  7821483  exception:  <type 'exceptions.IOError'>
Could not process KID  7821531  exception:  <type 'exceptions.IOError'>
Could not process KID  7821689  exception:  <type 'exceptions.IOError'>
Could not process KID  7821717  exception:  <type 'exceptions.IOError'>
Could not process KID  7821928  exception:  <type 'exceptions.IOError'>
Could not process KID  7838655  exception:  <type 'exceptions.IOError'>
Could not process KID  7755733  exception:  <type 'exceptions.IOError'>
Could not process KID  7777365  exception:  <type 'exceptions.IOError'>
Could not process KID  7822160  exception:  <type 'exceptions.IOError'>
Could not process KID  7822233  exception:  <type 'exceptions.IOError'>
Could not process KID  7825546  exception:  <type 'exceptions.IOError'>
Could not process KID  7777416  exception:  <type 'exceptions.IOError'>
Could not process KID  7825764  exception:  <type 'exceptions.IOError'>
Could not process KID  7604879  exception:  <type 'exceptions.IOError'>
Could not process KID  7620412  exception:  <type 'exceptions.IOError'>
Could not process KID  7604944  exception:  <type 'exceptions.IOError'>
Could not process KID  7605103  exception:  <type 'exceptions.IOError'>
Could not process KID  7680502  exception:  <type 'exceptions.IOError'>
Could not process KID  7594622  exception:  <type 'exceptions.IOError'>
Could not process KID  7605425  exception:  <type 'exceptions.IOError'>
Could not process KID  7680726  exception:  <type 'exceptions.IOError'>
Could not process KID  7680864  exception:  <type 'exceptions.IOError'>
Could not process KID  7676503  exception:  <type 'exceptions.IOError'>
Could not process KID  7676530  exception:  <type 'exceptions.IOError'>
Could not process KID  7681282  exception:  <type 'exceptions.IOError'>
Could not process KID  7687974  exception:  <type 'exceptions.IOError'>
Could not process KID  7688009  exception:  <type 'exceptions.IOError'>
Could not process KID  7590723  exception:  <type 'exceptions.IOError'>
Could not process KID  7599159  exception:  <type 'exceptions.IOError'>
Could not process KID  7599327  exception:  <type 'exceptions.IOError'>
Could not process KID  7601437  exception:  <type 'exceptions.IOError'>
Could not process KID  7601577  exception:  <type 'exceptions.IOError'>
Could not process KID  7601602  exception:  <type 'exceptions.IOError'>
Could not process KID  7601622  exception:  <type 'exceptions.IOError'>
Could not process KID  7691527  exception:  <type 'exceptions.IOError'>
Could not process KID  7553542  exception:  <type 'exceptions.IOError'>
Could not process KID  7596937  exception:  <type 'exceptions.IOError'>
Could not process KID  7544862  exception:  <type 'exceptions.IOError'>
Could not process KID  7581087  exception:  <type 'exceptions.IOError'>
Could not process KID  7597128  exception:  <type 'exceptions.IOError'>
Could not process KID  7619722  exception:  <type 'exceptions.IOError'>
Could not process KID  7619830  exception:  <type 'exceptions.IOError'>
Could not process KID  7597703  exception:  <type 'exceptions.IOError'>
Could not process KID  8016214  exception:  <type 'exceptions.IOError'>
Could not process KID  8045126  exception:  <type 'exceptions.IOError'>
Could not process KID  8004903  exception:  <type 'exceptions.IOError'>
Could not process KID  8027040  exception:  <type 'exceptions.IOError'>
Could not process KID  8027209  exception:  <type 'exceptions.IOError'>
Could not process KID  8027212  exception:  <type 'exceptions.IOError'>
Could not process KID  8027253  exception:  <type 'exceptions.IOError'>
Could not process KID  8027418  exception:  <type 'exceptions.IOError'>
Could not process KID  8094292  exception:  <type 'exceptions.IOError'>
Could not process KID  8023317  exception:  <type 'exceptions.IOError'>
Could not process KID  8095740  exception:  <type 'exceptions.IOError'>
Could not process KID  8095798  exception:  <type 'exceptions.IOError'>
Could not process KID  8095828  exception:  <type 'exceptions.IOError'>
Could not process KID  8090038  exception:  <type 'exceptions.IOError'>
Could not process KID  8090169  exception:  <type 'exceptions.IOError'>
Could not process KID  8095858  exception:  <type 'exceptions.IOError'>
Could not process KID  8095931  exception:  <type 'exceptions.IOError'>
Could not process KID  8096031  exception:  <type 'exceptions.IOError'>
Could not process KID  8047283  exception:  <type 'exceptions.IOError'>
Could not process KID  8090541  exception:  <type 'exceptions.IOError'>
Could not process KID  8090577  exception:  <type 'exceptions.IOError'>
Could not process KID  8077869  exception:  <type 'exceptions.IOError'>
Could not process KID  8090792  exception:  <type 'exceptions.IOError'>
Could not process KID  8090824  exception:  <type 'exceptions.IOError'>
Could not process KID  8090883  exception:  <type 'exceptions.IOError'>
Could not process KID  8090908  exception:  <type 'exceptions.IOError'>
Could not process KID  8097825  exception:  <type 'exceptions.IOError'>
Could not process KID  8006631  exception:  <type 'exceptions.IOError'>
Could not process KID  8048003  exception:  <type 'exceptions.IOError'>
Could not process KID  8090968  exception:  <type 'exceptions.IOError'>
Could not process KID  8090992  exception:  <type 'exceptions.IOError'>
Could not process KID  8091001  exception:  <type 'exceptions.IOError'>
Could not process KID  8091064  exception:  <type 'exceptions.IOError'>
Could not process KID  8073806  exception:  <type 'exceptions.IOError'>
Could not process KID  8099735  exception:  <type 'exceptions.IOError'>
Could not process KID  8099791  exception:  <type 'exceptions.IOError'>
Could not process KID  8100038  exception:  <type 'exceptions.IOError'>
Could not process KID  8025172  exception:  <type 'exceptions.IOError'>
Could not process KID  8029981  exception:  <type 'exceptions.IOError'>
Could not process KID  8080877  exception:  <type 'exceptions.IOError'>
Could not process KID  8030146  exception:  <type 'exceptions.IOError'>
Could not process KID  8030216  exception:  <type 'exceptions.IOError'>
Could not process KID  8030239  exception:  <type 'exceptions.IOError'>
Could not process KID  7979612  exception:  <type 'exceptions.IOError'>
Could not process KID  7989172  exception:  <type 'exceptions.IOError'>
Could not process KID  8030339  exception:  <type 'exceptions.IOError'>
Could not process KID  8030372  exception:  <type 'exceptions.IOError'>
Could not process KID  8075345  exception:  <type 'exceptions.IOError'>
Could not process KID  8021814  exception:  <type 'exceptions.IOError'>
Could not process KID  7905551  exception:  <type 'exceptions.IOError'>
Could not process KID  7974582  exception:  <type 'exceptions.IOError'>
Could not process KID  7975062  exception:  <type 'exceptions.IOError'>
Could not process KID  7975125  exception:  <type 'exceptions.IOError'>
Could not process KID  7842610  exception:  <type 'exceptions.IOError'>
Could not process KID  7958449  exception:  <type 'exceptions.IOError'>
Could not process KID  7958518  exception:  <type 'exceptions.IOError'>
Could not process KID  7958562  exception:  <type 'exceptions.IOError'>
Could not process KID  7958659  exception:  <type 'exceptions.IOError'>
Could not process KID  7958680  exception:  <type 'exceptions.IOError'>
Could not process KID  7958701  exception:  <type 'exceptions.IOError'>
Could not process KID  7958738  exception:  <type 'exceptions.IOError'>
Could not process KID  7940533  exception:  <type 'exceptions.IOError'>
Could not process KID  7958866  exception:  <type 'exceptions.IOError'>
Could not process KID  7958902  exception:  <type 'exceptions.IOError'>
Could not process KID  7958931  exception:  <type 'exceptions.IOError'>
Could not process KID  7884124  exception:  <type 'exceptions.IOError'>
Could not process KID  7884294  exception:  <type 'exceptions.IOError'>
Could not process KID  7884337  exception:  <type 'exceptions.IOError'>
Could not process KID  7884408  exception:  <type 'exceptions.IOError'>
Could not process KID  7955363  exception:  <type 'exceptions.IOError'>
Could not process KID  7885197  exception:  <type 'exceptions.IOError'>
Could not process KID  7889748  exception:  <type 'exceptions.IOError'>
Could not process KID  7889845  exception:  <type 'exceptions.IOError'>
Could not process KID  7889863  exception:  <type 'exceptions.IOError'>
Could not process KID  7889868  exception:  <type 'exceptions.IOError'>
Could not process KID  7889911  exception:  <type 'exceptions.IOError'>
Could not process KID  7941635  exception:  <type 'exceptions.IOError'>
Could not process KID  7941703  exception:  <type 'exceptions.IOError'>
Could not process KID  7885570  exception:  <type 'exceptions.IOError'>
Could not process KID  7960484  exception:  <type 'exceptions.IOError'>
Could not process KID  7874878  exception:  <type 'exceptions.IOError'>
Could not process KID  7960547  exception:  <type 'exceptions.IOError'>
Could not process KID  7960686  exception:  <type 'exceptions.IOError'>
Could not process KID  7903666  exception:  <type 'exceptions.IOError'>
Could not process KID  7903777  exception:  <type 'exceptions.IOError'>
Could not process KID  7960818  exception:  <type 'exceptions.IOError'>
Could not process KID  7960943  exception:  <type 'exceptions.IOError'>
Could not process KID  7891053  exception:  <type 'exceptions.IOError'>
Could not process KID  7891058  exception:  <type 'exceptions.IOError'>
Could not process KID  7904360  exception:  <type 'exceptions.IOError'>
Could not process KID  7891188  exception:  <type 'exceptions.IOError'>
Could not process KID  7891243  exception:  <type 'exceptions.IOError'>
Could not process KID  7891253  exception:  <type 'exceptions.IOError'>
Could not process KID  7891276  exception:  <type 'exceptions.IOError'>
Could not process KID  7891466  exception:  <type 'exceptions.IOError'>
Could not process KID  7891526  exception:  <type 'exceptions.IOError'>
Could not process KID  8240336  exception:  <type 'exceptions.IOError'>
Could not process KID  8265027  exception:  <type 'exceptions.IOError'>
Could not process KID  8314801  exception:  <type 'exceptions.IOError'>
Could not process KID  8330432  exception:  <type 'exceptions.IOError'>
Could not process KID  8330491  exception:  <type 'exceptions.IOError'>
Could not process KID  8330842  exception:  <type 'exceptions.IOError'>
Could not process KID  8228604  exception:  <type 'exceptions.IOError'>
Could not process KID  8291849  exception:  <type 'exceptions.IOError'>
Could not process KID  8291871  exception:  <type 'exceptions.IOError'>
Could not process KID  8291915  exception:  <type 'exceptions.IOError'>
Could not process KID  8317034  exception:  <type 'exceptions.IOError'>
Could not process KID  8297032  exception:  <type 'exceptions.IOError'>
Could not process KID  8297227  exception:  <type 'exceptions.IOError'>
Could not process KID  8297235  exception:  <type 'exceptions.IOError'>
Could not process KID  8229277  exception:  <type 'exceptions.IOError'>
Could not process KID  8229456  exception:  <type 'exceptions.IOError'>
Could not process KID  8261336  exception:  <type 'exceptions.IOError'>
Could not process KID  8297289  exception:  <type 'exceptions.IOError'>
Could not process KID  8297361  exception:  <type 'exceptions.IOError'>
Could not process KID  8297370  exception:  <type 'exceptions.IOError'>
Could not process KID  8302406  exception:  <type 'exceptions.IOError'>
Could not process KID  8302431  exception:  <type 'exceptions.IOError'>
Could not process KID  8251167  exception:  <type 'exceptions.IOError'>
Could not process KID  8264266  exception:  <type 'exceptions.IOError'>
Could not process KID  8264327  exception:  <type 'exceptions.IOError'>
Could not process KID  8302473  exception:  <type 'exceptions.IOError'>
Could not process KID  8302573  exception:  <type 'exceptions.IOError'>
Could not process KID  8264329  exception:  <type 'exceptions.IOError'>
Could not process KID  8264336  exception:  <type 'exceptions.IOError'>
Could not process KID  8264391  exception:  <type 'exceptions.IOError'>
Could not process KID  8264399  exception:  <type 'exceptions.IOError'>
Could not process KID  8264445  exception:  <type 'exceptions.IOError'>
Could not process KID  8230787  exception:  <type 'exceptions.IOError'>
Could not process KID  8230792  exception:  <type 'exceptions.IOError'>
Could not process KID  8329055  exception:  <type 'exceptions.IOError'>
Could not process KID  8230830  exception:  <type 'exceptions.IOError'>
Could not process KID  8230865  exception:  <type 'exceptions.IOError'>
Could not process KID  8230921  exception:  <type 'exceptions.IOError'>
Could not process KID  8231003  exception:  <type 'exceptions.IOError'>
Could not process KID  8231043  exception:  <type 'exceptions.IOError'>
Could not process KID  8231130  exception:  <type 'exceptions.IOError'>
Could not process KID  8231134  exception:  <type 'exceptions.IOError'>
Could not process KID  8231145  exception:  <type 'exceptions.IOError'>
Could not process KID  8264599  exception:  <type 'exceptions.IOError'>
Could not process KID  8280711  exception:  <type 'exceptions.IOError'>
Could not process KID  8264676  exception:  <type 'exceptions.IOError'>
Could not process KID  8264701  exception:  <type 'exceptions.IOError'>
Could not process KID  8294684  exception:  <type 'exceptions.IOError'>
Could not process KID  8294832  exception:  <type 'exceptions.IOError'>
Could not process KID  8264736  exception:  <type 'exceptions.IOError'>
Could not process KID  8264737  exception:  <type 'exceptions.IOError'>
Could not process KID  8264755  exception:  <type 'exceptions.IOError'>
Could not process KID  8264790  exception:  <type 'exceptions.IOError'>
Could not process KID  8264792  exception:  <type 'exceptions.IOError'>
Could not process KID  8294926  exception:  <type 'exceptions.IOError'>
Could not process KID  8294999  exception:  <type 'exceptions.IOError'>
Could not process KID  8295035  exception:  <type 'exceptions.IOError'>
Could not process KID  8295064  exception:  <type 'exceptions.IOError'>
Could not process KID  8295101  exception:  <type 'exceptions.IOError'>
Could not process KID  8330135  exception:  <type 'exceptions.IOError'>
Could not process KID  8330186  exception:  <type 'exceptions.IOError'>
Could not process KID  8236239  exception:  <type 'exceptions.IOError'>
Could not process KID  8236319  exception:  <type 'exceptions.IOError'>
Could not process KID  8264806  exception:  <type 'exceptions.IOError'>
Could not process KID  8264816  exception:  <type 'exceptions.IOError'>
Could not process KID  8295180  exception:  <type 'exceptions.IOError'>
Could not process KID  8295304  exception:  <type 'exceptions.IOError'>
Could not process KID  8330417  exception:  <type 'exceptions.IOError'>
Could not process KID  8236360  exception:  <type 'exceptions.IOError'>
Could not process KID  8236376  exception:  <type 'exceptions.IOError'>
Could not process KID  8239980  exception:  <type 'exceptions.IOError'>
Could not process KID  8227991  exception:  <type 'exceptions.IOError'>
Could not process KID  8227994  exception:  <type 'exceptions.IOError'>
Could not process KID  8228129  exception:  <type 'exceptions.IOError'>
Could not process KID  8228153  exception:  <type 'exceptions.IOError'>
Could not process KID  8228183  exception:  <type 'exceptions.IOError'>
Could not process KID  8228295  exception:  <type 'exceptions.IOError'>
Could not process KID  8223987  exception:  <type 'exceptions.IOError'>
Could not process KID  8225620  exception:  <type 'exceptions.IOError'>
Could not process KID  8225663  exception:  <type 'exceptions.IOError'>
Could not process KID  8227738  exception:  <type 'exceptions.IOError'>
Could not process KID  8227776  exception:  <type 'exceptions.IOError'>
Could not process KID  8227894  exception:  <type 'exceptions.IOError'>
Could not process KID  8128965  exception:  <type 'exceptions.IOError'>
Could not process KID  8210721  exception:  <type 'exceptions.IOError'>
Could not process KID  8114054  exception:  <type 'exceptions.IOError'>
Could not process KID  8197292  exception:  <type 'exceptions.IOError'>
Could not process KID  8159417  exception:  <type 'exceptions.IOError'>
Could not process KID  8159478  exception:  <type 'exceptions.IOError'>
Could not process KID  8159711  exception:  <type 'exceptions.IOError'>
Could not process KID  8159826  exception:  <type 'exceptions.IOError'>
Could not process KID  8163713  exception:  <type 'exceptions.IOError'>
Could not process KID  8163784  exception:  <type 'exceptions.IOError'>
Could not process KID  8163822  exception:  <type 'exceptions.IOError'>
Could not process KID  8167978  exception:  <type 'exceptions.IOError'>
Could not process KID  8143255  exception:  <type 'exceptions.IOError'>
Could not process KID  8168054  exception:  <type 'exceptions.IOError'>
Could not process KID  8168166  exception:  <type 'exceptions.IOError'>
Could not process KID  8197621  exception:  <type 'exceptions.IOError'>
Could not process KID  8197723  exception:  <type 'exceptions.IOError'>
Could not process KID  8111381  exception:  <type 'exceptions.IOError'>
Could not process KID  8168566  exception:  <type 'exceptions.IOError'>
Could not process KID  8168581  exception:  <type 'exceptions.IOError'>
Could not process KID  8168653  exception:  <type 'exceptions.IOError'>
Could not process KID  8168813  exception:  <type 'exceptions.IOError'>
Could not process KID  8171739  exception:  <type 'exceptions.IOError'>
Could not process KID  8221534  exception:  <type 'exceptions.IOError'>
Could not process KID  8161295  exception:  <type 'exceptions.IOError'>
Could not process KID  8155368  exception:  <type 'exceptions.IOError'>
Could not process KID  8521787  exception:  <type 'exceptions.IOError'>
Could not process KID  8557311  exception:  <type 'exceptions.IOError'>
Could not process KID  8608517  exception:  <type 'exceptions.IOError'>
Could not process KID  8591847  exception:  <type 'exceptions.IOError'>
Could not process KID  8591933  exception:  <type 'exceptions.IOError'>
Could not process KID  8500822  exception:  <type 'exceptions.IOError'>
Could not process KID  8521886  exception:  <type 'exceptions.IOError'>
Could not process KID  8557510  exception:  <type 'exceptions.IOError'>
Could not process KID  8557627  exception:  <type 'exceptions.IOError'>
Could not process KID  8557739  exception:  <type 'exceptions.IOError'>
Could not process KID  8578775  exception:  <type 'exceptions.IOError'>
Could not process KID  8557784  exception:  <type 'exceptions.IOError'>
Could not process KID  8557938  exception:  <type 'exceptions.IOError'>
Could not process KID  8557943  exception:  <type 'exceptions.IOError'>
Could not process KID  8561616  exception:  <type 'exceptions.IOError'>
Could not process KID  8561659  exception:  <type 'exceptions.IOError'>
Could not process KID  8478684  exception:  <type 'exceptions.IOError'>
Could not process KID  8478701  exception:  <type 'exceptions.IOError'>
Could not process KID  8546512  exception:  <type 'exceptions.IOError'>
Could not process KID  8558132  exception:  <type 'exceptions.IOError'>
Could not process KID  8558202  exception:  <type 'exceptions.IOError'>
Could not process KID  8563706  exception:  <type 'exceptions.IOError'>
Could not process KID  8558416  exception:  <type 'exceptions.IOError'>
Could not process KID  8473971  exception:  <type 'exceptions.IOError'>
Could not process KID  8485426  exception:  <type 'exceptions.IOError'>
Could not process KID  8543435  exception:  <type 'exceptions.IOError'>
Could not process KID  8485473  exception:  <type 'exceptions.IOError'>
Could not process KID  8487149  exception:  <type 'exceptions.IOError'>
Could not process KID  8491748  exception:  <type 'exceptions.IOError'>
Could not process KID  8491752  exception:  <type 'exceptions.IOError'>
Could not process KID  8491883  exception:  <type 'exceptions.IOError'>
Could not process KID  8492003  exception:  <type 'exceptions.IOError'>
Could not process KID  8492050  exception:  <type 'exceptions.IOError'>
Could not process KID  8517006  exception:  <type 'exceptions.IOError'>
Could not process KID  8492384  exception:  <type 'exceptions.IOError'>
Could not process KID  8492499  exception:  <type 'exceptions.IOError'>
Could not process KID  8492538  exception:  <type 'exceptions.IOError'>
Could not process KID  8492610  exception:  <type 'exceptions.IOError'>
Could not process KID  8492615  exception:  <type 'exceptions.IOError'>
Could not process KID  8492629  exception:  <type 'exceptions.IOError'>
Could not process KID  8497181  exception:  <type 'exceptions.IOError'>
Could not process KID  8497184  exception:  <type 'exceptions.IOError'>
Could not process KID  8572936  exception:  <type 'exceptions.IOError'>
Could not process KID  8492823  exception:  <type 'exceptions.IOError'>
Could not process KID  8492900  exception:  <type 'exceptions.IOError'>
Could not process KID  8551803  exception:  <type 'exceptions.IOError'>
Could not process KID  8551810  exception:  <type 'exceptions.IOError'>
Could not process KID  8556337  exception:  <type 'exceptions.IOError'>
Could not process KID  8556393  exception:  <type 'exceptions.IOError'>
Could not process KID  8566183  exception:  <type 'exceptions.IOError'>
Could not process KID  8607289  exception:  <type 'exceptions.IOError'>
Could not process KID  8552540  exception:  <type 'exceptions.IOError'>
Could not process KID  8556654  exception:  <type 'exceptions.IOError'>
Could not process KID  8556764  exception:  <type 'exceptions.IOError'>
Could not process KID  8488878  exception:  <type 'exceptions.IOError'>
Could not process KID  8556838  exception:  <type 'exceptions.IOError'>
Could not process KID  8357644  exception:  <type 'exceptions.IOError'>
Could not process KID  8357647  exception:  <type 'exceptions.IOError'>
Could not process KID  8357798  exception:  <type 'exceptions.IOError'>
Could not process KID  8362722  exception:  <type 'exceptions.IOError'>
Could not process KID  8362758  exception:  <type 'exceptions.IOError'>
Could not process KID  8376337  exception:  <type 'exceptions.IOError'>
Could not process KID  8392630  exception:  <type 'exceptions.IOError'>
Could not process KID  8427528  exception:  <type 'exceptions.IOError'>
Could not process KID  8427869  exception:  <type 'exceptions.IOError'>
Could not process KID  8427910  exception:  <type 'exceptions.IOError'>
Could not process KID  8457840  exception:  <type 'exceptions.IOError'>
Could not process KID  8428049  exception:  <type 'exceptions.IOError'>
Could not process KID  8362765  exception:  <type 'exceptions.IOError'>
Could not process KID  8362828  exception:  <type 'exceptions.IOError'>
Could not process KID  8362858  exception:  <type 'exceptions.IOError'>
Could not process KID  8362868  exception:  <type 'exceptions.IOError'>
Could not process KID  8386170  exception:  <type 'exceptions.IOError'>
Could not process KID  8386205  exception:  <type 'exceptions.IOError'>
Could not process KID  8386358  exception:  <type 'exceptions.IOError'>
Could not process KID  8368097  exception:  <type 'exceptions.IOError'>
Could not process KID  8368164  exception:  <type 'exceptions.IOError'>
Could not process KID  8432987  exception:  <type 'exceptions.IOError'>
Could not process KID  8433003  exception:  <type 'exceptions.IOError'>
Could not process KID  8433016  exception:  <type 'exceptions.IOError'>
Could not process KID  8368167  exception:  <type 'exceptions.IOError'>
Could not process KID  8370535  exception:  <type 'exceptions.IOError'>
Could not process KID  8373476  exception:  <type 'exceptions.IOError'>
Could not process KID  8411894  exception:  <type 'exceptions.IOError'>
Could not process KID  8435133  exception:  <type 'exceptions.IOError'>
Could not process KID  8435239  exception:  <type 'exceptions.IOError'>
Could not process KID  8444552  exception:  <type 'exceptions.IOError'>
Could not process KID  8438947  exception:  <type 'exceptions.IOError'>
Could not process KID  8439154  exception:  <type 'exceptions.IOError'>
Could not process KID  8439296  exception:  <type 'exceptions.IOError'>
Could not process KID  8420687  exception:  <type 'exceptions.IOError'>
Could not process KID  8361214  exception:  <type 'exceptions.IOError'>
Could not process KID  8361334  exception:  <type 'exceptions.IOError'>
Could not process KID  8332687  exception:  <type 'exceptions.IOError'>
Could not process KID  8361433  exception:  <type 'exceptions.IOError'>
Could not process KID  8361463  exception:  <type 'exceptions.IOError'>
Could not process KID  8361518  exception:  <type 'exceptions.IOError'>
Could not process KID  8361737  exception:  <type 'exceptions.IOError'>
Could not process KID  8365739  exception:  <type 'exceptions.IOError'>
Could not process KID  8343265  exception:  <type 'exceptions.IOError'>
Could not process KID  8361845  exception:  <type 'exceptions.IOError'>
Could not process KID  8361869  exception:  <type 'exceptions.IOError'>
Could not process KID  8361905  exception:  <type 'exceptions.IOError'>
Could not process KID  8361975  exception:  <type 'exceptions.IOError'>
Could not process KID  8422825  exception:  <type 'exceptions.IOError'>
Could not process KID  8422843  exception:  <type 'exceptions.IOError'>
Could not process KID  8427048  exception:  <type 'exceptions.IOError'>
Could not process KID  8356054  exception:  <type 'exceptions.IOError'>
Could not process KID  8357639  exception:  <type 'exceptions.IOError'>
Could not process KID  8865544  exception:  <type 'exceptions.IOError'>
Could not process KID  8865545  exception:  <type 'exceptions.IOError'>
Could not process KID  8886027  exception:  <type 'exceptions.IOError'>
Could not process KID  8886092  exception:  <type 'exceptions.IOError'>
Could not process KID  8749552  exception:  <type 'exceptions.IOError'>
Could not process KID  8749602  exception:  <type 'exceptions.IOError'>
Could not process KID  8886425  exception:  <type 'exceptions.IOError'>
Could not process KID  8827740  exception:  <type 'exceptions.IOError'>
Could not process KID  8828143  exception:  <type 'exceptions.IOError'>
Could not process KID  8828267  exception:  <type 'exceptions.IOError'>
Could not process KID  8880672  exception:  <type 'exceptions.IOError'>
Could not process KID  8880849  exception:  <type 'exceptions.IOError'>
Could not process KID  8803690  exception:  <type 'exceptions.IOError'>
Could not process KID  8818647  exception:  <type 'exceptions.IOError'>
Could not process KID  8818675  exception:  <type 'exceptions.IOError'>
Could not process KID  8752618  exception:  <type 'exceptions.IOError'>
Could not process KID  8752660  exception:  <type 'exceptions.IOError'>
Could not process KID  8752887  exception:  <type 'exceptions.IOError'>
Could not process KID  8814285  exception:  <type 'exceptions.IOError'>
Could not process KID  8814313  exception:  <type 'exceptions.IOError'>
Could not process KID  8814395  exception:  <type 'exceptions.IOError'>
Could not process KID  8819042  exception:  <type 'exceptions.IOError'>
Could not process KID  8819100  exception:  <type 'exceptions.IOError'>
Could not process KID  8819102  exception:  <type 'exceptions.IOError'>
Could not process KID  8819168  exception:  <type 'exceptions.IOError'>
Could not process KID  8835876  exception:  <type 'exceptions.IOError'>
Could not process KID  8753055  exception:  <type 'exceptions.IOError'>
Could not process KID  8753071  exception:  <type 'exceptions.IOError'>
Could not process KID  8753134  exception:  <type 'exceptions.IOError'>
Could not process KID  8753141  exception:  <type 'exceptions.IOError'>
Could not process KID  8903226  exception:  <type 'exceptions.IOError'>
Could not process KID  8753251  exception:  <type 'exceptions.IOError'>
Could not process KID  8753300  exception:  <type 'exceptions.IOError'>
Could not process KID  8753426  exception:  <type 'exceptions.IOError'>
Could not process KID  8767759  exception:  <type 'exceptions.IOError'>
Could not process KID  8767812  exception:  <type 'exceptions.IOError'>
Could not process KID  8819673  exception:  <type 'exceptions.IOError'>
Could not process KID  8906045  exception:  <type 'exceptions.IOError'>
Could not process KID  8753654  exception:  <type 'exceptions.IOError'>
Could not process KID  8753658  exception:  <type 'exceptions.IOError'>
Could not process KID  8819825  exception:  <type 'exceptions.IOError'>
Could not process KID  8878187  exception:  <type 'exceptions.IOError'>
Could not process KID  8878203  exception:  <type 'exceptions.IOError'>
Could not process KID  8878306  exception:  <type 'exceptions.IOError'>
Could not process KID  8878329  exception:  <type 'exceptions.IOError'>
Could not process KID  8811370  exception:  <type 'exceptions.IOError'>
Could not process KID  8811490  exception:  <type 'exceptions.IOError'>
Could not process KID  8623280  exception:  <type 'exceptions.IOError'>
Could not process KID  8623285  exception:  <type 'exceptions.IOError'>
Could not process KID  8623311  exception:  <type 'exceptions.IOError'>
Could not process KID  8623334  exception:  <type 'exceptions.IOError'>
Could not process KID  8623473  exception:  <type 'exceptions.IOError'>
Could not process KID  8623527  exception:  <type 'exceptions.IOError'>
Could not process KID  8623552  exception:  <type 'exceptions.IOError'>
Could not process KID  8655458  exception:  <type 'exceptions.IOError'>
Could not process KID  8678875  exception:  <type 'exceptions.IOError'>
Could not process KID  8685436  exception:  <type 'exceptions.IOError'>
Could not process KID  8685451  exception:  <type 'exceptions.IOError'>
Could not process KID  8685524  exception:  <type 'exceptions.IOError'>
Could not process KID  8749310  exception:  <type 'exceptions.IOError'>
Could not process KID  8749330  exception:  <type 'exceptions.IOError'>
Could not process KID  8749424  exception:  <type 'exceptions.IOError'>
Could not process KID  8745601  exception:  <type 'exceptions.IOError'>
Could not process KID  8745715  exception:  <type 'exceptions.IOError'>
Could not process KID  8745861  exception:  <type 'exceptions.IOError'>
Could not process KID  8623605  exception:  <type 'exceptions.IOError'>
Could not process KID  8681125  exception:  <type 'exceptions.IOError'>
Could not process KID  8692591  exception:  <type 'exceptions.IOError'>
Could not process KID  8736245  exception:  <type 'exceptions.IOError'>
Could not process KID  8648913  exception:  <type 'exceptions.IOError'>
Could not process KID  8648977  exception:  <type 'exceptions.IOError'>
Could not process KID  8649104  exception:  <type 'exceptions.IOError'>
Could not process KID  8649177  exception:  <type 'exceptions.IOError'>
Could not process KID  8616356  exception:  <type 'exceptions.IOError'>
Could not process KID  8656716  exception:  <type 'exceptions.IOError'>
Could not process KID  8650381  exception:  <type 'exceptions.IOError'>
Could not process KID  8620834  exception:  <type 'exceptions.IOError'>
Could not process KID  8687722  exception:  <type 'exceptions.IOError'>
Could not process KID  8621001  exception:  <type 'exceptions.IOError'>
Could not process KID  8621022  exception:  <type 'exceptions.IOError'>
Could not process KID  8621114  exception:  <type 'exceptions.IOError'>
Could not process KID  8621129  exception:  <type 'exceptions.IOError'>
Could not process KID  8639647  exception:  <type 'exceptions.IOError'>
Could not process KID  8688158  exception:  <type 'exceptions.IOError'>
Could not process KID  8621224  exception:  <type 'exceptions.IOError'>
Could not process KID  8621263  exception:  <type 'exceptions.IOError'>
Could not process KID  8631612  exception:  <type 'exceptions.IOError'>
Could not process KID  8640081  exception:  <type 'exceptions.IOError'>
Could not process KID  8640107  exception:  <type 'exceptions.IOError'>
Could not process KID  8688190  exception:  <type 'exceptions.IOError'>
Could not process KID  8688197  exception:  <type 'exceptions.IOError'>
Could not process KID  8688234  exception:  <type 'exceptions.IOError'>
Could not process KID  8688275  exception:  <type 'exceptions.IOError'>
Could not process KID  8688354  exception:  <type 'exceptions.IOError'>
Could not process KID  8635458  exception:  <type 'exceptions.IOError'>
Could not process KID  8704120  exception:  <type 'exceptions.IOError'>
Could not process KID  8626412  exception:  <type 'exceptions.IOError'>
Could not process KID  8645191  exception:  <type 'exceptions.IOError'>
Could not process KID  8733329  exception:  <type 'exceptions.IOError'>
Could not process KID  8622817  exception:  <type 'exceptions.IOError'>
Could not process KID  8622862  exception:  <type 'exceptions.IOError'>
Could not process KID  8733497  exception:  <type 'exceptions.IOError'>
Could not process KID  8623153  exception:  <type 'exceptions.IOError'>
Could not process KID  8623165  exception:  <type 'exceptions.IOError'>
Could not process KID  8623230  exception:  <type 'exceptions.IOError'>
Could not process KID  8623258  exception:  <type 'exceptions.IOError'>
Could not process KID  8685037  exception:  <type 'exceptions.IOError'>
Could not process KID  8685125  exception:  <type 'exceptions.IOError'>
Could not process KID  8685268  exception:  <type 'exceptions.IOError'>
Could not process KID  8685279  exception:  <type 'exceptions.IOError'>
Could not process KID  8685320  exception:  <type 'exceptions.IOError'>
Could not process KID  8739522  exception:  <type 'exceptions.IOError'>
Could not process KID  9088823  exception:  <type 'exceptions.IOError'>
Could not process KID  9091329  exception:  <type 'exceptions.IOError'>
Could not process KID  9091392  exception:  <type 'exceptions.IOError'>
Could not process KID  9091419  exception:  <type 'exceptions.IOError'>
Could not process KID  9091477  exception:  <type 'exceptions.IOError'>
Could not process KID  9096614  exception:  <type 'exceptions.IOError'>
Could not process KID  9171234  exception:  <type 'exceptions.IOError'>
Could not process KID  9217682  exception:  <type 'exceptions.IOError'>
Could not process KID  9171801  exception:  <type 'exceptions.IOError'>
Could not process KID  9203969  exception:  <type 'exceptions.IOError'>
Could not process KID  9204171  exception:  <type 'exceptions.IOError'>
Could not process KID  9222064  exception:  <type 'exceptions.IOError'>
Could not process KID  9149802  exception:  <type 'exceptions.IOError'>
Could not process KID  9149854  exception:  <type 'exceptions.IOError'>
Could not process KID  9149942  exception:  <type 'exceptions.IOError'>
Could not process KID  9154308  exception:  <type 'exceptions.IOError'>
Could not process KID  9154392  exception:  <type 'exceptions.IOError'>
Could not process KID  9149996  exception:  <type 'exceptions.IOError'>
Could not process KID  9213803  exception:  <type 'exceptions.IOError'>
Could not process KID  9213849  exception:  <type 'exceptions.IOError'>
Could not process KID  9034114  exception:  <type 'exceptions.IOError'>
Could not process KID  9034362  exception:  <type 'exceptions.IOError'>
Could not process KID  9079553  exception:  <type 'exceptions.IOError'>
Could not process KID  9083189  exception:  <type 'exceptions.IOError'>
Could not process KID  9083288  exception:  <type 'exceptions.IOError'>
Could not process KID  9083316  exception:  <type 'exceptions.IOError'>
Could not process KID  9083514  exception:  <type 'exceptions.IOError'>
Could not process KID  9083594  exception:  <type 'exceptions.IOError'>
Could not process KID  9083615  exception:  <type 'exceptions.IOError'>
Could not process KID  9083616  exception:  <type 'exceptions.IOError'>
Could not process KID  9083672  exception:  <type 'exceptions.IOError'>
Could not process KID  9083714  exception:  <type 'exceptions.IOError'>
Could not process KID  9040123  exception:  <type 'exceptions.IOError'>
Could not process KID  8940961  exception:  <type 'exceptions.IOError'>
Could not process KID  9029739  exception:  <type 'exceptions.IOError'>
Could not process KID  9009977  exception:  <type 'exceptions.IOError'>
Could not process KID  9010021  exception:  <type 'exceptions.IOError'>
Could not process KID  8945809  exception:  <type 'exceptions.IOError'>
Could not process KID  8945870  exception:  <type 'exceptions.IOError'>
Could not process KID  8961682  exception:  <type 'exceptions.IOError'>
Could not process KID  9074580  exception:  <type 'exceptions.IOError'>
Could not process KID  8946016  exception:  <type 'exceptions.IOError'>
Could not process KID  8946034  exception:  <type 'exceptions.IOError'>
Could not process KID  9015437  exception:  <type 'exceptions.IOError'>
Could not process KID  9015466  exception:  <type 'exceptions.IOError'>
Could not process KID  9015760  exception:  <type 'exceptions.IOError'>
Could not process KID  9020426  exception:  <type 'exceptions.IOError'>
Could not process KID  9015851  exception:  <type 'exceptions.IOError'>
Could not process KID  9015878  exception:  <type 'exceptions.IOError'>
Could not process KID  9016458  exception:  <type 'exceptions.IOError'>
Could not process KID  9075541  exception:  <type 'exceptions.IOError'>
Could not process KID  9016536  exception:  <type 'exceptions.IOError'>
Could not process KID  9016592  exception:  <type 'exceptions.IOError'>
Could not process KID  9016611  exception:  <type 'exceptions.IOError'>
Could not process KID  9075779  exception:  <type 'exceptions.IOError'>
Could not process KID  9016692  exception:  <type 'exceptions.IOError'>
Could not process KID  9016734  exception:  <type 'exceptions.IOError'>
Could not process KID  9016898  exception:  <type 'exceptions.IOError'>
Could not process KID  9022106  exception:  <type 'exceptions.IOError'>
Could not process KID  8947776  exception:  <type 'exceptions.IOError'>
Could not process KID  8947874  exception:  <type 'exceptions.IOError'>
Could not process KID  8947884  exception:  <type 'exceptions.IOError'>
Could not process KID  9022107  exception:  <type 'exceptions.IOError'>
Could not process KID  9022120  exception:  <type 'exceptions.IOError'>
Could not process KID  9022142  exception:  <type 'exceptions.IOError'>
Could not process KID  9022206  exception:  <type 'exceptions.IOError'>
Could not process KID  9022274  exception:  <type 'exceptions.IOError'>
Could not process KID  9022284  exception:  <type 'exceptions.IOError'>
Could not process KID  9048122  exception:  <type 'exceptions.IOError'>
Could not process KID  8964417  exception:  <type 'exceptions.IOError'>
Could not process KID  9022362  exception:  <type 'exceptions.IOError'>
Could not process KID  8953344  exception:  <type 'exceptions.IOError'>
Could not process KID  9520019  exception:  <type 'exceptions.IOError'>
Could not process KID  9402924  exception:  <type 'exceptions.IOError'>
Could not process KID  9515217  exception:  <type 'exceptions.IOError'>
Could not process KID  9459855  exception:  <type 'exceptions.IOError'>
Could not process KID  9462568  exception:  <type 'exceptions.IOError'>
Could not process KID  9462617  exception:  <type 'exceptions.IOError'>
Could not process KID  9412462  exception:  <type 'exceptions.IOError'>
Could not process KID  9470827  exception:  <type 'exceptions.IOError'>
Could not process KID  9509207  exception:  <type 'exceptions.IOError'>
Could not process KID  9509670  exception:  <type 'exceptions.IOError'>
Could not process KID  9463348  exception:  <type 'exceptions.IOError'>
Could not process KID  9463363  exception:  <type 'exceptions.IOError'>
Could not process KID  9463370  exception:  <type 'exceptions.IOError'>
Could not process KID  9463385  exception:  <type 'exceptions.IOError'>
Could not process KID  9463405  exception:  <type 'exceptions.IOError'>
Could not process KID  9471061  exception:  <type 'exceptions.IOError'>
Could not process KID  9476236  exception:  <type 'exceptions.IOError'>
Could not process KID  9410930  exception:  <type 'exceptions.IOError'>
Could not process KID  9453631  exception:  <type 'exceptions.IOError'>
Could not process KID  9402846  exception:  <type 'exceptions.IOError'>
Could not process KID  9401200  exception:  <type 'exceptions.IOError'>
Could not process KID  9401228  exception:  <type 'exceptions.IOError'>
Could not process KID  9401295  exception:  <type 'exceptions.IOError'>
Could not process KID  9401346  exception:  <type 'exceptions.IOError'>
Could not process KID  9401620  exception:  <type 'exceptions.IOError'>
Could not process KID  9401660  exception:  <type 'exceptions.IOError'>
Could not process KID  9339111  exception:  <type 'exceptions.IOError'>
Could not process KID  9354174  exception:  <type 'exceptions.IOError'>
Could not process KID  9279937  exception:  <type 'exceptions.IOError'>
Could not process KID  9339237  exception:  <type 'exceptions.IOError'>
Could not process KID  9282196  exception:  <type 'exceptions.IOError'>
Could not process KID  9331234  exception:  <type 'exceptions.IOError'>
Could not process KID  9394605  exception:  <type 'exceptions.IOError'>
Could not process KID  9274431  exception:  <type 'exceptions.IOError'>
Could not process KID  9274529  exception:  <type 'exceptions.IOError'>
Could not process KID  9346915  exception:  <type 'exceptions.IOError'>
Could not process KID  9274657  exception:  <type 'exceptions.IOError'>
Could not process KID  9277370  exception:  <type 'exceptions.IOError'>
Could not process KID  9389222  exception:  <type 'exceptions.IOError'>
Could not process KID  9277421  exception:  <type 'exceptions.IOError'>
Could not process KID  9341448  exception:  <type 'exceptions.IOError'>
Could not process KID  9366988  exception:  <type 'exceptions.IOError'>
Could not process KID  9366989  exception:  <type 'exceptions.IOError'>
Could not process KID  9348679  exception:  <type 'exceptions.IOError'>
Could not process KID  9284921  exception:  <type 'exceptions.IOError'>
Could not process KID  9292740  exception:  <type 'exceptions.IOError'>
Could not process KID  9654425  exception:  <type 'exceptions.IOError'>
Could not process KID  9654448  exception:  <type 'exceptions.IOError'>
Could not process KID  9655553  exception:  <type 'exceptions.IOError'>
Could not process KID  9715666  exception:  <type 'exceptions.IOError'>
Could not process KID  9715716  exception:  <type 'exceptions.IOError'>
Could not process KID  9760243  exception:  <type 'exceptions.IOError'>
Could not process KID  9654517  exception:  <type 'exceptions.IOError'>
Could not process KID  9654532  exception:  <type 'exceptions.IOError'>
Could not process KID  9654552  exception:  <type 'exceptions.IOError'>
Could not process KID  9655620  exception:  <type 'exceptions.IOError'>
Could not process KID  9655710  exception:  <type 'exceptions.IOError'>
Could not process KID  9707102  exception:  <type 'exceptions.IOError'>
Could not process KID  9715733  exception:  <type 'exceptions.IOError'>
Could not process KID  9715761  exception:  <type 'exceptions.IOError'>
Could not process KID  9703540  exception:  <type 'exceptions.IOError'>
Could not process KID  9710153  exception:  <type 'exceptions.IOError'>
Could not process KID  9715855  exception:  <type 'exceptions.IOError'>
Could not process KID  9715865  exception:  <type 'exceptions.IOError'>
Could not process KID  9717048  exception:  <type 'exceptions.IOError'>
Could not process KID  9655783  exception:  <type 'exceptions.IOError'>
Could not process KID  9655801  exception:  <type 'exceptions.IOError'>
Could not process KID  9715935  exception:  <type 'exceptions.IOError'>
Could not process KID  9715979  exception:  <type 'exceptions.IOError'>
Could not process KID  9717148  exception:  <type 'exceptions.IOError'>
Could not process KID  9655845  exception:  <type 'exceptions.IOError'>
Could not process KID  9668538  exception:  <type 'exceptions.IOError'>
Could not process KID  9716039  exception:  <type 'exceptions.IOError'>
Could not process KID  9672681  exception:  <type 'exceptions.IOError'>
Could not process KID  9716053  exception:  <type 'exceptions.IOError'>
Could not process KID  9655062  exception:  <type 'exceptions.IOError'>
Could not process KID  9656070  exception:  <type 'exceptions.IOError'>
Could not process KID  9701068  exception:  <type 'exceptions.IOError'>
Could not process KID  9722435  exception:  <type 'exceptions.IOError'>
Could not process KID  9655129  exception:  <type 'exceptions.IOError'>
Could not process KID  9656112  exception:  <type 'exceptions.IOError'>
Could not process KID  9664215  exception:  <type 'exceptions.IOError'>
Could not process KID  9701505  exception:  <type 'exceptions.IOError'>
Could not process KID  9714603  exception:  <type 'exceptions.IOError'>
Could not process KID  9716172  exception:  <type 'exceptions.IOError'>
Could not process KID  9716183  exception:  <type 'exceptions.IOError'>
Could not process KID  9656162  exception:  <type 'exceptions.IOError'>
Could not process KID  9656225  exception:  <type 'exceptions.IOError'>
Could not process KID  9716280  exception:  <type 'exceptions.IOError'>
Could not process KID  9656238  exception:  <type 'exceptions.IOError'>
Could not process KID  9656314  exception:  <type 'exceptions.IOError'>
Could not process KID  9716336  exception:  <type 'exceptions.IOError'>
Could not process KID  9717686  exception:  <type 'exceptions.IOError'>
Could not process KID  9717739  exception:  <type 'exceptions.IOError'>
Could not process KID  9717742  exception:  <type 'exceptions.IOError'>
Could not process KID  9755259  exception:  <type 'exceptions.IOError'>
Could not process KID  9757393  exception:  <type 'exceptions.IOError'>
Could not process KID  9655301  exception:  <type 'exceptions.IOError'>
Could not process KID  9655323  exception:  <type 'exceptions.IOError'>
Could not process KID  9716433  exception:  <type 'exceptions.IOError'>
Could not process KID  9654167  exception:  <type 'exceptions.IOError'>
Could not process KID  9654190  exception:  <type 'exceptions.IOError'>
Could not process KID  9656588  exception:  <type 'exceptions.IOError'>
Could not process KID  9715378  exception:  <type 'exceptions.IOError'>
Could not process KID  9654248  exception:  <type 'exceptions.IOError'>
Could not process KID  9656694  exception:  <type 'exceptions.IOError'>
Could not process KID  9715422  exception:  <type 'exceptions.IOError'>
Could not process KID  9716649  exception:  <type 'exceptions.IOError'>
Could not process KID  9654338  exception:  <type 'exceptions.IOError'>
Could not process KID  9655472  exception:  <type 'exceptions.IOError'>
Could not process KID  9656826  exception:  <type 'exceptions.IOError'>
Could not process KID  9715615  exception:  <type 'exceptions.IOError'>
Could not process KID  9532656  exception:  <type 'exceptions.IOError'>
Could not process KID  9593896  exception:  <type 'exceptions.IOError'>
Could not process KID  9593941  exception:  <type 'exceptions.IOError'>
Could not process KID  9595353  exception:  <type 'exceptions.IOError'>
Could not process KID  9595357  exception:  <type 'exceptions.IOError'>
Could not process KID  9645299  exception:  <type 'exceptions.IOError'>
Could not process KID  9645319  exception:  <type 'exceptions.IOError'>
Could not process KID  9645514  exception:  <type 'exceptions.IOError'>
Could not process KID  9649205  exception:  <type 'exceptions.IOError'>
Could not process KID  9593962  exception:  <type 'exceptions.IOError'>
Could not process KID  9595455  exception:  <type 'exceptions.IOError'>
Could not process KID  9533000  exception:  <type 'exceptions.IOError'>
Could not process KID  9594123  exception:  <type 'exceptions.IOError'>
Could not process KID  9594194  exception:  <type 'exceptions.IOError'>
Could not process KID  9533104  exception:  <type 'exceptions.IOError'>
Could not process KID  9594233  exception:  <type 'exceptions.IOError'>
Could not process KID  9594284  exception:  <type 'exceptions.IOError'>
Could not process KID  9595706  exception:  <type 'exceptions.IOError'>
Could not process KID  9598789  exception:  <type 'exceptions.IOError'>
Could not process KID  9533124  exception:  <type 'exceptions.IOError'>
Could not process KID  9592575  exception:  <type 'exceptions.IOError'>
Could not process KID  9594419  exception:  <type 'exceptions.IOError'>
Could not process KID  9594425  exception:  <type 'exceptions.IOError'>
Could not process KID  9594434  exception:  <type 'exceptions.IOError'>
Could not process KID  9531717  exception:  <type 'exceptions.IOError'>
Could not process KID  9533300  exception:  <type 'exceptions.IOError'>
Could not process KID  9533305  exception:  <type 'exceptions.IOError'>
Could not process KID  9611506  exception:  <type 'exceptions.IOError'>
Could not process KID  9531895  exception:  <type 'exceptions.IOError'>
Could not process KID  9531908  exception:  <type 'exceptions.IOError'>
Could not process KID  9531909  exception:  <type 'exceptions.IOError'>
Could not process KID  9531925  exception:  <type 'exceptions.IOError'>
Could not process KID  9533374  exception:  <type 'exceptions.IOError'>
Could not process KID  9533381  exception:  <type 'exceptions.IOError'>
Could not process KID  9576552  exception:  <type 'exceptions.IOError'>
Could not process KID  9611645  exception:  <type 'exceptions.IOError'>
Could not process KID  9611764  exception:  <type 'exceptions.IOError'>
Could not process KID  9639606  exception:  <type 'exceptions.IOError'>
Could not process KID  9639728  exception:  <type 'exceptions.IOError'>
Could not process KID  9531937  exception:  <type 'exceptions.IOError'>
Could not process KID  9531975  exception:  <type 'exceptions.IOError'>
Could not process KID  9531993  exception:  <type 'exceptions.IOError'>
Could not process KID  9532000  exception:  <type 'exceptions.IOError'>
Could not process KID  9548638  exception:  <type 'exceptions.IOError'>
Could not process KID  9548956  exception:  <type 'exceptions.IOError'>
Could not process KID  9593378  exception:  <type 'exceptions.IOError'>
Could not process KID  9594775  exception:  <type 'exceptions.IOError'>
Could not process KID  9594792  exception:  <type 'exceptions.IOError'>
Could not process KID  9594800  exception:  <type 'exceptions.IOError'>
Could not process KID  9640048  exception:  <type 'exceptions.IOError'>
Could not process KID  9532105  exception:  <type 'exceptions.IOError'>
Could not process KID  9533516  exception:  <type 'exceptions.IOError'>
Could not process KID  9581585  exception:  <type 'exceptions.IOError'>
Could not process KID  9593442  exception:  <type 'exceptions.IOError'>
Could not process KID  9532156  exception:  <type 'exceptions.IOError'>
Could not process KID  9593606  exception:  <type 'exceptions.IOError'>
Could not process KID  9594992  exception:  <type 'exceptions.IOError'>
Could not process KID  9594993  exception:  <type 'exceptions.IOError'>
Could not process KID  9595010  exception:  <type 'exceptions.IOError'>
Could not process KID  9532251  exception:  <type 'exceptions.IOError'>
Could not process KID  9533619  exception:  <type 'exceptions.IOError'>
Could not process KID  9533662  exception:  <type 'exceptions.IOError'>
Could not process KID  9593636  exception:  <type 'exceptions.IOError'>
Could not process KID  9593673  exception:  <type 'exceptions.IOError'>
Could not process KID  9532315  exception:  <type 'exceptions.IOError'>
Could not process KID  9533738  exception:  <type 'exceptions.IOError'>
Could not process KID  9593757  exception:  <type 'exceptions.IOError'>
Could not process KID  9595167  exception:  <type 'exceptions.IOError'>
Could not process KID  9595215  exception:  <type 'exceptions.IOError'>
Could not process KID  9532425  exception:  <type 'exceptions.IOError'>
Could not process KID  9593825  exception:  <type 'exceptions.IOError'>
Could not process KID  9595275  exception:  <type 'exceptions.IOError'>
Could not process KID  9595279  exception:  <type 'exceptions.IOError'>
Could not process KID  9597095  exception:  <type 'exceptions.IOError'>
Could not process KID  9532572  exception:  <type 'exceptions.IOError'>
Could not process KID  9875824  exception:  <type 'exceptions.IOError'>
Could not process KID  9968872  exception:  <type 'exceptions.IOError'>
Could not process KID  9877929  exception:  <type 'exceptions.IOError'>
Could not process KID  9902672  exception:  <type 'exceptions.IOError'>
Could not process KID  9943731  exception:  <type 'exceptions.IOError'>
Could not process KID  9944014  exception:  <type 'exceptions.IOError'>
Could not process KID  9944155  exception:  <type 'exceptions.IOError'>
Could not process KID  9950113  exception:  <type 'exceptions.IOError'>
Could not process KID  9894632  exception:  <type 'exceptions.IOError'>
Could not process KID  9894668  exception:  <type 'exceptions.IOError'>
Could not process KID  9945280  exception:  <type 'exceptions.IOError'>
Could not process KID  9776186  exception:  <type 'exceptions.IOError'>
Could not process KID  9776193  exception:  <type 'exceptions.IOError'>
Could not process KID  9776223  exception:  <type 'exceptions.IOError'>
Could not process KID  9776233  exception:  <type 'exceptions.IOError'>
Could not process KID  9777633  exception:  <type 'exceptions.IOError'>
Could not process KID  9836348  exception:  <type 'exceptions.IOError'>
Could not process KID  9836353  exception:  <type 'exceptions.IOError'>
Could not process KID  9836354  exception:  <type 'exceptions.IOError'>
Could not process KID  9776286  exception:  <type 'exceptions.IOError'>
Could not process KID  9776312  exception:  <type 'exceptions.IOError'>
Could not process KID  9811915  exception:  <type 'exceptions.IOError'>
Could not process KID  9837847  exception:  <type 'exceptions.IOError'>
Could not process KID  9777760  exception:  <type 'exceptions.IOError'>
Could not process KID  9817897  exception:  <type 'exceptions.IOError'>
Could not process KID  9836538  exception:  <type 'exceptions.IOError'>
Could not process KID  9837998  exception:  <type 'exceptions.IOError'>
Could not process KID  9774400  exception:  <type 'exceptions.IOError'>
Could not process KID  9776486  exception:  <type 'exceptions.IOError'>
Could not process KID  9777883  exception:  <type 'exceptions.IOError'>
Could not process KID  9777892  exception:  <type 'exceptions.IOError'>
Could not process KID  9823297  exception:  <type 'exceptions.IOError'>
Could not process KID  9836758  exception:  <type 'exceptions.IOError'>
Could not process KID  9778120  exception:  <type 'exceptions.IOError'>
Could not process KID  9836795  exception:  <type 'exceptions.IOError'>
Could not process KID  9836813  exception:  <type 'exceptions.IOError'>
Could not process KID  9838258  exception:  <type 'exceptions.IOError'>
Could not process KID  9836889  exception:  <type 'exceptions.IOError'>
Could not process KID  9776828  exception:  <type 'exceptions.IOError'>
Could not process KID  9775475  exception:  <type 'exceptions.IOError'>
Could not process KID  9777003  exception:  <type 'exceptions.IOError'>
Could not process KID  9777020  exception:  <type 'exceptions.IOError'>
Could not process KID  9777022  exception:  <type 'exceptions.IOError'>
Could not process KID  9777025  exception:  <type 'exceptions.IOError'>
Could not process KID  9837102  exception:  <type 'exceptions.IOError'>
Could not process KID  9775588  exception:  <type 'exceptions.IOError'>
Could not process KID  9777054  exception:  <type 'exceptions.IOError'>
Could not process KID  9777135  exception:  <type 'exceptions.IOError'>
Could not process KID  9775671  exception:  <type 'exceptions.IOError'>
Could not process KID  9775676  exception:  <type 'exceptions.IOError'>
Could not process KID  9775713  exception:  <type 'exceptions.IOError'>
Could not process KID  9775731  exception:  <type 'exceptions.IOError'>
Could not process KID  9775778  exception:  <type 'exceptions.IOError'>
Could not process KID  9775846  exception:  <type 'exceptions.IOError'>
Could not process KID  9777212  exception:  <type 'exceptions.IOError'>
Could not process KID  9835941  exception:  <type 'exceptions.IOError'>
Could not process KID  9837437  exception:  <type 'exceptions.IOError'>
Could not process KID  9837445  exception:  <type 'exceptions.IOError'>
Could not process KID  9773099  exception:  <type 'exceptions.IOError'>
Could not process KID  9775896  exception:  <type 'exceptions.IOError'>
Could not process KID  9775899  exception:  <type 'exceptions.IOError'>
Could not process KID  9775902  exception:  <type 'exceptions.IOError'>
Could not process KID  9836094  exception:  <type 'exceptions.IOError'>
Could not process KID  9837516  exception:  <type 'exceptions.IOError'>
Could not process KID  9837543  exception:  <type 'exceptions.IOError'>
Could not process KID  9836130  exception:  <type 'exceptions.IOError'>
Could not process KID  9837627  exception:  <type 'exceptions.IOError'>
Could not process KID  9776071  exception:  <type 'exceptions.IOError'>
Could not process KID  9782552  exception:  <type 'exceptions.IOError'>
Could not process KID  9815254  exception:  <type 'exceptions.IOError'>
Could not process KID  9836224  exception:  <type 'exceptions.IOError'>
Could not process KID  9837666  exception:  <type 'exceptions.IOError'>

Now load the data file we just generated:


In [26]:
g_det_eff = loadtxt('g-integrated-eff.dat.gz')
g_det_ids = g_det_eff[:,0]
g_det_eff = g_det_eff[:,1:].reshape((-1, pbins.shape[0]-1, rbins.shape[0]-1))

The designated bin is the (2,2) bin (1.5 to 2.25 in $R$, 40-80 in $P$). Here is a histogram of the average detection efficiency in the designated bin:


In [27]:
pu.plot_histogram_posterior(g_det_eff[:,2,2])
xlabel(r'$\alpha$')
ylabel(r'$p(\alpha)$')


Out[27]:
<matplotlib.text.Text at 0x11c618310>

The posterior on the rate is proportional to $$ p(R | N_{pl}, \alpha) \sim R^{N_{pl}} \exp\left[ - R \sum_i \alpha_i \right] $$

Let's grab the number of counts in the bins:


In [28]:
gkids_set = set(g_det_ids)
g_pl_counts = zeros((pbins.shape[0]-1, rbins.shape[0]-1), dtype=np.int)
noutside = 0
for pl in planets:
    if pl['kepid'] in gkids_set and pl['koi_pdisposition'] == 'CANDIDATE' and pl['koi_max_mult_ev'] >= 15:
        pind = bisect.bisect(pbins, pl['koi_period']) - 1
        rind = bisect.bisect(rbins, pl['koi_prad']) - 1
                
        if (pind < 0) or (rind < 0) or (pind >= g_pl_counts.shape[0]) or (rind >= g_pl_counts.shape[1]):
            noutside += 1
        else:
            g_pl_counts[pind, rind] += 1
print noutside, ' planets landed outside any bins!'


574  planets landed outside any bins!

In [29]:
ggammas = zeros((pbins.shape[0]-1, rbins.shape[0]-1))
ggammamins = zeros((pbins.shape[0]-1, rbins.shape[0]-1))
ggammamaxs = zeros((pbins.shape[0]-1, rbins.shape[0]-1))
for i in range(pbins.shape[0]-1):
    for j in range(rbins.shape[0]-1):
        rmed, rmin, rmax = rate_and_uncertainty(g_pl_counts[i,j], np.sum(g_det_eff[:,i,j]))
        ggammas[i,j] = rmed
        ggammamins[i,j] = rmin
        ggammamaxs[i,j] = rmax


/Users/farr/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/ipykernel/__main__.py:9: RuntimeWarning: divide by zero encountered in log
/Users/farr/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/ipykernel/__main__.py:11: RuntimeWarning: invalid value encountered in divide

In [51]:
PS, RS = meshgrid(pbins, rbins, indexing='ij')
pcolormesh(PS, RS, ggammas, norm=LogNorm())
xscale('log')
yscale('log')
colorbar()
axis(xmin=min(pbins), xmax=max(pbins), ymin=min(rbins), ymax=max(rbins))
xlabel(r'$P$ (d)')
ylabel(r'$R$ ($R_\oplus$)')
savefig('eta_g.pdf')



In [31]:
with gzip.open('pbins.dat.gz', 'w') as out:
    savetxt(out, pbins.reshape((1,-1)))
with gzip.open('rbins.dat.gz', 'w') as out:
    savetxt(out, rbins.reshape((1, -1)))
with gzip.open('eta_g.dat.gz', 'w') as out:
    savetxt(out, ggammas)
with gzip.open('sigma_p_g.dat.gz', 'w') as out:
    savetxt(out, ggammamaxs-ggammas)
with gzip.open('sigma_n_g.dat.gz', 'w') as out:
    savetxt(out, ggammas-ggammamins)

M-Dwarfs

Repeat the above for the M-dwarfs


In [32]:
mdata = genfromtxt(op.join(occur_dir, 'hack_week_m_dwarfs.csv'), delimiter=',', names=True)

In [94]:
with gzip.open('m-integrated-eff.dat.gz.temp', 'w') as out:
    out.write('# kepid ')
    out.write(' '.join(['(%g-%g, %g-%g)'%(plow, phigh, rlow, rhigh) \
                        for (plow, phigh) in zip(pbins[:-1], pbins[1:]) \
                        for (rlow, rhigh) in zip(rbins[:-1], rbins[1:])]))
    out.write('\n')
    for kid in mdata['kepid']:
        try:
            kid = int(round(kid))
            eff = af.open(op.join(eff_dir, 'contourV0%09d_tot.fits.gz'%kid))
            ps = exp(linspace(log(eff[0].header['MINPER']), log(eff[0].header['MAXPER']), eff[0].header['NPER']))
            rs = exp(linspace(log(eff[0].header['MINRP']), log(eff[0].header['MAXRP']), eff[0].header['NRP']))
            int_effs = []
            for plow, phigh in zip(pbins[:-1], pbins[1:]):
                for rlow, rhigh in zip(rbins[:-1], rbins[1:]):
                    int_effs.append(integrate_efficiency(ps, rs, eff[0].data.T, plow, phigh, rlow, rhigh))
            int_effs = array(int_effs)
            out.write('%09d '%kid)
            out.write(' '.join(['%g'%ie for ie in int_effs]))
            out.write('\n')
            eff.close()
        except:
            print 'Could not process KID ', kid, ' exception: ', sys.exc_info()[0]
os.rename('m-integrated-eff.dat.gz.temp', 'm-integrated-eff.dat.gz')


Could not process KID  10979716  exception:  <type 'exceptions.IOError'>
Could not process KID  2442084  exception:  <type 'exceptions.IOError'>
Could not process KID  3831911  exception:  <type 'exceptions.IOError'>
Could not process KID  5080636  exception:  <type 'exceptions.IOError'>
Could not process KID  9612825  exception:  <type 'exceptions.IOError'>
Could not process KID  9787239  exception:  <type 'exceptions.IOError'>

In [33]:
m_det_eff = loadtxt('m-integrated-eff.dat.gz')
m_det_ids = m_det_eff[:,0]
m_det_eff = m_det_eff[:,1:].reshape((-1, pbins.shape[0]-1, rbins.shape[0]-1))

We are interested in the (1, 2) bin for M-dwarfs. What does the detection efficiency look like there?


In [34]:
pu.plot_histogram_posterior(m_det_eff[:,1,2])



In [35]:
mkids_set = set(m_det_ids)
m_pl_counts = zeros((pbins.shape[0]-1, rbins.shape[0]-1), dtype=np.int)
noutside = 0
for pl in planets:
    if pl['kepid'] in mkids_set and pl['koi_pdisposition'] == 'CANDIDATE' and pl['koi_max_mult_ev'] >= 15:
        pind = bisect.bisect(pbins, pl['koi_period']) - 1
        rind = bisect.bisect(rbins, pl['koi_prad']) - 1
                
        if (pind < 0) or (rind < 0) or (pind >= m_pl_counts.shape[0]) or (rind >= m_pl_counts.shape[1]):
            noutside += 1
        else:
            m_pl_counts[pind, rind] += 1
print noutside, ' planets landed outside any bins!'


55  planets landed outside any bins!

In [36]:
mgammas = zeros((pbins.shape[0]-1, rbins.shape[0]-1))
mgammamins = zeros((pbins.shape[0]-1, rbins.shape[0]-1))
mgammamaxs = zeros((pbins.shape[0]-1, rbins.shape[0]-1))
for i in range(pbins.shape[0]-1):
    for j in range(rbins.shape[0]-1):
        rmed, rmin, rmax = rate_and_uncertainty(m_pl_counts[i,j], np.sum(m_det_eff[:,i,j]))
        mgammas[i,j] = rmed
        mgammamins[i,j] = rmin
        mgammamaxs[i,j] = rmax


/Users/farr/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/ipykernel/__main__.py:9: RuntimeWarning: divide by zero encountered in log
/Users/farr/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/ipykernel/__main__.py:11: RuntimeWarning: invalid value encountered in divide

In [53]:
PS, RS = meshgrid(pbins, rbins, indexing='ij')
pcolormesh(PS, RS, mgammas, norm=LogNorm())
xscale('log')
yscale('log')
colorbar()
axis(xmin=min(pbins), xmax=max(pbins), ymin=min(rbins), ymax=max(rbins))
xlabel(r'$P$ (d)')
ylabel(r'$R$ ($R_\oplus$)')
savefig('eta_m.pdf')



In [38]:
print 'In the (1,2) bin R = ', mgammas[1,2], ' + ', (mgammamaxs[1,2]-mgammas[1,2]), ' - ', (mgammas[1,2] - mgammamins[1,2])


In the (1,2) bin R =  0.26058028095  +  0.108671343163  -  0.0849355716341

In [39]:
with gzip.open('pbins.dat.gz', 'w') as out:
    savetxt(out, pbins.reshape((1,-1)))
with gzip.open('rbins.dat.gz', 'w') as out:
    savetxt(out, rbins.reshape((1, -1)))
with gzip.open('eta_m.dat.gz', 'w') as out:
    savetxt(out, mgammas)
with gzip.open('sigma_p_m.dat.gz', 'w') as out:
    savetxt(out, mgammamaxs-mgammas)
with gzip.open('sigma_n_m.dat.gz', 'w') as out:
    savetxt(out, mgammas-mgammamins)

And Finally for K-Dwarfs


In [40]:
kdata = genfromtxt(op.join(occur_dir, 'hack_week_k_dwarfs.csv'), delimiter=',', names=True)

In [113]:
with gzip.open('k-integrated-eff.dat.gz.temp', 'w') as out:
    out.write('# kepid ')
    out.write(' '.join(['(%g-%g, %g-%g)'%(plow, phigh, rlow, rhigh) \
                        for (plow, phigh) in zip(pbins[:-1], pbins[1:]) \
                        for (rlow, rhigh) in zip(rbins[:-1], rbins[1:])]))
    out.write('\n')
    for kid in kdata['kepid']:
        try:
            kid = int(round(kid))
            eff = af.open(op.join(eff_dir, 'contourV0%09d_tot.fits.gz'%kid))
            ps = exp(linspace(log(eff[0].header['MINPER']), log(eff[0].header['MAXPER']), eff[0].header['NPER']))
            rs = exp(linspace(log(eff[0].header['MINRP']), log(eff[0].header['MAXRP']), eff[0].header['NRP']))
            int_effs = []
            for plow, phigh in zip(pbins[:-1], pbins[1:]):
                for rlow, rhigh in zip(rbins[:-1], rbins[1:]):
                    int_effs.append(integrate_efficiency(ps, rs, eff[0].data.T, plow, phigh, rlow, rhigh))
            int_effs = array(int_effs)
            out.write('%09d '%kid)
            out.write(' '.join(['%g'%ie for ie in int_effs]))
            out.write('\n')
            eff.close()
        except:
            print 'Could not process KID ', kid, ' exception: ', sys.exc_info()[0]
os.rename('k-integrated-eff.dat.gz.temp', 'k-integrated-eff.dat.gz')


Could not process KID  10129482  exception:  <type 'exceptions.IOError'>
Could not process KID  10189523  exception:  <type 'exceptions.IOError'>
Could not process KID  10162509  exception:  <type 'exceptions.IOError'>
Could not process KID  10735988  exception:  <type 'exceptions.IOError'>
Could not process KID  10751515  exception:  <type 'exceptions.IOError'>
Could not process KID  10613718  exception:  <type 'exceptions.IOError'>
Could not process KID  10556578  exception:  <type 'exceptions.IOError'>
Could not process KID  11076176  exception:  <type 'exceptions.IOError'>
Could not process KID  10936427  exception:  <type 'exceptions.IOError'>
Could not process KID  11303811  exception:  <type 'exceptions.IOError'>
Could not process KID  11404698  exception:  <type 'exceptions.IOError'>
Could not process KID  11455795  exception:  <type 'exceptions.IOError'>
Could not process KID  11235323  exception:  <type 'exceptions.IOError'>
Could not process KID  11706658  exception:  <type 'exceptions.IOError'>
Could not process KID  11560447  exception:  <type 'exceptions.IOError'>
Could not process KID  11906217  exception:  <type 'exceptions.IOError'>
Could not process KID  12470530  exception:  <type 'exceptions.IOError'>
Could not process KID  12400729  exception:  <type 'exceptions.IOError'>
Could not process KID  3327992  exception:  <type 'exceptions.IOError'>
Could not process KID  3114661  exception:  <type 'exceptions.IOError'>
Could not process KID  3102024  exception:  <type 'exceptions.IOError'>
Could not process KID  3239945  exception:  <type 'exceptions.IOError'>
Could not process KID  3113266  exception:  <type 'exceptions.IOError'>
Could not process KID  3351945  exception:  <type 'exceptions.IOError'>
Could not process KID  4142789  exception:  <type 'exceptions.IOError'>
Could not process KID  3954227  exception:  <type 'exceptions.IOError'>
Could not process KID  4678171  exception:  <type 'exceptions.IOError'>
Could not process KID  4757331  exception:  <type 'exceptions.IOError'>
Could not process KID  4908495  exception:  <type 'exceptions.IOError'>
Could not process KID  5471328  exception:  <type 'exceptions.IOError'>
Could not process KID  5193386  exception:  <type 'exceptions.IOError'>
Could not process KID  5300878  exception:  <type 'exceptions.IOError'>
Could not process KID  5255552  exception:  <type 'exceptions.IOError'>
Could not process KID  5693926  exception:  <type 'exceptions.IOError'>
Could not process KID  5598639  exception:  <type 'exceptions.IOError'>
Could not process KID  6058875  exception:  <type 'exceptions.IOError'>
Could not process KID  6464285  exception:  <type 'exceptions.IOError'>
Could not process KID  6372268  exception:  <type 'exceptions.IOError'>
Could not process KID  6307537  exception:  <type 'exceptions.IOError'>
Could not process KID  6278762  exception:  <type 'exceptions.IOError'>
Could not process KID  6697716  exception:  <type 'exceptions.IOError'>
Could not process KID  6778050  exception:  <type 'exceptions.IOError'>
Could not process KID  7177555  exception:  <type 'exceptions.IOError'>
Could not process KID  7198925  exception:  <type 'exceptions.IOError'>
Could not process KID  7133286  exception:  <type 'exceptions.IOError'>
Could not process KID  7174617  exception:  <type 'exceptions.IOError'>
Could not process KID  6962018  exception:  <type 'exceptions.IOError'>
Could not process KID  7269881  exception:  <type 'exceptions.IOError'>
Could not process KID  7670617  exception:  <type 'exceptions.IOError'>
Could not process KID  7660542  exception:  <type 'exceptions.IOError'>
Could not process KID  8094140  exception:  <type 'exceptions.IOError'>
Could not process KID  8009500  exception:  <type 'exceptions.IOError'>
Could not process KID  8285254  exception:  <type 'exceptions.IOError'>
Could not process KID  8142547  exception:  <type 'exceptions.IOError'>
Could not process KID  8479107  exception:  <type 'exceptions.IOError'>
Could not process KID  8841616  exception:  <type 'exceptions.IOError'>
Could not process KID  8812627  exception:  <type 'exceptions.IOError'>
Could not process KID  9210828  exception:  <type 'exceptions.IOError'>
Could not process KID  8971432  exception:  <type 'exceptions.IOError'>
Could not process KID  8973000  exception:  <type 'exceptions.IOError'>
Could not process KID  9001468  exception:  <type 'exceptions.IOError'>
Could not process KID  9328852  exception:  <type 'exceptions.IOError'>
Could not process KID  9714358  exception:  <type 'exceptions.IOError'>
Could not process KID  9569866  exception:  <type 'exceptions.IOError'>
Could not process KID  9944201  exception:  <type 'exceptions.IOError'>
Could not process KID  9913798  exception:  <type 'exceptions.IOError'>
Could not process KID  9837083  exception:  <type 'exceptions.IOError'>

In [41]:
k_det_eff = loadtxt('k-integrated-eff.dat.gz')
k_det_ids = k_det_eff[:,0]
k_det_eff = k_det_eff[:,1:].reshape((-1, pbins.shape[0]-1, rbins.shape[0]-1))

In [42]:
kkids_set = set(k_det_ids)
k_pl_counts = zeros((pbins.shape[0]-1, rbins.shape[0]-1), dtype=np.int)
noutside = 0
for pl in planets:
    if pl['kepid'] in kkids_set and pl['koi_pdisposition'] == 'CANDIDATE' and pl['koi_max_mult_ev'] >= 15:
        pind = bisect.bisect(pbins, pl['koi_period']) - 1
        rind = bisect.bisect(rbins, pl['koi_prad']) - 1
                
        if (pind < 0) or (rind < 0) or (pind >= k_pl_counts.shape[0]) or (rind >= k_pl_counts.shape[1]):
            noutside += 1
        else:
            k_pl_counts[pind, rind] += 1
print noutside, ' planets landed outside any bins!'


326  planets landed outside any bins!

In [43]:
kgammas = zeros((pbins.shape[0]-1, rbins.shape[0]-1))
kgammamins = zeros((pbins.shape[0]-1, rbins.shape[0]-1))
kgammamaxs = zeros((pbins.shape[0]-1, rbins.shape[0]-1))
for i in range(pbins.shape[0]-1):
    for j in range(rbins.shape[0]-1):
        rmed, rmin, rmax = rate_and_uncertainty(k_pl_counts[i,j], np.sum(k_det_eff[:,i,j]))
        kgammas[i,j] = rmed
        kgammamins[i,j] = rmin
        kgammamaxs[i,j] = rmax


/Users/farr/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/ipykernel/__main__.py:9: RuntimeWarning: divide by zero encountered in log
/Users/farr/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/ipykernel/__main__.py:11: RuntimeWarning: invalid value encountered in divide

In [52]:
PS, RS = meshgrid(pbins, rbins, indexing='ij')
pcolormesh(PS, RS, kgammas, norm=LogNorm())
xscale('log')
yscale('log')
colorbar()
axis(xmin=min(pbins), xmax=max(pbins), ymin=min(rbins), ymax=max(rbins))
xlabel(r'$P$ (d)')
ylabel(r'$R$ ($R_\oplus$)')
savefig('eta_k.pdf')



In [45]:
print 'In K-star bin (40-80, 1.5-2.25)', kgammas[2, 2], ' + ', (kgammamaxs[2,2]-kgammas[2,2]), ' - ', (kgammas[2,2]-kgammamins[2,2])
print 'In K-star bin (20-40, 1.5-2.25)', kgammas[1, 2], ' + ', (kgammamaxs[1,2]-kgammas[1,2]), ' - ', (kgammas[1,2]-kgammamins[1,2])


In K-star bin (40-80, 1.5-2.25) 0.117594663788  +  0.035129773173  -  0.0293198491482
In K-star bin (20-40, 1.5-2.25) 0.0613618599911  +  0.0164269001959  -  0.0139280992402

In [46]:
with gzip.open('pbins.dat.gz', 'w') as out:
    savetxt(out, pbins.reshape((1,-1)))
with gzip.open('rbins.dat.gz', 'w') as out:
    savetxt(out, rbins.reshape((1, -1)))
with gzip.open('eta_k.dat.gz', 'w') as out:
    savetxt(out, kgammas)
with gzip.open('sigma_p_k.dat.gz', 'w') as out:
    savetxt(out, kgammamaxs-kgammas)
with gzip.open('sigma_n_k.dat.gz', 'w') as out:
    savetxt(out, kgammas-kgammamins)

In [ ]: