-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
176 lines (138 loc) · 5.36 KB
/
index.php
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
167
168
169
170
171
172
173
174
175
176
<!--#set var="title" value="CAS - Pulsar - FRB Catalogue" -->
<!--#set var="siteid" value="883" -->
<!--#set var="menuid" value="16578" -->
<!--#set var="maintainer_name" value="Andrew Jameson" -->
<!--#set var="maintainer_uname" value="ajameson" -->
<!--#set var="additional_head" value="/pulsar/frbcat/additional_head.html" -->
<!--#include virtual="/siteheaders/header.html" -->
<!-- ########################################## -->
<!-- ############ START CONTENT ############# -->
<html>
<body>
<h1>FRB Catalogue</h1>
<p>
This catalogue contains up to date information for the published population of Fast Radio Bursts (FRBs). This site is
maintained by the FRBcat team and is updated as new sources are published or refined numbers become available.
Information for each burst is divided into two categories: intrinsic properties measured using the available data, and
derived parameters produced using a model. The intrinsic parameters should be taken as lower limits, as the position within
the telescope beam is uncertain. Models used in this analysis are the NE2001 Galactic electron distribution (Cordes &
Lazio, 2002), and the Cosmology Calculator (Wright, 2006).
</p>
<p>
You may use the data presented in this catalogue for publications; however, we ask that you cite the paper, when available
(Petroff et al., 2016) and provide the url (http://www.astronomy.swin.edu.au/pulsar/frbcat/).
</p>
<?php
echo "<link rel='stylesheet' type='text/css' href='styles/default.css' />";
echo "<link rel='stylesheet' type='text/css' href='styles/main.css' />";
echo "<link rel='stylesheet' type='text/css' href='styles/interim.css' />";
echo "<link rel='stylesheet' type='text/css' href='styles/style.css' />";
echo "<link rel='stylesheet' type='text/css' href='styles/astro_style.css' />";
include("frb_functions.inc.php");
$link = db_connect();
$frbs = readFRBs ($link);
?>
<h2>Catalogue Version 1.0</h2>
<table class='standard' cellspacing='0' summary='FRB Intrinsic Properties'>
<tr>
<th>Event</th>
<th>Telescope</th>
<th>gl [deg]</th>
<th>gb [deg]</th>
<th>FWHM [deg]</th>
<th>DM [cm<sup>-3</sup> pc]</th>
<th>S/N</th>
<th>W<sub>obs</sub> [ms]</th>
<th>S<sub>peak,obs</sub> [Jy]</th>
<th>F<sub>obs</sub> [Jy ms]</th>
<th>Ref</th>
</tr>
<?php
$keys = array_keys($frbs);
$refs = array();
$ref_idx = 0;
foreach ($keys as $id)
{
$frb = calculate_derived_params($frbs[$id]);
echo "<tr>\n";
echo "<td><a href='view.php?id=".$id."'>".$frb["name"]."</a></td>\n";
echo "<td>".$frb["telescope"]."</td>\n";
echo "<td>".$frb["gl"]."</td>\n";
echo "<td>".$frb["gb"]."</td>\n";
echo "<td>".$frb["FWHM"]."</td>\n";
echo "<td>";
renderQty ($frb["dm"], $frb["dm_error"]);
echo "</td>\n";
echo "<td>".$frb["snr"]."</td>\n";
echo "<td>";
renderQtyErrors($frb["width"] , $frb["width_error_upper"], $frb["width_error_lower"]);
echo "</td>\n";
echo "<td>";
echo $frb["flux_prefix"];
renderQtyErrors($frb["flux"] , $frb["flux_error_upper"], $frb["flux_error_lower"]);
echo "</td>\n";
echo "<td>";
echo $frb["flux_prefix"];
renderQtyErrors($frb["fluence"] , $frb["fluence_error_upper"], $frb["fluence_error_lower"]);
echo "</td>\n";
$in_array = false;
foreach ($refs as $idx => $ref)
{
if (strcmp($ref["reference"], $frb["reference"]) == 0)
{
$in_array = true;
$this_idx = $idx;
}
}
if (!$in_array)
{
$ref_idx++;
$refs[$ref_idx] = array ("reference" => $frb["reference"],
"link" => $frb["link"],
"description" => $frb["description"]);
$this_idx = $ref_idx;
}
echo "<td><a href='".$frb["link"]."'>".$this_idx."</a></td>\n";
}
?>
</table>
<p>The full catalogue can be viewed in <a href='table.php?format=html'>tabular format</a> or downloaded as
<ul>
<li><a href='table.php?format=votable&sep=comma'>VO Table (experimental)</a></li>
<li><a href='table.php?format=text&sep=comma'>CSV</a></li>
<li><a href='table.php?format=text&sep=tab'>Tab Delimited</a></li>
</ul>
</p>
<h2>Version Notes</h2>
<p>Version 1.0: This catalogue contains all currently available FRBs with their publication values and re-analysis described in Petroff et al.
(2016). New FRBs will be added to the catalogue as they become available but will not precipitate a new version. Minor corrections to the
catalogue may be performed without new version notes. New versions will be released as new analysis is performed on the sample, new parameters
are added to the catalogue, or new cosmological/progenitor considerations become necessary.</p>
<h2>References</h2>
<table class='standard' cellspacing='0' summary='References'>
<tr>
<th>ID</th>
<th>Title</th>
<th>Reference</th>
</tr>
<?php
$keys = array_keys($refs);
foreach ($keys as $idx)
{
$ref = $refs[$idx];
echo "<tr>\n";
echo "<td>".$idx."</td>\n";
echo "<td>".$ref["description"]."</td>\n";
if ($ref["link"] == "")
echo "<td>".$ref["reference"]."</td>\n";
else
echo "<td><a href='".$ref["link"]."'>".$ref["reference"]."</a></td>\n";
echo "</tr>\n";
}
?>
</table>
</body>
</html>
<!-- ############ END CONTENT ############# -->
<!-- ########################################## -->
<!--#include virtual="/siteheaders/footer.html"-->