-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
80 lines (72 loc) · 3.1 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>Cosmology results</title>
<script type="text/javascript" src="html-figure-pager/pager.js"></script>
<link rel="stylesheet" type="text/css" href="html-figure-pager/pager.css">
</head>
<body>
<header>
<h1>Cosmology results</h1>
</header>
<hr>
<p>Here is a prototype of an interactive page showing chains outputs
(2D contours at the moment) from cosmological experiments.
The goal is to easily explore cosmological results without having to plot chains yourself,
or open and scroll through different papers.
This prototype is meant to probe the interest of the communnity in such a tool,
let me know your thoughts (agnes.ferte at jpl.nasa.gov).
You would be able to select many more experiments, cosmological parameters
and chain outputs (e.g. 1D contour, tension metrics, etc) in the final product.
<br>
<br>
Try it out by clicking the boxes below to specify the combinations of
cosmological parameters you are interested in and the cosmological experiment
(DES Y1 and Planck 2015 (using DES Y1 priors) at the moment), to show the 2D contour plot in a wCDM model.
<br>
<br>
Written by Agnès Ferté, using the figure-pager package written by Justin Willmert
<a href="https://github.com/jmert/html-figure-pager">here</a>,
a plotting script written by Jessie Muir for DES, using getdist
and chains available <a href="https://des.ncsa.illinois.edu/releases/y1a1/key-products">here</a>.
</p>
<hr>
<figure>
<img alt="Contours plots of cosmological experiments"
id="contour_plots" src="#" style="max-width: 450px;" />
<!-- <figcaption>
2D contour plots, choose the combination of cosmological parameters
to show.
</figcaption> -->
<script type="text/javascript">
pager.link("#contour_plots",
{
"Combination of cosmological parameters (in wCDM)|cosmo_par": ["(Om,s8)|om_s8","(Om,w)|om_w","(s8,w)|s8_w"],
"Experiments:|": [""],
"DES Y1|des_y1": ["Yes|y", "No|n"],
"Planck 2015|planck_2015": ["Yes|y", "No|n"],
},
function(params) {
if (params.des_y1 == "y"){
if(params.planck_2015 == "y"){
return "plots/2D_" + params.cosmo_par + "_des_y1_planck_2015.png";
}
if(params.planck_2015 == "n"){
return "plots/2D_" + params.cosmo_par + "_des_y1.png";}
}
else {
if (params.planck_2015 == "y"){
return "plots/2D_" + params.cosmo_par + "_planck_2015.png";}
else{
return "plots/choose_box.png"
}
}
});
pager.setparams({
"cosmo_par": "om_s8",
"des_y1": "n",
"planck_2015": "n",
});
</script>
</figure>
</body>