forked from OpenExoplanetCatalogue/oec_web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
166 lines (152 loc) · 7.68 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<?include(".inc/prepend.php");?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- If this is run as a php script on a server, you can include your own header that includes a navigation bar, and other stylistic features -->
<script language="php"> include "./.inc/header.php"; if (false){ </script>
<!-- ** start server side header ** -->
<head profile="http://www.w3.org/2005/10/profile">
<link rel="icon" type="image/ico" href="favicon.ico" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/><meta name="description" content="description"/>
<title>Open Exoplanet Catalogue</title>
<link rel="stylesheet" type="text/css" href="./css/style.css" media="screen" />
<link rel="stylesheet" type="text/css" href="./css/tables.css" media="screen" />
<script type="text/javascript" src="./js/d3.v3.min.js"></script>
<script type="text/javascript" src="./js/rgbcolor.js"></script>
<script type="text/javascript" src="./js/canvg.js"></script>
<script type="text/javascript" src="./js/jquery.min.js"></script>
</head>
<body>
<div class="outer-container">
<div class="inner-container">
<div class="content">
<!-- ** end server side header ** -->
<script language="php"> } </script>
<!-- ########################### -->
<!-- ########################### -->
<p>
The Open Exoplanet Catalogue is a catalogue of all discovered extra-solar planets.
It is a new kind of astronomical database, based on small text files and a distributed version control system.
It is decentralized and completely open.
Contribution and corrections are welcome.
The Open Exoplanet Catalogue is furthermore the only catalogue that can correctly represent the orbital structure of planets in arbitrary binary, triple and quadruple star systems as well as orphan planets.
</p>
<!-- ########################### -->
<h2><img src="./img/info.png" alt="info" />Statistics</h2>
<script type="text/javascript">
var source = "oec_meta/statistics.xml";
var xmldata = null;
d3.xml(source, "application/xml", function(xml) {
xmldata = xml;
updateTable(true);
});
var updateTable = function(first){
// Body
$("#confirmedplanets").html($("confirmedplanets",xmldata).text());
$("#planets").html($("planets",xmldata).text());
$("#binaries").html($("binaries",xmldata).text());
$("#systems").html($("systems",xmldata).text());
$("#commits").html($("commits",xmldata).text());
var isfirstcontributor = true;
var contributors = $("contributor",xmldata);
for (var i=0; i<contributors.length; i++){
if (i!=0){
$("#contributors").append(", ");
}else{
$("#contributors").html("");
}
$("#contributors").append($(contributors[i]).text());
}
};
</script>
<table cellspacing="0" summary="Statistics">
<tr>
<td>Number of confirmed exoplanets</td>
<td id="confirmedplanets"> </td>
<tr></tr>
<td>Total number of planets (including Solar System objects and unconfirmed exoplanets)</td>
<td id="planets"> </td>
<tr></tr>
<td>Number of planetary systems</td>
<td id="systems"> </td>
<tr></tr>
<td>Number of binary systems</td>
<td id="binaries"> </td>
</tr>
<tr></tr>
<td>Number of commits</td>
<td id="commits"> </td>
</tr>
<tr></tr>
<td>List of contributors</td>
<td id="contributors"> </td>
</tr>
</table>
</p>
<!-- ########################### -->
<h2><img src="./img/database.png" alt="star" />Data access</h2>
<p>
The main repository of the <a href="https://github.com/hannorein/open_exoplanet_catalogue">Open Exoplanet Catalogue</a> is hosted on github.
This website is just a front end.
</p>
<p>
You do not need to use this website to access the database.
You can even build your own front end.
All information on this page is directly generated from the XML files in the catalogue.
If you are interested in how, look at the source code of each page or look at the <a href="https://github.com/hannorein/oec_web/">oec_web</a> repository on github.
</p>
<!-- ########################### -->
<h2><img src="./img/xml.png" alt="star" />The XML file format and the version control system git</h2>
<p>
The data in the Open Exoplanet Catalogue is stored in human readable XML files.
There is one separate file for each planetary system.
The combination of small text files and a human readable file format makes the entire catalogue work smoothly with git, a popular version control system used to manage different versions of the catalogue.
If you are not familiar with git, you can simply ignore this.
However, git allows you to keep your local database in sync with the main repository on github.
You can make correction to the files and submit them back to github to be included in the main repository (you can either ask to get write access or send a pull request).
Furthermore, you can trace back all changes made to every parameter and find out who made a certain entry and on what date.
The git commit message usually includes the reference to the scientific paper where the data is taken from.
Thus, you can easily find the scientific reference for every value in the catalogue.
</p>
<p>
If you are more familiar with simple comma or tab-separated ASCII tables, you can find these in the <a href="https://github.com/hannorein/oec_tables/">oec_tables</a> repository on github.
They contain mostly the same information as the XML files.
However, some information, especially in the case of a binary system cannot be easily represented in an ASCII table.
You are therefore encouraged to use the original XML files provided by the Open Exoplanet Catalogue.
</p>
<p>
If you want to learn how to parse XML fils with python to create plots from this catalogue, have a look at the <a href="https://github.com/hannorein/oec_plots/">oec_plots</a> repository on github.
</p>
<p>
Please consider contributing to the Open Exoplanet Catalogue!
You will find a dedicated tutorial on how to make a contribution at <a href="http://openexoplanetcatalogue.com/contribute/">openexoplanetcatalogue.com/contribute/</a>.
Or watch <a href="http://youtu.be/IckDgF4vNNE">this</a> video which also shows you the basic steps.
</p>
<!-- ########################### -->
<h2><img src="./img/kig.png" alt="star" />Available tools on this website</h2>
<p>
The Open Exoplanet Catalogue itself is mature.
However, this website is still under development.
<a href="https://github.com/hannorein/oec_web/">Contributions</a> are welcome.
The following pages are already available.
</p>
<ul>
<li><a href="systems.html">systems.html</a>: An interactive table of all exoplanets.
<li><a href="correlations.html">correlations.html</a>: An interactive correlation plot.
<li><a href="bubblechart.html">bubblechart.html</a>: An <a href="http://xkcd.com/1071/">xkcd style</a> bubble chart of all planets.
<li><a href="histogram.html">histogram.html</a>: An interactive histogram.
<li><a href="simple.html">simple.html</a>: A simple example showing how to use <a href="http://d3js.org">d3.js</a> to create an HTML table from the Open Exoplanet Catalogue.
</ul>
<!-- If run on a server, you can include your own footer -->
<script language="php"> include "./.inc/footer.php"; if (false){ </script>
<!-- ** start server side header ** -->
</div> <!-- content -->
<div class="clearer"> </div>
<div class="footer">
The data on this page is taken from the <a href="http://github.com/hannorein/open_exoplanet_catalogue">Open Exoplanet Catalogue</a>. The Open Exoplanet Catalogue as well as this website itself are licensed under an <a href="https://github.com/hannorein/open_exoplanet_catalogue/blob/master/README.md">MIT license</a>.
</div> <!-- footer -->
</div> <!-- inner container -->
</div> <!-- outer container -->
</body>
</html>
<!-- ** end server side header ** -->
<script language="php"> } </script>