-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
508 lines (455 loc) · 60.4 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
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
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
<html lang="en">
<head>
<meta charset="utf-8">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.bundle.min.js"></script>
<!-- Third party plugin JS-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.4.1/jquery.easing.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/jquery.magnific-popup.min.js"></script>
<!-- Core theme JS-->
<script src="https://cesium.com/downloads/cesiumjs/releases/1.70.1/Build/Cesium/Cesium.js"></script>
<link href="https://cesium.com/downloads/cesiumjs/releases/1.70.1/Build/Cesium/Widgets/widgets.css" rel="stylesheet">
<link rel="icon" type="image/x-icon" href="assets/img/favicon.ico" />
<!-- Font Awesome icons (free version)-->
<script src="https://use.fontawesome.com/releases/v5.13.0/js/all.js" crossorigin="anonymous"></script>
<!-- Google fonts-->
<link rel="preconnect" href="https://fonts.gstatic.com">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap"
rel="stylesheet">
<!-- Third party plugin CSS-->
<link href="https://cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/magnific-popup.min.css" rel="stylesheet" />
<!-- Core theme CSS (includes Bootstrap)-->
<link href="css/styles.css" rel="stylesheet" />
<link href="css/slider.css" rel="stylesheet" />
<script src="./javascripts/common.js"></script>
<style>
body {
font-family: 'Roboto', sans-serif;
}
</style>
</head>
<body id="body">
<div class="d-flex h-100">
<div class="flex-auto">
<div class="slider-container-wrapper max-width-350">
<div class="slidecontainer d-flex flex-column h-100">
<div class="navbar-brand m-0 is-title flex-auto">
<h6 class="nav-title" style="font-size: 23px;">EnvQ</h6>
<p class="nav-subtext">Application depicting the impact of pollution on pre, post and during Covid-19
lockdown period.</p>
</div>
<div class="py-2 set-height flex-fill overflow-auto">
<div class="d-flex flex-wrap">
<div class="col-sm-12 col-md-12 col-lg-12">
<div class="radio-outer-wrapper">
<h2 class="label-head">Region</h2>
<div id="places"></div>
</div>
</div>
<div class="col-sm-12 col-md-7 col-lg-12">
<div class="radio-outer-wrapper">
<h2 class="label-head" id="pollution-header" style="display: none;">Analysis Parameters</h2>
<div id="pollutions"></div>
</div>
</div>
<div class="col-sm-12 col-md-12 col-lg-12">
<div class="radio-outer-wrapper" id="indices-wrapper">
<h2 class="label-head">Indices</h2>
<div id="indices"></div>
</div>
</div>
</div>
<div class="col-sm-12 col-md-12 col-lg-12">
<div class="silder-wrapper progress-slider mb-2" id="dynamicslider"></div>
</div>
</div>
</div>
</div>
</div>
<div class="flex-fill">
<div id="cesiumContainer" class="fullSize"></div>
</div>
</div>
<div class="discription-container">
<div id="description"></div>
</div>
</div>
</div>
<script>
window.onload = function () {
if (typeof Cesium !== 'undefined') {
window.startupCalled = true;
startup(Cesium);
}
}
var availablePlaces = [
{ id: 1, name: 'Chennai', checked: false, position: { west: 80.0, south: 12.95, east: 80.1, north: 13.05 }, airPollutionPostion: { west: 80.16964722, south: 12.95175934, east: 80.30596924, north: 13.13380146 } },
{ id: 2, name: 'Delhi', checked: false, position: { west: 77.25, south: 28.5, east: 77.35, north: 28.6 }, airPollutionPostion: { west: 76.83291626, south: 28.40846062, east: 77.33773804, north: 28.88451195 } },
{ id: 3, name: 'Hyderabad', checked: false, position: { west: 78.45, south: 17.4, east: 78.5, north: 17.45 }, airPollutionPostion: { west: 78.38410187, south: 17.29707146, east: 78.53453064, north: 17.47178841 } },
{ id: 4, name: 'Kolkata', checked: false, position: { west: 88.3, south: 22.6, east: 88.4, north: 22.7 }, airPollutionPostion: { west: 88.27065277, south: 22.4949398, east: 88.40731049, north: 22.62973976 } },
{ id: 5, name: 'Mumbai', checked: false, position: { west: 72.9, south: 19, east: 73, north: 19.1 }, airPollutionPostion: { west: 72.77597046, south: 18.89069557, east: 72.98468018, north: 19.26921654 } },
];
var pollutionTypes = [
{ id: 1, name: 'Air Quality', checked: false, indices: [1, 2, 3, 4, 5, 6] },
{ id: 2, name: 'Water Quality', checked: false, indices: [7, 8, 9, 10] },
{ id: 3, name: 'False Color', checked: false, indices: [11] },
];
var availableIndicesOfChennai = [{ id: 1, name: 'AQI', checked: false, date: ['2020_01_02', '2020_01_09', '2020_01_16', '2020_01_23', '2020_01_30', '2020_02_06', '2020_02_13', '2020_02_20', '2020_02_27', '2020_03_05', '2020_03_12', '2020_03_19', '2020_03_26', '2020_04_02', '2020_04_09', '2020_04_16', '2020_04_23', '2020_04_30', '2020_05_07', '2020_05_14', '2020_05_21', '2020_05_28', '2020_06_04', '2020_06_11', '2020_06_18', '2020_06_25', '2020_07_02', '2020_07_09', '2020_07_16', '2020_07_23', '2020_07_30', '2020_08_06', '2020_08_13', '2020_08_20', '2020_08_27', '2020_09_03', '2020_09_10', '2020_09_17', '2020_09_24', '2020_10_01', '2020_10_08', '2020_10_15', '2020_10_22', '2020_10_29', '2020_11_05', '2020_11_12', '2020_11_19', '2020_11_28'], description: "Air Quality Index (AQI) is calculated by aggregating other air quality metrics over a specified averaging period. Green to red shades indicate lower to higher AQI values." },
{ id: 2, name: 'CO', checked: false, date: ['2020_01_02', '2020_01_09', '2020_01_16', '2020_01_23', '2020_01_30', '2020_02_06', '2020_02_13', '2020_02_20', '2020_02_27', '2020_03_05', '2020_03_12', '2020_03_19', '2020_03_26', '2020_04_02', '2020_04_09', '2020_04_16', '2020_04_23', '2020_04_30', '2020_05_07', '2020_05_14', '2020_05_21', '2020_05_28', '2020_06_04', '2020_06_11', '2020_06_18', '2020_06_25', '2020_07_02', '2020_07_09', '2020_07_16', '2020_07_23', '2020_07_30', '2020_08_06', '2020_08_13', '2020_08_20', '2020_08_27', '2020_09_03', '2020_09_10', '2020_09_17', '2020_09_24', '2020_10_01', '2020_10_08', '2020_10_15', '2020_10_22', '2020_10_29', '2020_11_05', '2020_11_12', '2020_11_19', '2020_11_28'], description: "Carbon monoxide (CO, a colorless, odorless, tasteless, and toxic air pollutant is produced in the incomplete combustion of carbon-containing fuels, such as gasoline, natural gas, oil, coal, and wood. Green to red shades indicate lower to higher pollution rate." },
{ id: 3, name: 'NOx', checked: false, date: ['2020_01_02', '2020_01_09', '2020_01_16', '2020_01_23', '2020_01_30', '2020_02_06', '2020_02_13', '2020_02_20', '2020_02_27', '2020_03_05', '2020_03_12', '2020_03_19', '2020_03_26', '2020_04_02', '2020_04_09', '2020_04_16', '2020_04_23', '2020_04_30', '2020_05_07', '2020_05_14', '2020_05_21', '2020_05_28', '2020_06_04', '2020_06_11', '2020_06_18', '2020_06_25', '2020_07_02', '2020_07_09', '2020_07_16', '2020_07_23', '2020_07_30', '2020_08_06', '2020_08_13', '2020_08_20', '2020_08_27', '2020_09_03', '2020_09_10', '2020_09_17', '2020_09_24', '2020_10_01', '2020_10_08', '2020_10_15', '2020_10_22', '2020_10_29', '2020_11_05', '2020_11_12', '2020_11_19', '2020_11_28'], description: " Nitrogen Oxides are a family of poisonous, highly reactive gases formed when fuel is burned at high temperatures. NOx pollution is caused by automobiles, trucks and various non-road vehicles. Green to red shades indicate lower to higher pollution rate." },
{ id: 4, name: 'O3', checked: false, date: ['2020_01_02', '2020_01_09', '2020_01_16', '2020_01_23', '2020_01_30', '2020_02_06', '2020_02_13', '2020_02_20', '2020_02_27', '2020_03_05', '2020_03_12', '2020_03_19', '2020_03_26', '2020_04_02', '2020_04_09', '2020_04_16', '2020_04_23', '2020_04_30', '2020_05_07', '2020_05_14', '2020_05_21', '2020_05_28', '2020_06_04', '2020_06_11', '2020_06_18', '2020_06_25', '2020_07_02', '2020_07_09', '2020_07_16', '2020_07_23', '2020_07_30', '2020_08_06', '2020_08_13', '2020_08_20', '2020_08_27', '2020_09_03', '2020_09_10', '2020_09_17', '2020_09_24', '2020_10_01', '2020_10_15', '2020_10_29', '2020_11_05', '2020_11_12', '2020_11_19', '2020_11_28'], description: "Ozone is not emitted directly into the air, but is created by chemical reactions between oxides of nitrogen (NOx) and volatile organic compounds (VOC). This happens when pollutants emitted by cars, power plants, industrial boilers and other sources chemically react in the presence of sunlight. Green to red shades indicate lower to higher pollution rate" },
{ id: 5, name: 'PM2.5', checked: false, date: ['2020_01_02', '2020_01_09', '2020_01_16', '2020_01_23', '2020_01_30', '2020_02_06', '2020_02_13', '2020_02_20', '2020_02_27', '2020_03_05', '2020_03_12', '2020_03_19', '2020_03_26', '2020_04_02', '2020_04_09', '2020_04_16', '2020_04_23', '2020_04_30', '2020_05_07', '2020_05_14', '2020_05_21', '2020_05_28', '2020_06_04', '2020_06_11', '2020_06_18', '2020_06_25', '2020_07_02', '2020_07_09', '2020_07_16', '2020_07_23', '2020_07_30', '2020_08_06', '2020_08_13', '2020_08_20', '2020_08_27', '2020_09_03', '2020_09_10', '2020_09_17', '2020_09_24', '2020_10_01', '2020_10_08', '2020_10_15', '2020_10_22', '2020_10_29', '2020_11_05', '2020_11_12', '2020_11_19', '2020_11_28'], description: "Particulate matter (PM 2.5) are tiny inhalable particles in the air that cause serious health issues and reduce visibility (haze) when their levels are elevated. Green to red shades indicate lower to higher pollution rate." },
{ id: 6, name: 'SO2', checked: false, date: ['2020_01_02', '2020_01_09', '2020_01_16', '2020_01_23', '2020_01_30', '2020_02_06', '2020_02_13', '2020_02_20', '2020_02_27', '2020_03_05', '2020_03_12', '2020_03_19', '2020_03_26', '2020_04_02', '2020_04_09', '2020_04_16', '2020_04_23', '2020_04_30', '2020_05_07', '2020_05_14', '2020_05_21', '2020_05_28', '2020_06_04', '2020_06_11', '2020_06_18', '2020_06_25', '2020_07_02', '2020_07_09', '2020_07_16', '2020_07_23', '2020_07_30', '2020_08_06', '2020_08_13', '2020_08_20', '2020_08_27', '2020_09_03', '2020_09_10', '2020_09_17', '2020_09_24', '2020_10_01', '2020_10_08', '2020_10_15', '2020_10_22', '2020_10_29', '2020_11_05', '2020_11_12', '2020_11_19', '2020_11_28'], description: "SO2 is emitted by the burning of fossil fuels such as coal, oil, and diesel or other materials that contain sulfur. Green to red shades indicate lower to higher pollution rate." },
{ id: 7, name: 'LYM8', checked: false, date: ['2020_01_13', '2020_01_29', '2020_02_14', '2020_03_01', '2020_03_17', '2020_04_02', '2020_04_18', '2020_05_04', '2020_05_20', '2020_06_05', '2020_07_07', '2020_07_23', '2020_08_24', '2020_10_27'], description: `Lymburner Total Suspended Matter. LYM8 is an algorithm to find the concentration of Total Suspended Matter (TSM) in mg/L. Paper: <a href="https://www.sciencedirect.com/science/article/abs/pii/S0034425716301560">Lymburner et al. 2016.</a> Blue to black shades indicates low to high pollution.` },
{ id: 8, name: 'NDSSI', checked: false, date: ['2020_01_13', '2020_01_29', '2020_02_14', '2020_03_01', '2020_03_17', '2020_04_02', '2020_04_18', '2020_05_04', '2020_05_20', '2020_06_05', '2020_07_07', '2020_07_23', '2020_08_24', '2020_10_27'], description: `Normalized Difference Suspended Sediment Index. The NDSSI value ranges from -1 to +1. Values closer to +1 indicate higher concentration of sediment. Paper: <a href="https://www.researchgate.net/publication/251236287_Development_of_Remote_Sensing_Based_Index_for_EstimatingMapping_Suspended_Sediment_Concentration_in_River_and_Lake_Environments">Hossain et al. 2010.</a> Blue to black shades indicates low to high pollution` },
{ id: 9, name: 'QUANG8', checked: false, date: ['2020_01_13', '2020_01_29', '2020_02_14', '2020_03_01', '2020_03_17', '2020_04_02', '2020_04_18', '2020_05_04', '2020_05_20', '2020_06_05', '2020_07_07', '2020_07_23', '2020_08_24', '2020_10_27'], description: `Quang Total Suspended Solids. It is an algorithm for turbidity retrieval in mg/L that was developed based on the correlation between in situ measurements and a red band of Landsat 8 OLI. <a href="https://www.mdpi.com/2073-4441/9/8/570">Paper: Quang et al. 2017.</a>Blue to black shades indicates low to high pollution` },
{ id: 10, name: 'SPM_QUI', checked: false, date: ['2020_01_13', '2020_01_29', '2020_02_14', '2020_03_01', '2020_03_17', '2020_04_02', '2020_04_18', '2020_05_04', '2020_05_20', '2020_06_05', '2020_07_07', '2020_07_23', '2020_08_24', '2020_10_27'], description: `Suspended Particulate Model. SPM_QUI finds the distribution of the suspended particulate matter (SPM) concentration in g/m3. <a href="https://www.researchgate.net/publication/260152686_A_simple_optical_model_to_estimate_suspended_particulate_matter_in_Yellow_River_Estuary">Paper: Zhongfeng Qiu et.al. 2013.</a> Blue to black shades indicates low to high pollution` },
{ id: 11, name: 'False Color', checked: false, date: ['2020_01_13', '2020_01_29', '2020_02_14', '2020_03_01', '2020_03_17', '2020_04_02', '2020_04_18', '2020_05_04', '2020_05_20', '2020_06_05', '2020_07_07', '2020_07_23', '2020_08_24', '2020_10_27'], description: "Bands 5, 6 and 4 (NIR, SWIR1 and RED) are used to create false color good for picking out land from water. Here land appears in shades of orange and green, ice stands out as a vibrant magenta color, and water appears in shades of blue." }
];
var availableIndicesOfMumbai = [{ id: 1, name: 'AQI', checked: false, date: ['2020_01_02', '2020_01_09', '2020_02_15', '2020_02_22', '2020_02_29', '2020_03_09', '2020_03_16', '2020_03_23', '2020_03_30', '2020_04_06', '2020_04_13', '2020_04_20', '2020_04_27', '2020_05_04', '2020_05_11', '2020_05_18', '2020_05_25', '2020_06_01', '2020_06_11', '2020_06_18', '2020_06_25', '2020_07_02', '2020_07_09', '2020_07_16', '2020_07_23', '2020_08_06', '2020_08_13', '2020_08_21', '2020_08_28', '2020_09_04', '2020_09_11', '2020_09_18', '2020_09_25', '2020_10_02', '2020_10_12', '2020_10_19', '2020_10_26', '2020_11_02', '2020_11_09', '2020_11_16', '2020_11_23'], description: "Air Quality Index (AQI) is calculated by aggregating other air quality metrics over a specified averaging period. Green to red shades indicate lower to higher AQI values." },
{ id: 2, name: 'CO', checked: false, date: ['2020_01_02', '2020_01_09', '2020_02_15', '2020_02_22', '2020_02_29', '2020_03_09', '2020_03_16', '2020_03_23', '2020_03_30', '2020_04_06', '2020_04_13', '2020_04_20', '2020_04_27', '2020_05_04', '2020_05_11', '2020_05_18', '2020_05_25', '2020_06_01', '2020_06_11', '2020_06_18', '2020_06_25', '2020_07_02', '2020_07_09', '2020_07_16', '2020_07_23', '2020_08_06', '2020_08_13', '2020_08_21', '2020_08_28', '2020_09_04', '2020_09_11', '2020_09_18', '2020_09_25', '2020_10_02', '2020_10_12', '2020_10_19', '2020_10_26', '2020_11_02', '2020_11_09', '2020_11_16', '2020_11_23'], description: "Carbon monoxide (CO, a colorless, odorless, tasteless, and toxic air pollutant is produced in the incomplete combustion of carbon-containing fuels, such as gasoline, natural gas, oil, coal, and wood. Green to red shades indicate lower to higher pollution rate." },
{ id: 3, name: 'NOx', checked: false, date: ['2020_01_02', '2020_01_09', '2020_02_15', '2020_02_22', '2020_02_29', '2020_03_09', '2020_03_16', '2020_03_23', '2020_03_30', '2020_04_06', '2020_04_13', '2020_04_20', '2020_05_18', '2020_05_25', '2020_06_01', '2020_06_11', '2020_06_18', '2020_06_25', '2020_07_02', '2020_07_09', '2020_07_16', '2020_07_23', '2020_08_06', '2020_08_13', '2020_08_21', '2020_08_28', '2020_09_04', '2020_09_11', '2020_09_18', '2020_09_25', '2020_10_02', '2020_10_12', '2020_10_19', '2020_10_26', '2020_11_02', '2020_11_09', '2020_11_16', '2020_11_23'], description: " Nitrogen Oxides are a family of poisonous, highly reactive gases formed when fuel is burned at high temperatures. NOx pollution is caused by automobiles, trucks and various non-road vehicles. Green to red shades indicate lower to higher pollution rate." },
{ id: 4, name: 'O3', checked: false, date: ['2020_01_02', '2020_01_09', '2020_02_15', '2020_02_22', '2020_02_29', '2020_03_09', '2020_03_16', '2020_03_23', '2020_03_30', '2020_04_06', '2020_04_13', '2020_04_20', '2020_05_18', '2020_05_25', '2020_06_01', '2020_06_11', '2020_06_18', '2020_06_25', '2020_07_02', '2020_07_09', '2020_07_16', '2020_07_23', '2020_08_06', '2020_08_13', '2020_08_21', '2020_08_28', '2020_09_04', '2020_09_11', '2020_09_18', '2020_09_25', '2020_10_02', '2020_10_12', '2020_10_19', '2020_10_26', '2020_11_02', '2020_11_09', '2020_11_16', '2020_11_23'], description: "Ozone is not emitted directly into the air, but is created by chemical reactions between oxides of nitrogen (NOx) and volatile organic compounds (VOC). This happens when pollutants emitted by cars, power plants, industrial boilers and other sources chemically react in the presence of sunlight. Green to red shades indicate lower to higher pollution rate" },
{ id: 5, name: 'PM2.5', checked: false, date: ['2020_01_02', '2020_01_09', '2020_02_15', '2020_02_22', '2020_02_29', '2020_03_09', '2020_03_16', '2020_03_23', '2020_03_30', '2020_04_06', '2020_04_13', '2020_04_20', '2020_04_27', '2020_05_04', '2020_05_11', '2020_05_18', '2020_05_25', '2020_06_01', '2020_06_11', '2020_06_18', '2020_06_25', '2020_07_02', '2020_07_09', '2020_07_16', '2020_07_23', '2020_08_06', '2020_08_13', '2020_08_21', '2020_08_28', '2020_09_04', '2020_09_11', '2020_09_18', '2020_09_25', '2020_10_02', '2020_10_12', '2020_10_19', '2020_10_26', '2020_11_02', '2020_11_09', '2020_11_16', '2020_11_23'], description: "Particulate matter (PM 2.5) are tiny inhalable particles in the air that cause serious health issues and reduce visibility (haze) when their levels are elevated. Green to red shades indicate lower to higher pollution rate." },
{ id: 6, name: 'SO2', checked: false, date: ['2020_01_02', '2020_01_09', '2020_02_15', '2020_02_22', '2020_02_29', '2020_03_09', '2020_03_16', '2020_03_23', '2020_03_30', '2020_04_06', '2020_04_13', '2020_04_20', '2020_04_27', '2020_05_04', '2020_05_11', '2020_05_18', '2020_05_25', '2020_06_11', '2020_06_18', '2020_06_25', '2020_07_02', '2020_07_09', '2020_07_16', '2020_07_23', '2020_08_06', '2020_08_13', '2020_08_21', '2020_08_28', '2020_09_04', '2020_09_11', '2020_09_18', '2020_09_25', '2020_10_02', '2020_10_12', '2020_10_19', '2020_10_26', '2020_11_02', '2020_11_09', '2020_11_16', '2020_11_23'], description: "SO2 is emitted by the burning of fossil fuels such as coal, oil, and diesel or other materials that contain sulfur. Green to red shades indicate lower to higher pollution rate." },
{ id: 7, name: 'LYM8', checked: false, date: ['2020_01_23', '2020_02_08', '2020_02_24', '2020_03_11', '2020_04_12', '2020_04_28', '2020_05_14', '2020_07_17', '2020_09_03', '2020_10_05', '2020_10_21'], description: `Lymburner Total Suspended Matter. LYM8 is an algorithm to find the concentration of Total Suspended Matter (TSM) in mg/L. Paper: <a href="https://www.sciencedirect.com/science/article/abs/pii/S0034425716301560">Lymburner et al. 2016.</a> Blue to black shades indicates low to high pollution.` },
{ id: 8, name: 'NDSSI', checked: false, date: ['2020_01_23', '2020_02_08', '2020_02_24', '2020_03_11', '2020_04_12', '2020_04_28', '2020_05_14', '2020_07_17', '2020_09_03', '2020_10_05', '2020_10_21'], description: `Normalized Difference Suspended Sediment Index. The NDSSI value ranges from -1 to +1. Values closer to +1 indicate higher concentration of sediment. Paper: <a href="https://www.researchgate.net/publication/251236287_Development_of_Remote_Sensing_Based_Index_for_EstimatingMapping_Suspended_Sediment_Concentration_in_River_and_Lake_Environments">Hossain et al. 2010.</a> Blue to black shades indicates low to high pollution` },
{ id: 9, name: 'QUANG8', checked: false, date: ['2020_01_23', '2020_02_08', '2020_02_24', '2020_03_11', '2020_04_12', '2020_04_28', '2020_05_14', '2020_07_17', '2020_09_03', '2020_10_05', '2020_10_21'], description: `Quang Total Suspended Solids. It is an algorithm for turbidity retrieval in mg/L that was developed based on the correlation between in situ measurements and a red band of Landsat 8 OLI. <a href="https://www.mdpi.com/2073-4441/9/8/570">Paper: Quang et al. 2017.</a>Blue to black shades indicates low to high pollution` },
{ id: 10, name: 'SPM_QUI', checked: false, date: ['2020_01_23', '2020_02_08', '2020_02_24', '2020_03_11', '2020_04_12', '2020_04_28', '2020_05_14', '2020_07_17', '2020_09_03', '2020_10_05', '2020_10_21'], description: `Suspended Particulate Model. SPM_QUI finds the distribution of the suspended particulate matter (SPM) concentration in g/m3. <a href="https://www.researchgate.net/publication/260152686_A_simple_optical_model_to_estimate_suspended_particulate_matter_in_Yellow_River_Estuary">Paper: Zhongfeng Qiu et.al. 2013.</a> Blue to black shades indicates low to high pollution` },
{ id: 11, name: 'False Color', checked: false, date: ['2020_01_23', '2020_02_08', '2020_02_24', '2020_03_11', '2020_04_12', '2020_04_28', '2020_05_14', '2020_07_17', '2020_09_03', '2020_10_05', '2020_10_21'], description: "Bands 5, 6 and 4 (NIR, SWIR1 and RED) are used to create false color good for picking out land from water. Here land appears in shades of orange and green, ice stands out as a vibrant magenta color, and water appears in shades of blue." }
];
var availableIndicesOfKolkata = [{ id: 1, name: 'AQI', checked: false, date: ['2020_01_02', '2020_01_09', '2020_01_16', '2020_01_23', '2020_01_30', '2020_02_07', '2020_02_14', '2020_02_21', '2020_02_28', '2020_03_06', '2020_03_13', '2020_03_20', '2020_03_27', '2020_04_03', '2020_04_10', '2020_04_17', '2020_04_24', '2020_05_01', '2020_05_08', '2020_05_25', '2020_06_01', '2020_06_08', '2020_06_15', '2020_06_22', '2020_06_29', '2020_07_06', '2020_07_13', '2020_07_21', '2020_07_28', '2020_08_04', '2020_08_11', '2020_08_18', '2020_08_25', '2020_09_01', '2020_09_08', '2020_09_15', '2020_09_22', '2020_09_29', '2020_10_06', '2020_10_13', '2020_10_20', '2020_10_27', '2020_11_03', '2020_11_10', '2020_11_17', '2020_11_24'], description: "Air Quality Index (AQI) is calculated by aggregating other air quality metrics over a specified averaging period. Green to red shades indicate lower to higher AQI values." },
{ id: 2, name: 'CO', checked: false, date: ['2020_01_02', '2020_01_09', '2020_01_16', '2020_01_23', '2020_01_30', '2020_02_07', '2020_02_14', '2020_02_21', '2020_02_28', '2020_03_06', '2020_03_13', '2020_03_20', '2020_03_27', '2020_04_03', '2020_04_10', '2020_04_17', '2020_04_24', '2020_05_01', '2020_05_08', '2020_05_25', '2020_06_01', '2020_06_08', '2020_06_15', '2020_06_22', '2020_06_29', '2020_07_06', '2020_07_13', '2020_07_21', '2020_07_28', '2020_08_04', '2020_08_11', '2020_08_18', '2020_08_25', '2020_09_01', '2020_09_08', '2020_09_15', '2020_09_22', '2020_09_29', '2020_10_06', '2020_10_13', '2020_10_20', '2020_10_27', '2020_11_03', '2020_11_10', '2020_11_17', '2020_11_24'], description: "Carbon monoxide (CO, a colorless, odorless, tasteless, and toxic air pollutant is produced in the incomplete combustion of carbon-containing fuels, such as gasoline, natural gas, oil, coal, and wood. Green to red shades indicate lower to higher pollution rate." },
{ id: 3, name: 'NOx', checked: false, date: ['2020_01_02', '2020_01_09', '2020_01_16', '2020_01_23', '2020_01_30', '2020_02_07', '2020_02_14', '2020_02_21', '2020_02_28', '2020_03_06', '2020_03_13', '2020_03_20', '2020_03_27', '2020_04_03', '2020_04_10', '2020_04_17', '2020_04_24', '2020_05_01', '2020_05_08', '2020_05_25', '2020_06_01', '2020_06_08', '2020_06_15', '2020_06_22', '2020_06_29', '2020_07_06', '2020_07_13', '2020_07_21', '2020_07_28', '2020_08_04', '2020_08_11', '2020_08_18', '2020_08_25', '2020_09_01', '2020_09_08', '2020_09_15', '2020_09_22', '2020_09_29', '2020_10_06', '2020_10_13', '2020_10_20', '2020_10_27', '2020_11_03', '2020_11_10', '2020_11_17', '2020_11_24'], description: " Nitrogen Oxides are a family of poisonous, highly reactive gases formed when fuel is burned at high temperatures. NOx pollution is caused by automobiles, trucks and various non-road vehicles. Green to red shades indicate lower to higher pollution rate." },
{ id: 4, name: 'O3', checked: false, date: ['2020_01_02', '2020_01_09', '2020_01_16', '2020_01_23', '2020_01_30', '2020_02_07', '2020_02_14', '2020_02_21', '2020_02_28', '2020_03_06', '2020_03_13', '2020_03_20', '2020_03_27', '2020_04_03', '2020_04_10', '2020_04_17', '2020_04_24', '2020_05_01', '2020_05_08', '2020_05_25', '2020_06_01', '2020_06_08', '2020_06_15', '2020_06_22', '2020_06_29', '2020_07_06', '2020_07_13', '2020_07_21', '2020_07_28', '2020_08_04', '2020_08_11', '2020_08_18', '2020_08_25', '2020_09_01', '2020_09_08', '2020_09_15', '2020_09_22', '2020_09_29', '2020_10_06', '2020_10_13', '2020_10_20', '2020_10_27', '2020_11_03', '2020_11_10', '2020_11_17', '2020_11_24'], description: "Ozone is not emitted directly into the air, but is created by chemical reactions between oxides of nitrogen (NOx) and volatile organic compounds (VOC). This happens when pollutants emitted by cars, power plants, industrial boilers and other sources chemically react in the presence of sunlight. Green to red shades indicate lower to higher pollution rate" },
{ id: 5, name: 'PM2.5', checked: false, date: ['2020_01_02', '2020_01_09', '2020_01_16', '2020_01_23', '2020_01_30', '2020_02_07', '2020_02_14', '2020_02_21', '2020_02_28', '2020_03_06', '2020_03_13', '2020_03_20', '2020_03_27', '2020_04_03', '2020_04_10', '2020_04_17', '2020_04_24', '2020_05_01', '2020_05_08', '2020_05_25', '2020_06_01', '2020_06_08', '2020_06_15', '2020_06_22', '2020_06_29', '2020_07_06', '2020_07_13', '2020_07_21', '2020_07_28', '2020_08_04', '2020_08_11', '2020_08_18', '2020_08_25', '2020_09_01', '2020_09_08', '2020_09_15', '2020_09_22', '2020_09_29', '2020_10_06', '2020_10_13', '2020_10_20', '2020_10_27', '2020_11_03', '2020_11_10', '2020_11_17', '2020_11_24'], description: "Particulate matter (PM 2.5) are tiny inhalable particles in the air that cause serious health issues and reduce visibility (haze) when their levels are elevated. Green to red shades indicate lower to higher pollution rate." },
{ id: 6, name: 'SO2', checked: false, date: ['2020_01_02', '2020_01_09', '2020_01_16', '2020_01_23', '2020_01_30', '2020_02_07', '2020_02_14', '2020_02_21', '2020_02_28', '2020_03_06', '2020_03_13', '2020_03_20', '2020_03_27', '2020_04_03', '2020_04_10', '2020_04_17', '2020_04_24', '2020_05_01', '2020_05_08', '2020_05_25', '2020_06_01', '2020_06_08', '2020_06_15', '2020_06_22', '2020_06_29', '2020_07_06', '2020_07_13', '2020_07_21', '2020_07_28', '2020_08_04', '2020_08_11', '2020_08_18', '2020_08_25', '2020_09_01', '2020_09_08', '2020_09_15', '2020_09_22', '2020_09_29', '2020_10_06', '2020_10_13', '2020_10_20', '2020_10_27', '2020_11_03', '2020_11_10', '2020_11_17', '2020_11_24'], description: "SO2 is emitted by the burning of fossil fuels such as coal, oil, and diesel or other materials that contain sulfur. Green to red shades indicate lower to higher pollution rate." },
{ id: 7, name: 'LYM8', checked: false, date: ['2020_01_01', '2020_01_17', '2020_02_02', '2020_02_18', '2020_03_05', '2020_03_21', '2020_04_06', '2020_05_08', '2020_05_24', '2020_06_09', '2020_06_25', '2020_07_27', '2020_09_13', '2020_09_29'], description: `Lymburner Total Suspended Matter. LYM8 is an algorithm to find the concentration of Total Suspended Matter (TSM) in mg/L. Paper: <a href="https://www.sciencedirect.com/science/article/abs/pii/S0034425716301560">Lymburner et al. 2016.</a> Blue to black shades indicates low to high pollution.` },
{ id: 8, name: 'NDSSI', checked: false, date: ['2020_01_01', '2020_01_17', '2020_02_02', '2020_02_18', '2020_03_05', '2020_03_21', '2020_04_06', '2020_05_08', '2020_05_24', '2020_06_09', '2020_06_25', '2020_07_27', '2020_09_13', '2020_09_29'], description: `Normalized Difference Suspended Sediment Index. The NDSSI value ranges from -1 to +1. Values closer to +1 indicate higher concentration of sediment. Paper: <a href="https://www.researchgate.net/publication/251236287_Development_of_Remote_Sensing_Based_Index_for_EstimatingMapping_Suspended_Sediment_Concentration_in_River_and_Lake_Environments">Hossain et al. 2010.</a> Blue to black shades indicates low to high pollution` },
{ id: 9, name: 'QUANG8', checked: false, date: ['2020_01_01', '2020_01_17', '2020_02_02', '2020_02_18', '2020_03_05', '2020_03_21', '2020_04_06', '2020_05_08', '2020_05_24', '2020_06_09', '2020_06_25', '2020_07_27', '2020_09_13', '2020_09_29'], description: `Quang Total Suspended Solids. It is an algorithm for turbidity retrieval in mg/L that was developed based on the correlation between in situ measurements and a red band of Landsat 8 OLI. <a href="https://www.mdpi.com/2073-4441/9/8/570">Paper: Quang et al. 2017.</a>Blue to black shades indicates low to high pollution` },
{ id: 10, name: 'SPM_QUI', checked: false, date: ['2020_01_01', '2020_01_17', '2020_02_02', '2020_02_18', '2020_03_05', '2020_03_21', '2020_04_06', '2020_05_08', '2020_05_24', '2020_06_09', '2020_06_25', '2020_07_27', '2020_09_13', '2020_09_29'], description: `Suspended Particulate Model. SPM_QUI finds the distribution of the suspended particulate matter (SPM) concentration in g/m3. <a href="https://www.researchgate.net/publication/260152686_A_simple_optical_model_to_estimate_suspended_particulate_matter_in_Yellow_River_Estuary">Paper: Zhongfeng Qiu et.al. 2013.</a> Blue to black shades indicates low to high pollution` },
{ id: 11, name: 'False Color', checked: false, date: ['2020_01_01', '2020_01_17', '2020_02_02', '2020_02_18', '2020_03_05', '2020_03_21', '2020_04_06', '2020_05_08', '2020_05_24', '2020_06_09', '2020_06_25', '2020_07_27', '2020_09_13', '2020_09_29'], description: "Bands 5, 6 and 4 (NIR, SWIR1 and RED) are used to create false color good for picking out land from water. Here land appears in shades of orange and green, ice stands out as a vibrant magenta color, and water appears in shades of blue." }
];
var availableIndicesOfDelhi = [{ id: 1, name: 'AQI', checked: false, date: ['2020_01_02', '2020_01_09', '2020_01_16', '2020_01_23', '2020_01_30', '2020_02_06', '2020_02_13', '2020_02_20', '2020_02_27', '2020_03_05', '2020_03_12', '2020_03_19', '2020_03_26', '2020_04_02', '2020_04_09', '2020_04_16', '2020_04_23', '2020_04_30', '2020_05_07', '2020_05_14', '2020_05_21', '2020_05_28', '2020_06_04', '2020_06_11', '2020_06_18', '2020_06_25', '2020_07_02', '2020_07_09', '2020_07_16', '2020_07_23', '2020_07_30', '2020_08_06', '2020_08_13', '2020_08_20', '2020_08_27', '2020_09_03', '2020_09_10', '2020_09_17', '2020_09_24', '2020_10_01', '2020_10_08', '2020_10_15', '2020_10_22', '2020_10_29', '2020_11_05', '2020_11_12', '2020_11_19', '2020_11_26'], description: "Air Quality Index (AQI) is calculated by aggregating other air quality metrics over a specified averaging period. Green to red shades indicate lower to higher AQI values." },
{ id: 2, name: 'CO', checked: false, date: ['2020_01_02', '2020_01_09', '2020_01_16', '2020_01_23', '2020_01_30', '2020_02_06', '2020_02_13', '2020_02_20', '2020_02_27', '2020_03_05', '2020_03_12', '2020_03_19', '2020_03_26', '2020_04_02', '2020_04_09', '2020_04_16', '2020_04_23', '2020_04_30', '2020_05_07', '2020_05_14', '2020_05_21', '2020_05_28', '2020_06_04', '2020_06_11', '2020_06_18', '2020_06_25', '2020_07_02', '2020_07_09', '2020_07_16', '2020_07_23', '2020_07_30', '2020_08_06', '2020_08_13', '2020_08_20', '2020_08_27', '2020_09_03', '2020_09_10', '2020_09_17', '2020_09_24', '2020_10_01', '2020_10_08', '2020_10_15', '2020_10_22', '2020_10_29', '2020_11_05', '2020_11_12', '2020_11_19', '2020_11_26'], description: "Carbon monoxide (CO, a colorless, odorless, tasteless, and toxic air pollutant is produced in the incomplete combustion of carbon-containing fuels, such as gasoline, natural gas, oil, coal, and wood. Green to red shades indicate lower to higher pollution rate." },
{ id: 3, name: 'NOx', checked: false, date: ['2020_01_02', '2020_01_09', '2020_01_16', '2020_01_23', '2020_01_30', '2020_02_06', '2020_02_13', '2020_02_20', '2020_02_27', '2020_03_05', '2020_03_12', '2020_03_19', '2020_03_26', '2020_04_02', '2020_04_09', '2020_04_16', '2020_04_23', '2020_04_30', '2020_05_07', '2020_05_14', '2020_05_21', '2020_05_28', '2020_06_04', '2020_06_11', '2020_06_18', '2020_06_25', '2020_07_02', '2020_07_09', '2020_07_16', '2020_07_23', '2020_07_30', '2020_08_06', '2020_08_13', '2020_08_20', '2020_08_27', '2020_09_03', '2020_09_10', '2020_09_17', '2020_09_24', '2020_10_01', '2020_10_08', '2020_10_15', '2020_10_22', '2020_10_29', '2020_11_05', '2020_11_12', '2020_11_19', '2020_11_26'], description: " Nitrogen Oxides are a family of poisonous, highly reactive gases formed when fuel is burned at high temperatures. NOx pollution is caused by automobiles, trucks and various non-road vehicles. Green to red shades indicate lower to higher pollution rate." },
{ id: 4, name: 'O3', checked: false, date: ['2020_07_09', '2020_07_16', '2020_07_23', '2020_07_30', '2020_08_06', '2020_08_13', '2020_08_20', '2020_08_27', '2020_09_03', '2020_09_10', '2020_09_17', '2020_09_24', '2020_10_01', '2020_10_08', '2020_10_15', '2020_10_22', '2020_10_29', '2020_11_05', '2020_11_12', '2020_11_19', '2020_11_26'], description: "Ozone is not emitted directly into the air, but is created by chemical reactions between oxides of nitrogen (NOx) and volatile organic compounds (VOC). This happens when pollutants emitted by cars, power plants, industrial boilers and other sources chemically react in the presence of sunlight. Green to red shades indicate lower to higher pollution rate" },
{ id: 5, name: 'PM2.5', checked: false, date: ['2020_01_02', '2020_01_09', '2020_01_16', '2020_01_23', '2020_01_30', '2020_02_06', '2020_02_13', '2020_02_20', '2020_02_27', '2020_03_05', '2020_03_12', '2020_03_19', '2020_03_26', '2020_04_02', '2020_04_09', '2020_04_16', '2020_04_23', '2020_04_30', '2020_05_07', '2020_05_14', '2020_05_21', '2020_05_28', '2020_06_04', '2020_06_11', '2020_06_18', '2020_06_25', '2020_07_02', '2020_07_09', '2020_07_16', '2020_07_23', '2020_07_30', '2020_08_06', '2020_08_13', '2020_08_20', '2020_08_27', '2020_09_03', '2020_09_10', '2020_09_17', '2020_09_24', '2020_10_01', '2020_10_08', '2020_10_15', '2020_10_22', '2020_10_29', '2020_11_05', '2020_11_12', '2020_11_19', '2020_11_26'], description: "Particulate matter (PM 2.5) are tiny inhalable particles in the air that cause serious health issues and reduce visibility (haze) when their levels are elevated. Green to red shades indicate lower to higher pollution rate." },
{ id: 6, name: 'SO2', checked: false, date: ['2020_01_02', '2020_01_09', '2020_01_16', '2020_01_23', '2020_01_30', '2020_02_06', '2020_02_13', '2020_02_20', '2020_02_27', '2020_03_05', '2020_03_12', '2020_03_19', '2020_03_26', '2020_04_02', '2020_04_09', '2020_04_16', '2020_04_23', '2020_04_30', '2020_05_07', '2020_05_14', '2020_05_21', '2020_05_28', '2020_06_04', '2020_06_11', '2020_06_18', '2020_06_25', '2020_07_02', '2020_07_09', '2020_07_16', '2020_07_23', '2020_07_30', '2020_08_06', '2020_08_13', '2020_08_20', '2020_08_27', '2020_09_03', '2020_09_10', '2020_09_17', '2020_09_24', '2020_10_01', '2020_10_08', '2020_10_15', '2020_10_22', '2020_10_29', '2020_11_05', '2020_11_12', '2020_11_19', '2020_11_26'], description: "SO2 is emitted by the burning of fossil fuels such as coal, oil, and diesel or other materials that contain sulfur. Green to red shades indicate lower to higher pollution rate." },
{ id: 7, name: 'LYM8', checked: false, date: ['2020_01_25', '2020_02_10', '2020_02_26', '2020_03_13', '2020_03_29', '2020_04_30', '2020_05_16', '2020_06_01', '2020_06_17', '2020_07_03', '2020_09_05', '2020_09_21', '2020_10_07', '2020_10_23'], description: `Lymburner Total Suspended Matter. LYM8 is an algorithm to find the concentration of Total Suspended Matter (TSM) in mg/L. Paper: <a href="https://www.sciencedirect.com/science/article/abs/pii/S0034425716301560">Lymburner et al. 2016.</a> Blue to black shades indicates low to high pollution.` },
{ id: 8, name: 'NDSSI', checked: false, date: ['2020_01_25', '2020_02_10', '2020_02_26', '2020_03_13', '2020_03_29', '2020_04_30', '2020_05_16', '2020_06_01', '2020_06_17', '2020_07_03', '2020_09_05', '2020_09_21', '2020_10_07', '2020_10_23'], description: `Normalized Difference Suspended Sediment Index. The NDSSI value ranges from -1 to +1. Values closer to +1 indicate higher concentration of sediment. Paper: <a href="https://www.researchgate.net/publication/251236287_Development_of_Remote_Sensing_Based_Index_for_EstimatingMapping_Suspended_Sediment_Concentration_in_River_and_Lake_Environments">Hossain et al. 2010.</a> Blue to black shades indicates low to high pollution` },
{ id: 9, name: 'QUANG8', checked: false, date: ['2020_01_25', '2020_02_10', '2020_02_26', '2020_03_13', '2020_03_29', '2020_04_30', '2020_05_16', '2020_06_01', '2020_06_17', '2020_07_03', '2020_09_05', '2020_09_21', '2020_10_07', '2020_10_23'], description: `Quang Total Suspended Solids. It is an algorithm for turbidity retrieval in mg/L that was developed based on the correlation between in situ measurements and a red band of Landsat 8 OLI. <a href="https://www.mdpi.com/2073-4441/9/8/570">Paper: Quang et al. 2017.</a>Blue to black shades indicates low to high pollution` },
{ id: 10, name: 'SPM_QUI', checked: false, date: ['2020_01_25', '2020_02_10', '2020_02_26', '2020_03_13', '2020_03_29', '2020_04_30', '2020_05_16', '2020_06_01', '2020_06_17', '2020_07_03', '2020_09_05', '2020_09_21', '2020_10_07', '2020_10_23'], description: `Suspended Particulate Model. SPM_QUI finds the distribution of the suspended particulate matter (SPM) concentration in g/m3. <a href="https://www.researchgate.net/publication/260152686_A_simple_optical_model_to_estimate_suspended_particulate_matter_in_Yellow_River_Estuary">Paper: Zhongfeng Qiu et.al. 2013.</a> Blue to black shades indicates low to high pollution` },
{ id: 11, name: 'False Color', checked: false, date: ['2020_01_25', '2020_02_10', '2020_02_26', '2020_03_13', '2020_03_29', '2020_04_30', '2020_05_16', '2020_06_01', '2020_06_17', '2020_07_03', '2020_09_05', '2020_09_21', '2020_10_07', '2020_10_23'], description: "Bands 5, 6 and 4 (NIR, SWIR1 and RED) are used to create false color good for picking out land from water. Here land appears in shades of orange and green, ice stands out as a vibrant magenta color, and water appears in shades of blue." }
];
var availableIndicesOfHyderabad = [{ id: 1, name: 'AQI', checked: false, date: ['2020_01_02', '2020_01_09', '2020_01_20', '2020_01_28', '2020_02_05', '2020_02_12', '2020_02_19', '2020_02_26', '2020_03_04', '2020_03_11', '2020_03_18', '2020_04_14', '2020_04_21', '2020_04_28', '2020_05_05', '2020_05_12', '2020_05_19', '2020_05_26', '2020_06_02', '2020_06_09', '2020_06_16', '2020_06_23', '2020_06_30', '2020_07_07', '2020_07_14', '2020_07_21', '2020_07_30', '2020_08_06', '2020_08_13', '2020_08_20', '2020_08_27', '2020_09_03', '2020_09_10', '2020_09_17', '2020_09_24', '2020_10_01', '2020_10_08', '2020_10_15', '2020_10_22', '2020_10_29', '2020_11_05', '2020_11_12', '2020_11_19', '2020_11_26'], description: "Air Quality Index (AQI) is calculated by aggregating other air quality metrics over a specified averaging period. Green to red shades indicate lower to higher AQI values." },
{ id: 2, name: 'CO', checked: false, date: ['2020_01_02', '2020_01_09', '2020_01_20', '2020_01_28', '2020_02_05', '2020_02_12', '2020_02_19', '2020_02_26', '2020_03_04', '2020_03_11', '2020_03_18', '2020_04_14', '2020_04_21', '2020_04_28', '2020_05_05', '2020_05_12', '2020_05_19', '2020_05_26', '2020_06_02', '2020_06_09', '2020_06_16', '2020_06_23', '2020_06_30', '2020_07_07', '2020_07_14', '2020_07_21', '2020_07_30', '2020_08_06', '2020_08_13', '2020_08_20', '2020_08_27', '2020_09_03', '2020_09_10', '2020_09_17', '2020_09_24', '2020_10_01', '2020_10_08', '2020_10_15', '2020_10_22', '2020_10_29', '2020_11_05', '2020_11_12', '2020_11_19', '2020_11_26'], description: "Carbon monoxide (CO, a colorless, odorless, tasteless, and toxic air pollutant is produced in the incomplete combustion of carbon-containing fuels, such as gasoline, natural gas, oil, coal, and wood. Green to red shades indicate lower to higher pollution rate." },
{ id: 3, name: 'NOx', checked: false, date: ['2020_01_02', '2020_01_09', '2020_01_20', '2020_01_28', '2020_02_05', '2020_02_12', '2020_02_19', '2020_02_26', '2020_03_04', '2020_03_11', '2020_03_18', '2020_04_14', '2020_04_21', '2020_04_28', '2020_05_05', '2020_05_12', '2020_05_19', '2020_05_26', '2020_06_02', '2020_06_09', '2020_06_16', '2020_06_23', '2020_06_30', '2020_07_07', '2020_07_14', '2020_07_21', '2020_07_30', '2020_08_06', '2020_08_13', '2020_08_20', '2020_08_27', '2020_09_03', '2020_09_10', '2020_09_17', '2020_09_24', '2020_10_01', '2020_10_08', '2020_10_15', '2020_10_22', '2020_10_29', '2020_11_05', '2020_11_12', '2020_11_19', '2020_11_26'], description: " Nitrogen Oxides are a family of poisonous, highly reactive gases formed when fuel is burned at high temperatures. NOx pollution is caused by automobiles, trucks and various non-road vehicles. Green to red shades indicate lower to higher pollution rate." },
{ id: 4, name: 'O3', checked: false, date: ['2020_01_02', '2020_01_09', '2020_01_20', '2020_01_28', '2020_02_05', '2020_02_12', '2020_02_19', '2020_02_26', '2020_03_04', '2020_03_11', '2020_03_18', '2020_04_14', '2020_04_21', '2020_04_28', '2020_05_05', '2020_05_12', '2020_05_19', '2020_05_26', '2020_06_02', '2020_06_09', '2020_06_16', '2020_06_23', '2020_06_30', '2020_07_07', '2020_07_14', '2020_07_21', '2020_07_30', '2020_08_06', '2020_08_13', '2020_08_20', '2020_08_27', '2020_09_03', '2020_09_10', '2020_09_17', '2020_09_24', '2020_10_01', '2020_10_08', '2020_10_15', '2020_10_22', '2020_10_29', '2020_11_05', '2020_11_12', '2020_11_19', '2020_11_26'], description: "Ozone is not emitted directly into the air, but is created by chemical reactions between oxides of nitrogen (NOx) and volatile organic compounds (VOC). This happens when pollutants emitted by cars, power plants, industrial boilers and other sources chemically react in the presence of sunlight. Green to red shades indicate lower to higher pollution rate" },
{ id: 5, name: 'PM2.5', checked: false, date: ['2020_01_02', '2020_01_09', '2020_01_20', '2020_01_28', '2020_02_05', '2020_02_12', '2020_02_19', '2020_02_26', '2020_03_04', '2020_03_11', '2020_03_18', '2020_04_14', '2020_04_21', '2020_04_28', '2020_05_05', '2020_05_12', '2020_05_19', '2020_05_26', '2020_06_02', '2020_06_09', '2020_06_16', '2020_06_23', '2020_06_30', '2020_07_07', '2020_07_14', '2020_07_21', '2020_07_30', '2020_08_06', '2020_08_13', '2020_08_20', '2020_08_27', '2020_09_03', '2020_09_10', '2020_09_17', '2020_09_24', '2020_10_01', '2020_10_08', '2020_10_15', '2020_10_22', '2020_10_29', '2020_11_05', '2020_11_12', '2020_11_19', '2020_11_26'], description: "Particulate matter (PM 2.5) are tiny inhalable particles in the air that cause serious health issues and reduce visibility (haze) when their levels are elevated. Green to red shades indicate lower to higher pollution rate." },
{ id: 6, name: 'SO2', checked: false, date: ['2020_01_02', '2020_01_09', '2020_01_20', '2020_01_28', '2020_02_05', '2020_02_12', '2020_02_19', '2020_02_26', '2020_03_04', '2020_03_11', '2020_03_18', '2020_04_14', '2020_04_21', '2020_04_28', '2020_05_05', '2020_05_12', '2020_05_19', '2020_05_26', '2020_06_02', '2020_06_09', '2020_06_16', '2020_06_23', '2020_06_30', '2020_07_07', '2020_07_14', '2020_07_21', '2020_07_30', '2020_08_06', '2020_08_13', '2020_08_20', '2020_08_27', '2020_09_03', '2020_09_10', '2020_09_17', '2020_09_24', '2020_10_01', '2020_10_08', '2020_10_15', '2020_10_22', '2020_10_29', '2020_11_05', '2020_11_12', '2020_11_19', '2020_11_26'], description: "SO2 is emitted by the burning of fossil fuels such as coal, oil, and diesel or other materials that contain sulfur. Green to red shades indicate lower to higher pollution rate." },
{ id: 7, name: 'LYM8', checked: false, date: ['2020_01_11', '2020_01_27', '2020_02_12', '2020_02_28', '2020_03_15', '2020_03_31', '2020_04_16', '2020_05_02', '2020_05_18', '2020_07_21', '2020_09_07', '2020_10_09', '2020_10_25'], description: `Lymburner Total Suspended Matter. LYM8 is an algorithm to find the concentration of Total Suspended Matter (TSM) in mg/L. Paper: <a href="https://www.sciencedirect.com/science/article/abs/pii/S0034425716301560">Lymburner et al. 2016.</a> Blue to black shades indicates low to high pollution.` },
{ id: 8, name: 'NDSSI', checked: false, date: ['2020_01_11', '2020_01_27', '2020_02_12', '2020_02_28', '2020_03_15', '2020_03_31', '2020_04_16', '2020_05_02', '2020_05_18', '2020_07_21', '2020_09_07', '2020_10_09', '2020_10_25'], description: `Normalized Difference Suspended Sediment Index. The NDSSI value ranges from -1 to +1. Values closer to +1 indicate higher concentration of sediment. Paper: <a href="https://www.researchgate.net/publication/251236287_Development_of_Remote_Sensing_Based_Index_for_EstimatingMapping_Suspended_Sediment_Concentration_in_River_and_Lake_Environments">Hossain et al. 2010.</a> Blue to black shades indicates low to high pollution` },
{ id: 9, name: 'QUANG8', checked: false, date: ['2020_01_11', '2020_01_27', '2020_02_12', '2020_02_28', '2020_03_15', '2020_03_31', '2020_04_16', '2020_05_02', '2020_05_18', '2020_07_21', '2020_09_07', '2020_10_09', '2020_10_25'], description: `Quang Total Suspended Solids. It is an algorithm for turbidity retrieval in mg/L that was developed based on the correlation between in situ measurements and a red band of Landsat 8 OLI. <a href="https://www.mdpi.com/2073-4441/9/8/570">Paper: Quang et al. 2017.</a>Blue to black shades indicates low to high pollution` },
{ id: 10, name: 'SPM_QUI', checked: false, date: ['2020_01_11', '2020_01_27', '2020_02_12', '2020_02_28', '2020_03_15', '2020_03_31', '2020_04_16', '2020_05_02', '2020_05_18', '2020_07_21', '2020_09_07', '2020_10_09', '2020_10_25'], description: `Suspended Particulate Model. SPM_QUI finds the distribution of the suspended particulate matter (SPM) concentration in g/m3. <a href="https://www.researchgate.net/publication/260152686_A_simple_optical_model_to_estimate_suspended_particulate_matter_in_Yellow_River_Estuary">Paper: Zhongfeng Qiu et.al. 2013.</a> Blue to black shades indicates low to high pollution` },
{ id: 11, name: 'False Color', checked: false, date: ['2020_01_11', '2020_01_27', '2020_02_12', '2020_02_28', '2020_03_15', '2020_03_31', '2020_04_16', '2020_05_02', '2020_05_18', '2020_07_21', '2020_09_07', '2020_10_09', '2020_10_25'], description: "Bands 5, 6 and 4 (NIR, SWIR1 and RED) are used to create false color good for picking out land from water. Here land appears in shades of orange and green, ice stands out as a vibrant magenta color, and water appears in shades of blue." }
];
let radioCheckedIndex = 0;
let selectedPollution = {};
let selectedPlace = {};
let sliderChange = "";
let checkBoxIndices = "";
let indicesToShow = [];
var viewer = null;
var layers = null;
var layer = null;
let indicesCorrespondingToSelectedPlace = [];
document.getElementById('indices-wrapper').style.display = 'none';
document.getElementById('places').innerHTML = radioPlaces();
function radioPlaces() {
let radiobutton = "";
for (let index = 0; index < availablePlaces.length; index++) {
let checked = availablePlaces[index].checked ? "checked=" + availablePlaces[index].checked : ''
radiobutton = radiobutton + "<label class=radio-container>" + availablePlaces[index].name +
" <input type=radio " + checked + " name=place value='" + availablePlaces[index].id + "' onclick=radioPlaceChangeHandler(this.value);>" +
" <span class=checkmark></span>" +
" </label>"
if (checked) {
selectedPlace = availablePlaces[index];
neededIndices(availablePlaces[index].id);
}
}
return radiobutton;
}
function radioPlaceChangeHandler(type) {
for (let index = 0; index < availablePlaces.length; index++) {
if (availablePlaces[index].id == type) {
document.getElementById('pollution-header').style.display = 'block';
availablePlaces[index].checked = true;
selectedPlace = availablePlaces[index];
neededIndices(availablePlaces[index].id);
reset();
viewer.camera.flyTo({
destination: Cesium.Cartesian3.fromDegrees((selectedPlace.position.west + selectedPlace.position.east) / 2, (selectedPlace.position.south + selectedPlace.position.north) / 2, 90000)
});
} else {
availablePlaces[index].checked = false;
}
}
}
function reset() {
pollutionTypes.map(e => {
e.checked = false
})
indicesCorrespondingToSelectedPlace.map(e => {
e.checked = false
})
document.getElementById('pollutions').innerHTML = radioPollutions();
document.getElementById('indices').innerHTML = radioIndices();
document.getElementById('indices-wrapper').style.display = 'none';
document.getElementById('dynamicslider').innerHTML = "";
document.getElementById('description').innerHTML = "";
let imageToBeDisplayed = "";
ImageryPlotting(imageToBeDisplayed);
}
function radioPollutions() {
let radiobutton = "";
for (let index = 0; index < pollutionTypes.length; index++) {
let checked = pollutionTypes[index].checked ? "checked=" + pollutionTypes[index].checked : ''
radiobutton = radiobutton + "<label class=radio-container>" + pollutionTypes[index].name +
" <input type=radio " + checked + " name=pollutions value='" + pollutionTypes[index].id + "' onclick=radioPollutionChangeHandler(this.value);>" +
" <span class=checkmark></span>" +
" </label>"
if (checked) {
pollutionTypes[index].placeId = selectedPlace.id
selectedPollution = pollutionTypes[index];
indicesToShow = pollutionTypes[index].indices;
document.getElementById('indices').innerHTML = radioIndices();
document.getElementById('indices-wrapper').style.display = 'block';
if (selectedPollution.id == 3) {
document.getElementById('indices').innerHTML = "";
document.getElementById('indices-wrapper').style.display = 'none';
radioIndicesChangeHandler(11);
}
}
}
return radiobutton;
}
function radioPollutionChangeHandler(type) {
for (let index = 0; index < pollutionTypes.length; index++) {
if (pollutionTypes[index].id == type) {
ImageryPlotting("");
pollutionTypes[index].checked = true;
pollutionTypes[index].placeId = selectedPlace.id;
selectedPollution = pollutionTypes[index];
indicesToShow = pollutionTypes[index].indices;
document.getElementById('dynamicslider').innerHTML = '';
document.getElementById('description').innerHTML = '';
document.getElementById('indices').innerHTML = radioIndices();
document.getElementById('indices-wrapper').style.display = 'block';
if (selectedPollution.id == 3) {
document.getElementById('indices').innerHTML = "";
document.getElementById('indices-wrapper').style.display = 'none';
radioIndicesChangeHandler(11);
}
viewer.camera.flyTo({
destination: Cesium.Cartesian3.fromDegrees(selectedPollution.id == 1 ?
(selectedPlace.airPollutionPostion.west + selectedPlace.airPollutionPostion.east) / 2
: (selectedPlace.position.west + selectedPlace.position.east) / 2,
selectedPollution.id == 1 ?
(selectedPlace.airPollutionPostion.south + selectedPlace.airPollutionPostion.north) / 2
: (selectedPlace.position.south + selectedPlace.position.north) / 2, selectedPollution.id == 1 ? (selectedPlace.id == 2 || selectedPlace.id == 5 ? 90000 : 50000) : 30000)
});
} else {
pollutionTypes[index].checked = false;
}
}
}
function radioIndices() {
let radiobutton = "";
for (let index = 0; index < indicesCorrespondingToSelectedPlace.length; index++) {
for (let indicesToShowId = 0; indicesToShowId < indicesToShow.length; indicesToShowId++) {
if (indicesCorrespondingToSelectedPlace[index].id == indicesToShow[indicesToShowId]) {
let checked = indicesCorrespondingToSelectedPlace[index].checked ? "checked=" + indicesCorrespondingToSelectedPlace[index].checked : ''
radiobutton = radiobutton + "<label class=radio-container>" + indicesCorrespondingToSelectedPlace[index].name +
" <input type=radio " + checked + " name=indices value='" + indicesCorrespondingToSelectedPlace[index].id + "' onclick=radioIndicesChangeHandler(this.value);>" +
" <span class=checkmark></span>" +
" </label>"
if (checked) {
radioCheckedIndex = index;
document.getElementById('dynamicslider').innerHTML = dynamicSlider(index);
document.getElementById('description').innerHTML = dynamicDescription(index);
}
}
}
}
return radiobutton;
}
function radioIndicesChangeHandler(type) {
for (let index = 0; index < indicesCorrespondingToSelectedPlace.length; index++) {
if (indicesCorrespondingToSelectedPlace[index].id == type) {
indicesCorrespondingToSelectedPlace[index].checked = true;
radioCheckedIndex = index;
document.getElementById('dynamicslider').innerHTML = dynamicSlider(index);
document.getElementById('description').innerHTML = dynamicDescription(index);
let imageToBeDisplayed = selectedPlace.name + '/' + selectedPollution.name + '/' + indicesCorrespondingToSelectedPlace[radioCheckedIndex].name + '/' + indicesCorrespondingToSelectedPlace[radioCheckedIndex].date[0];
ImageryPlotting(imageToBeDisplayed);
} else {
indicesCorrespondingToSelectedPlace[index].checked = false;
}
}
}
function dynamicDescription(index) {
let description = "<div class=has-decription><div class=d-flex><div class=flex-fill><h2>Description</h2></div><span class=container-close onclick=descriptionHandler()></span><div class=flex-auto></div></div>" + indicesCorrespondingToSelectedPlace[index].description + "</div>"
return description;
}
function descriptionHandler() {
document.getElementById('description').innerHTML = "<div style=font-size:large ><a style=color:white onclick=showDescription()>Show Description</a></div>"
}
function showDescription() {
document.getElementById('description').innerHTML = dynamicDescription(radioCheckedIndex);
}
function dynamicSlider(index) {
let max = indicesCorrespondingToSelectedPlace[index].date.length - 1;
return "<div id=slider class=progress-inner >" + sliderValueToDate(0) + "</div>" +
"<div class=my-0>" + "<form class=color-orange>" +
"<input class=w-100 id=range1 name=range1 type=range min=0 max=" + max + " value=0 oninput=sliderChangeHandler(this.value,'slider') ></form></div>"
}
function sliderValueToDate(sliderValue) {
var formatedDate = (indicesCorrespondingToSelectedPlace[radioCheckedIndex].date[sliderValue]).replace(/_/g, "-");
return formatedDate;
}
function sliderChangeHandler(valueFromSlider, targetDivId) {
var formatedDate = sliderValueToDate(valueFromSlider);
document.getElementById(targetDivId).innerHTML = formatedDate;
let imageToBeDisplayed = selectedPlace.name + '/' + selectedPollution.name + '/' + indicesCorrespondingToSelectedPlace[radioCheckedIndex].name + '/' + formatedDate.replace(/-/g, "_");
ImageryPlotting(imageToBeDisplayed);
}
function neededIndices(place) {
switch (place) {
case 1:
indicesCorrespondingToSelectedPlace = availableIndicesOfChennai;
break;
case 2:
indicesCorrespondingToSelectedPlace = availableIndicesOfDelhi;
break;
case 3:
indicesCorrespondingToSelectedPlace = availableIndicesOfHyderabad;
break;
case 4:
indicesCorrespondingToSelectedPlace = availableIndicesOfKolkata;
break;
case 5:
indicesCorrespondingToSelectedPlace = availableIndicesOfMumbai;
break;
default:
break;
}
}
function startup(Cesium) {
"use strict";
let images = [];
for (let place = 0; place < availablePlaces.length; place++) {
for (let pollution = 0; pollution < pollutionTypes.length; pollution++) {
for (let indice = 0; indice < indicesCorrespondingToSelectedPlace.length; indice++) {
for (let indicesWeHave = 0; indicesWeHave < pollutionTypes[pollution].indices.length; indicesWeHave++) {
if (indicesCorrespondingToSelectedPlace[indice].id == pollutionTypes[pollution].indices[indicesWeHave]) {
for (let date = 0; date < indicesCorrespondingToSelectedPlace[indice].date.length; date++) {
let eachImage = ".\\images_environmental_impacts\\" + availablePlaces[place].name + "\\" + pollutionTypes[pollution].name + "\\" + indicesCorrespondingToSelectedPlace[indice].name + "\\" + indicesCorrespondingToSelectedPlace[indice].date[date] + ".png"
images.push(eachImage);
}
}
}
}
}
}
preloadImages(images);
Cesium.Ion.defaultAccessToken =
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI2NzlmYTEzYi1mMmQ5LTQwMmEtYTM3ZS1lNjMxZmZhODNjNDIiLCJpZCI6MzE1NDQsInNjb3BlcyI6WyJhc3IiLCJnYyJdLCJpYXQiOjE1OTU1NjUzNTZ9.T1pgxh_vcoOcPawkwQtu96b6hG_SYaRJnaSMbdDASv0";
viewer = new Cesium.Viewer("cesiumContainer", {
homeButton: false,
fullscreenButton: false,
baseLayerPicker: true,
animation: false,
geocoder: false,
infoBox: false,
timeline: false,
sceneModePicker: false,
navigationHelpButton: false,
terrainProvider: Cesium.createWorldTerrain(),
});
var initialPosition = new Cesium.Cartesian3.fromDegrees(0, 0, 0, 0);
var initialOrientation = new Cesium.HeadingPitchRoll.fromDegrees(
0.0,
-40,
0.0
);
var homeCameraView = {
destination: initialPosition,
orientation: {
heading: initialOrientation.heading,
pitch: initialOrientation.pitch,
roll: initialOrientation.roll,
},
};
viewer.scene.camera.setView(homeCameraView);
viewer.clock.shouldAnimate = false;
}
function preloadImages(array) {
if (!preloadImages.list) {
preloadImages.list = [];
}
var list = preloadImages.list;
for (var i = 0; i < array.length; i++) {
var img = new Image();
img.onload = function () {
var index = list.indexOf(this);
if (index !== -1) {
list.splice(index, 1);
}
}
list.push(img);
img.src = array[i];
}
}
function ImageryPlotting(imageType) {
layers = viewer.scene.imageryLayers;
layers.remove(layer);
if (imageType != null) {
var imagePath = `./images_environmental_impacts/${imageType}.png`;
layer = layers.addImageryProvider(
new Cesium.SingleTileImageryProvider({
url: imagePath,
rectangle: Cesium.Rectangle.fromDegrees(
selectedPollution.id == 1 ? selectedPlace.airPollutionPostion.west : selectedPlace.position.west,
selectedPollution.id == 1 ? selectedPlace.airPollutionPostion.south : selectedPlace.position.south,
selectedPollution.id == 1 ? selectedPlace.airPollutionPostion.east : selectedPlace.position.east,
selectedPollution.id == 1 ? selectedPlace.airPollutionPostion.north : selectedPlace.position.north
),
})
);
layers.add(layer);
}
}
// GeoJson addition and removal
// ---------------------------------
// let addedGeoJSon;
// function removeGeoJson(){
// viewer.dataSources.remove(addedGeoJSon, true);
// delete addedGeoJSon;
// }
// function geojsonPlotting(geojson) {
// let path = `./images_environmental_impacts/${geojson}.geojson`;
// Cesium.GeoJsonDataSource.load(`${path}`, {
// stroke: Cesium.Color.HOTPINK,
// fill: Cesium.Color.PINK,
// strokeWidth: 3,
// }).then(function(myDataSource) {
// viewer.dataSources.add(myDataSource);
// addedGeoJSon = myDataSource;
// });
// }
</script>
</body>
</html>