-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresults.html
343 lines (301 loc) · 13.6 KB
/
results.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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
<!DOCTYPE html>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Formation Flight ">
<meta name="keywords" content="aircraft, research, aviation, formation flight, environment, co2, emissions">
<meta name="author" content="Thomas Kent">
<head>
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
// Read a page's GET URL variables and return them as an associative array.
function getUrlVars() {
var vars = [],
hash;
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
for (var i = 0; i < hashes.length; i++) {
hash = hashes[i].split('=');
vars.push(hash[0]);
vars[hash[0]] = hash[1];
// console.log(i, hash[0], hash[1])
}
return vars;
}
$(document).ready(function(){
//Anything in this section runs once the page has loaded.
fname = "Data/"+ getUrlVars()["fname"] +".csv";
$("#fname").html(fname);
plotmap = (getUrlVars()['map'] == 'True')
if (plotmap == false){
document.getElementById('mapplot').style.display = 'none';
}
});
</script>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&key=AIzaSyAJUmBbUtaQthl1pRK_VJvNqvlbNgN0Y8Y"></script>
<script src="js/crossfilter.v1.min.js"></script>
<script src="js/d3.v3.min.js"></script>
<script src="js/dc.js"></script>
<script src="js/cf_plots.js"</script>
<script src="js/crossfilter.js"></script>
<script src="js/bootstrap.min.js"></script>
<!-- <script type="text/javascript" src="js/colorbrewer.js"></script> -->
<script>document.addEventListener('DOMContentLoaded', init(), false);</script>
<!-- <link rel="stylesheet" href="https://yui.yahooapis.com/pure/0.5.0/pure-min.css"> -->
<!-- <link rel="stylesheet" href="css/layouts/marketing.css"> -->
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/dc.css"/>
<link rel="stylesheet" type="text/css" href="css/colorbrewer.css"/>
<title>Formations Flight Results</title>
</head>
<div class="container">
<div class="jumbotron">
<center>
<h1>Formation Flight Results</h1>
<br>
<center>
<h2>
<br><b>Number of formations:</b> <span id="active">-</span> of <span id="total">-</span>
<br><b>Total fuel saving:</b> <span id="fb-kg-total-top"></span> tonnes
<br><b>Total fuel cost saving:</b> $<span id="dollar-total-top"></span>
<br><b>Total co2 saving:</b> <span id="co2-kg-total-top"></span> tonnes
<br><b>Fuel saving on average:</b> <span id="avg_pc_active-top"></span>
<br><b>Deviation on average:</b> <span id="avg_dev_active-top"></span> km
</h2>
</center>
</div>
<div class="row">
</div>
</div>
<!----------------------------- The buttons --------------------------->
<div class="container">
<div class="row">
<div class="col-md-12 btn-marg">
<center>
<!-- <b style="font-size: 32px;">Filters: <b> -->
<a class="btn btn-success btn-lg" href="index.html"> <i class="fa fa-arrow-left"></i> Back</a>
<!-- <a class="btn btn-success btn-lg" href="index.html"> <i class="fa fa-file"></i> Choose Dataset</a> -->
<div class="btn-group">
<button type="button" class="btn btn-success btn-lg dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-file"></i> Choose Dataset <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a href="index.html#TAA">Transatlantic Flights</a></li>
<li><a href="index.html#LCA">Low Cost Airline</a></li>
<li><a href="index.html#LHA">Long Haul Airline</a></li>
</ul>
</div>
<div class="btn-group btn-marg">
<button type="button" class="btn btn-primary btn-lg dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-calendar-o"></i> Day <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a href="javascript:filter([null, [new Date(2014, 08, 01), new Date(2014, 08, 06)]])">Weekdays</a></li>
<li><a href="javascript:filter([null, [new Date(2014, 08, 06), new Date(2014, 08, 08)]])">Weekend</a></li>
<li class="divider"></li>
<li><a href="javascript:filter([null, [new Date(2014, 08, 01), new Date(2014, 08, 02)], null, null, null, null])">Monday</a></li>
<li><a href="javascript:filter([null, [new Date(2014, 08, 02), new Date(2014, 08, 03)], null, null, null, null])">Tuesday</a></li>
<li><a href="javascript:filter([null, [new Date(2014, 08, 03), new Date(2014, 08, 04)], null, null, null, null])">Wednesday</a></li>
<li><a href="javascript:filter([null, [new Date(2014, 08, 04), new Date(2014, 08, 05)], null, null, null, null])">Thursday</a></li>
<li><a href="javascript:filter([null, [new Date(2014, 08, 05), new Date(2014, 08, 06)], null, null, null, null])">Friday</a></li>
<li><a href="javascript:filter([null, [new Date(2014, 08, 06), new Date(2014, 08, 07)], null, null, null, null])">Saturday</a></li>
<li><a href="javascript:filter([null, [new Date(2014, 08, 07), new Date(2014, 08, 08)], null, null, null, null])">Sunday</a></li>
</ul>
</div>
<div class="btn-group">
<button type="button" class="btn btn-primary btn-lg dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-calendar-o"></i> Times <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a href="javascript:filter([[0, 12], null, null, null, null])">Mornings</a></li>
<li><a href="javascript:filter([[12, 18], null, null, null, null])">Afternoons</a></li>
<li><a href="javascript:filter([[15, 20], null, null, null, null])">Evening</a></li>
<li><a href="javascript:filter([[20, 24], null, null, null, null])">Nights</a></li>
</ul>
</div>
<div class="btn-group">
<button type="button" class="btn btn-primary btn-lg dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-plane"></i> Distance <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a href="javascript:filter([null, null, null, [0,500], null])">0-500 km</a></li>
<li><a href="javascript:filter([null, null, null, [500,1000], null])">0-1000 km</a></li>
<li><a href="javascript:filter([null, null, null, [1000,2000], null])">1000-2000 km</a></li>
<li><a href="javascript:filter([null, null, null, [2000,5000], null])">2000-5000 km</a></li>
<li><a href="javascript:filter([null, null, null, [5000,50000], null])">5000 km +</a></li>
<li class="divider"></li>
<li><a href="javascript:filter([null, null, null, [0,800], null])">Short Haul</a></li>
<li><a href="javascript:filter([null, null, null, [800,2000], null])">Medium Haul</a></li>
<li><a href="javascript:filter([null, null, null, [2000,6000], null])">Long Haul</a></li>
<li><a href="javascript:filter([null, null, null, [6000,50000], null])">Ultra-Long Haul</a></li>
</ul>
</div>
<div class="btn-group">
<button type="button" class="btn btn-primary btn-lg dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-clock-o"></i> Schedule <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a href="javascript:filter([null, null, null, null, null, null, null, null, [0,5]])">5 mins</a></li>
<li><a href="javascript:filter([null, null, null, null, null, null, null, null, [0,10]])">10 mins</a></li>
<li><a href="javascript:filter([null, null, null, null, null, null, null, null, [0,15]])">15 mins</a></li>
<li><a href="javascript:filter([null, null, null, null, null, null, null, null, [0,30]])">30 mins</a></li>
<li><a href="javascript:filter([null, null, null, null, null, null, null, null, [0,45]])">45 mins</a></li>
<li><a href="javascript:filter([null, null, null, null, null, null, null, null, [0,60]])">1 hour</a></li>
<li><a href="javascript:filter([null, null, null, null, null, null, null, null, [0,120]])">2 hours</a></li>
<li><a href="javascript:filter([null, null, null, null, null, null, null, null, [0,240]])">4 hours</a></li>
<li><a href="javascript:filter([null, null, null, null, null, null, null, null, [0,1440]])">Any</a></li>
</ul>
</div>
<a class="btn btn-danger btn-lg" href="javascript:filter([null, null, null, null, null, null, null, null, null])"><i class="fa fa-power-off"></i> Reset</a>
</center>
</div>
</div>
</div>
<div class="row">
<br>
</div>
</div>
<!----------------------------- The charts --------------------------->
<div class="container">
<div class="row">
<div class="col-md-4">
<div class="panel panel-primary">
<div class="panel-heading">Take Off Time (UTC hr) </div>
<div class="panel-body">
<center><div id="hour-chart" class="chart">
<div class="resetbutton"></div>
</div></center>
</div>
</div>
</div>
<div class="col-md-8">
<div class="panel panel-primary">
<div class="panel-heading">Date</div>
<div class="panel-body">
<center><div id="date-chart" class="chart"><div class="resetbutton"></div></div></center>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-4">
<div class="panel panel-primary">
<div class="panel-heading">Proportion in Cruise (%) <span class="badge pull-right"><b id="avg_cruise_pc_active"></b></span></div>
<div class="panel-body">
<center><div id="cruise-chart" class="chart"><div class="resetbutton"></div></div></center>
</div>
</div>
</div>
<div class="col-md-8">
<div class="panel panel-primary">
<div class="panel-heading">Distance in Cruise (km) <span class="badge pull-right"><b id="avg_distance_active">km</b></span></div>
<div class="panel-body">
<center><div id="distance-chart" class="chart"><div class="resetbutton"></div></div></center>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-4">
<div class="panel panel-primary">
<div class="panel-heading">Saving (%) <span class="badge pull-right"><b id="avg_pc_active"></b></span></div>
<div class="panel-body">
<center><div id="percent-chart" class="chart"><div class="resetbutton"></div></div></center>
</div>
</div>
</div>
<div class="col-md-4">
<div class="panel panel-primary">
<div class="panel-heading">Deviation (km) <span class="badge pull-right"><b id="avg_dev_active"></b></span></div>
<div class="panel-body">
<center><div id="dev-chart" class="chart"><div class="resetbutton"></div></div></center>
</div>
</div>
</div>
<div class="col-md-4">
<div class="panel panel-primary">
<div class="panel-heading">Schedule change (min) <span class="badge pull-right"><b id="avg_tdiff_active"></b></span></div>
<div class="panel-body">
<center><div id="to-chart" class="chart"><div class="resetbutton"></div></div></center>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="panel panel-primary">
<div class="panel-heading">Fuel Burn Saving (tonnes)<span class="badge pull-right"><b id="fb-kg-total"></b></span></div>
<div class="panel-body">
<center><div id="fb-kg-chart" class="chart"><div class="resetbutton"></div></div></center>
</div>
</div>
</div>
<div class="col-md-6">
<div class="panel panel-primary">
<div class="panel-heading">CO2 Saving (tonnes) <span class="badge pull-right"><b id="co2-kg-total"></b></span></div>
<div class="panel-body">
<center><div id="co2-kg-chart" class="chart"><div class="resetbutton"></div></div></center>
</div>
</div>
</div>
</div>
</div>
<!----------------------------- The Map --------------------------->
<div id="mapplot">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="panel panel-primary">
<div class="panel-heading">Google Maps Plot</div>
<div class="panel-body">
<center>
<div id="map-div"></div>
</center>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-12" display=flex>
<!-- <div class="col-md-1"></div>
<div class="col-md-10 hidden-xs"> -->
<div class="panel panel-primary">
<div class="panel-heading">List of Formations <span class="badge pull-right"><b id="active-forms"></b></span></div>
<div id="lists">
<!-- <h3>List of Formations</h3> -->
<!-- <br> -->
<div id="flight-list" class="list">
<div class="flight header">
<div class="day header">Day</div>
<div class="origin header">Flight 1</div>
<div class="time header">Time</div>
<div class="destination header">Flight 2</div>
<div class="time header">Time</div>
<div class="percentage header">Fuel burn Saving</div>
<div class="fb-saving header">Fuel burn Saving (tonnes)</div>
<div class="co2-saving header">Co2 Saving (tonnes)</div>
<div class="cruise header">Prop. in cruise</div>
<div class="Tdiff header">Time difference</div>
</div>
<hr
</div>
</div>
</div>
</div>
<!-- <div class="col-md-1"></div> -->
</div>
</div>
<footer>
<cite><a href="https://www.iata.org/en/publications/economics/fuel-monitor/">Fuel price: ~$600 metric tonne </a></cite><br>
<cite><a href="https://www.icao.int/environmental-protection/Carbonoffset/Pages/default.aspx">Carbon per kg fuel burn: ~3.16 </a></cite></br>
<span style="float:right;">
Tom Kent 2020
</span>
</footer>
</div>
<!-- <script src="js/bootstrap.min.js"></script> -->