Skip to content

Commit 025d81f

Browse files
committed
Modified data files to be in a CSV format.
Additional Python library (and Jupyter notebook) that allows you to choose which experiments are plotted.
1 parent 626d1a9 commit 025d81f

9 files changed

+1579
-7
lines changed

BB_data_2015nov_csv_format.dat

Lines changed: 149 additions & 0 deletions
Large diffs are not rendered by default.

EE_data_2016dec_csv_format.dat

Lines changed: 207 additions & 0 deletions
Large diffs are not rendered by default.

TE_data_2016dec_csv_format.dat

Lines changed: 226 additions & 0 deletions
Large diffs are not rendered by default.

TT_data_2017feb_csv_format.dat

Lines changed: 335 additions & 0 deletions
Large diffs are not rendered by default.

cmbplot_example.ipynb

Lines changed: 196 additions & 0 deletions
Large diffs are not rendered by default.

lensing_data_2017jan_csv_format.dat

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
#Measurements of the power spectrum of the gravitational lensing potential, power is 10^7 [l(l+1)]^2 C_l^phiphi / 2pi
2+
#Upper limits are listed for bins where the measured C_l^phiphi is zero or negative.
3+
#They are 95% confidence limits calculated from the part of the Gaussian likelihood
4+
#function corresponding to C_l^phiphi > 0.
5+
#
6+
Experiment , l_min , l_center , l_max , Power , Sigma_minus , Sigma_plus , Upper Limit
7+
ACTPol_2016 , 80 , 138.0 , 240 , 0.6714 , 0.1621 , 0.1621 ,
8+
ACTPol_2016 , 240 , 301.0 , 420 , 0.6002 , 0.1173 , 0.1173 ,
9+
ACTPol_2016 , 420 , 484.0 , 600 , 0.2646 , 0.0844 , 0.0844 ,
10+
ACTPol_2016 , 601 , 697.0 , 900 , 0.0867 , 0.0600 , 0.0600 ,
11+
ACTPol_2016 , 901 , 1002.0 , 1200 , 0.1729 , 0.0568 , 0.0568 ,
12+
ACTPol_2016 , 1201 , 1304.0 , 1500 , 0.0788 , 0.0638 , 0.0638 ,
13+
ACTPol_2016 , 1501 , 1602.0 , 1800 , 0.0556 , 0.0803 , 0.0803 ,
14+
ACTPol_2016 , 1801 , 1911.0 , 2100 , -0.0842 , 0.1765 , 0.1765 , 0.380
15+
BICEP2/Keck_2016 , 30 , 63.5 , 97 , 1.7734 , 1.0049 , 1.0049 ,
16+
BICEP2/Keck_2016 , 97 , 130.5 , 164 , 1.1894 , 0.5753 , 0.5753 ,
17+
BICEP2/Keck_2016 , 164 , 197.5 , 231 , 0.6752 , 0.4630 , 0.4630 ,
18+
BICEP2/Keck_2016 , 231 , 264.5 , 298 , 0.5003 , 0.4298 , 0.4298 ,
19+
BICEP2/Keck_2016 , 298 , 331.5 , 365 , 0.3523 , 0.6341 , 0.6341 ,
20+
BICEP2/Keck_2016 , 365 , 398.5 , 432 , 0.5758 , 0.9661 , 0.9661 ,
21+
BICEP2/Keck_2016 , 432 , 465.5 , 499 , 0.1790 , 1.4258 , 1.4258 ,
22+
BICEP2/Keck_2016 , 499 , 532.5 , 566 , 3.0673 , 1.8212 , 1.8212 ,
23+
BICEP2/Keck_2016 , 566 , 599.5 , 633 , -0.3002 , 2.3378 , 2.3378 , 5.540
24+
BICEP2/Keck_2016 , 633 , 666.5 , 700 , 3.1735 , 4.1888 , 4.1888 ,
25+
Planck_2015 , 8 , 14.0 , 20 , 1.2900 , 0.2100 , 0.2100 ,
26+
Planck_2015 , 21 , 30.0 , 39 , 1.3900 , 0.1300 , 0.1300 ,
27+
Planck_2015 , 40 , 52.5 , 65 , 1.4000 , 0.0900 , 0.0900 ,
28+
Planck_2015 , 66 , 83.0 , 100 , 1.1300 , 0.0600 , 0.0600 ,
29+
Planck_2015 , 101 , 122.5 , 144 , 0.8800 , 0.0400 , 0.0400 ,
30+
Planck_2015 , 145 , 171.5 , 198 , 0.6000 , 0.0400 , 0.0400 ,
31+
Planck_2015 , 199 , 231.0 , 263 , 0.4500 , 0.0400 , 0.0400 ,
32+
Planck_2015 , 264 , 301.0 , 338 , 0.4000 , 0.0400 , 0.0400 ,
33+
Planck_2015 , 339 , 382.0 , 425 , 0.3000 , 0.0300 , 0.0300 ,
34+
Planck_2015 , 426 , 475.5 , 525 , 0.2000 , 0.0300 , 0.0300 ,
35+
Planck_2015 , 526 , 581.5 , 637 , 0.1100 , 0.0300 , 0.0300 ,
36+
Planck_2015 , 638 , 700.0 , 762 , 0.0200 , 0.0300 , 0.0300 ,
37+
Planck_2015 , 763 , 832.0 , 901 , 0.0700 , 0.0200 , 0.0200 ,
38+
Planck_2015 , 902 , 978.0 , 1054 , 0.0800 , 0.0300 , 0.0300 ,
39+
Planck_2015 , 1055 , 1138.0 , 1221 , 0.0100 , 0.0300 , 0.0300 ,
40+
Planck_2015 , 1222 , 1313.0 , 1404 , 0.0500 , 0.0300 , 0.0300 ,
41+
Planck_2015 , 1405 , 1503.5 , 1602 , 0.0300 , 0.0400 , 0.0400 ,
42+
Planck_2015 , 1603 , 1709.5 , 1816 , -0.0600 , 0.0500 , 0.0500 , 0.090
43+
Planck_2015 , 1817 , 1932.5 , 2048 , -0.0100 , 0.0500 , 0.0500 , 0.120
44+
SPTpol_2015 , 100 , 117.0 , 133 , 1.4700 , 0.3700 , 0.3700 ,
45+
SPTpol_2015 , 134 , 158.0 , 181 , 0.5800 , 0.2400 , 0.2400 ,
46+
SPTpol_2015 , 182 , 213.0 , 244 , 0.4000 , 0.1900 , 0.1900 ,
47+
SPTpol_2015 , 245 , 288.0 , 330 , 0.2900 , 0.1300 , 0.1300 ,
48+
SPTpol_2015 , 331 , 389.0 , 446 , 0.3310 , 0.0920 , 0.0920 ,
49+
SPTpol_2015 , 447 , 525.0 , 602 , 0.1210 , 0.0670 , 0.0670 ,
50+
SPTpol_2015 , 603 , 708.0 , 813 , 0.1150 , 0.0530 , 0.0530 ,
51+
SPTpol_2015 , 814 , 956.0 , 1097 , 0.1560 , 0.0460 , 0.0460 ,
52+
SPTpol_2015 , 1098 , 1290.0 , 1481 , 0.0080 , 0.0380 , 0.0380 ,
53+
SPTpol_2015 , 1482 , 1741.0 , 1998 , 0.0000 , 0.0410 , 0.0410 , 0.100
54+
POLARBEAR_2014 , 100 , 200.0 , 300 , 0.7850 , 0.2896 , 0.2896 ,
55+
POLARBEAR_2014 , 300 , 400.0 , 500 , 0.2587 , 0.2188 , 0.2188 ,
56+
POLARBEAR_2014 , 500 , 600.0 , 700 , -0.0228 , 0.2258 , 0.2258 , 0.540
57+
POLARBEAR_2014 , 700 , 800.0 , 900 , 0.2438 , 0.2624 , 0.2624 ,
58+
POLARBEAR_2014 , 900 , 1000.0 , 1100 , 0.6456 , 0.3554 , 0.3554 ,
59+
POLARBEAR_2014 , 1100 , 1200.0 , 1300 , -0.1863 , 0.4566 , 0.4566 , 1.010
60+
POLARBEAR_2014 , 1300 , 1400.0 , 1500 , 0.5996 , 0.6470 , 0.6470 ,
61+
POLARBEAR_2014 , 1500 , 1600.0 , 1700 , -0.2213 , 0.8036 , 0.8036 , 1.830
62+
POLARBEAR_2014 , 1700 , 1800.0 , 1900 , 1.2840 , 1.0543 , 1.0543 ,
63+
ACT_2013 , 75 , 120.0 , 150 , 0.9972 , 0.3471 , 0.3471 ,
64+
ACT_2013 , 150 , 260.0 , 350 , 0.4394 , 0.1634 , 0.1634 ,
65+
ACT_2013 , 350 , 460.0 , 550 , 0.1607 , 0.1176 , 0.1176 ,
66+
ACT_2013 , 550 , 830.0 , 1050 , 0.1355 , 0.0692 , 0.0692 ,
67+
ACT_2013 , 1050 , 1600.0 , 2050 , 0.0076 , 0.1150 , 0.1150 ,
68+
SPT_2012 , 100 , 150.0 , 200 , 0.7410 , 0.1750 , 0.1750 ,
69+
SPT_2012 , 200 , 250.0 , 300 , 0.3660 , 0.1190 , 0.1190 ,
70+
SPT_2012 , 300 , 350.0 , 400 , 0.2910 , 0.0980 , 0.0980 ,
71+
SPT_2012 , 400 , 450.0 , 500 , 0.0770 , 0.0850 , 0.0850 ,
72+
SPT_2012 , 500 , 550.0 , 600 , 0.0620 , 0.0670 , 0.0670 ,
73+
SPT_2012 , 600 , 650.0 , 700 , 0.0250 , 0.0670 , 0.0670 ,
74+
SPT_2012 , 700 , 750.0 , 800 , 0.1060 , 0.0540 , 0.0540 ,
75+
SPT_2012 , 800 , 850.0 , 900 , 0.0600 , 0.0470 , 0.0470 ,
76+
SPT_2012 , 900 , 950.0 , 1000 , 0.1120 , 0.0470 , 0.0470 ,
77+
SPT_2012 , 1000 , 1050.0 , 1100 , 0.0310 , 0.0680 , 0.0680 ,
78+
SPT_2012 , 1100 , 1150.0 , 1200 , -0.0090 , 0.0640 , 0.0640 , 0.150
79+
SPT_2012 , 1200 , 1250.0 , 1300 , 0.0650 , 0.0660 , 0.0660 ,
80+
SPT_2012 , 1300 , 1350.0 , 1400 , 0.0300 , 0.0520 , 0.0520 ,
81+
SPT_2012 , 1400 , 1450.0 , 1500 , 0.0630 , 0.0550 , 0.0550 ,

plot_BB_bounds.pro

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ pro plot_bb_bounds
1010
; and dotted curves, respectively.
1111
; The data are plotted to a postscript file BB_bounds.ps.
1212

13-
; The experimental data are read from a file bb_data_2015apr.txt, which
14-
; should be copied to the user's local directory.
13+
; The experimental data are read from a file BB_data_2015nov_csv_format.dat,
14+
; which should be copied to the user's local directory.
1515
; Sources for the data and more information are given in
1616
; http://lambda.gsfc.nasa.gov/graphics/bb_upperlimits/
1717

@@ -39,7 +39,10 @@ device,filename='BB_bounds.ps',/color,bits=8
3939

4040
; read and plot 95% confidence upper limits
4141

42-
readcol,'bb_data_2015apr.txt',expt,l_min,l_max,bb_limit,format='A,I,I,F',skipline=35
42+
readcol,'BB_data_2015nov_csv_format.dat',expt,l_min,l_center,l_max,BB,sigma_BB_minus,$
43+
sigma_bb_plus,bb_limit,format='A,I,F,I,F,F,F,F',/preserve_null,delimiter=',',skipline=39
44+
45+
for i=0,n_elements(expt)-1 do expt(i)=strtrim(expt(i))
4346

4447
unique_list,expt,expt_uniq,expt_index
4548

plot_BB_detections.pro

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ pro plot_BB_detections
1414
; and dotted curves, respectively.
1515
; The data are plotted to a postscript file BB_detections.ps.
1616

17-
; The experimental data are read from a file bb_data_2015nov.txt, which
18-
; should be copied to the user's local directory.
17+
; The experimental data are read from a file BB_data_2015nov_csv_format.dat,
18+
; which should be copied to the user's local directory.
1919
; Sources for the data and more information are given in
2020
; http://lambda.gsfc.nasa.gov/graphics/bb_upperlimits/
2121

@@ -31,8 +31,10 @@ pro plot_BB_detections
3131

3232
; read data from experiments with BB detections
3333

34-
readcol,'bb_data_2015nov.txt',format='A,I,F,I,F,F,F',experiment,$
35-
l_min,l_center,l_max,BB,sigma_BB_minus,sigma_bb_plus,skipline=3,numline=36
34+
readcol,'BB_data_2015nov_csv_format.dat',experiment,l_min,l_center,l_max,BB,sigma_BB_minus,$
35+
sigma_bb_plus,bb_limit,format='A,I,F,I,F,F,F,F',/preserve_null,delimiter=',',skipline=3,numline=36
36+
37+
for i=0,n_elements(experiment)-1 do experiment(i)=strtrim(experiment(i))
3638

3739
set_plot,'ps'
3840

0 commit comments

Comments
 (0)