-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
613 lines (537 loc) · 34 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
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Oceanus</title>
<meta name="keywords" content="2019 NASA Space Apps Trash Cleanup">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
<meta property="og:title" content="">
<meta property="og:type" content="website">
<meta property="og:url" content="">
<meta property="og:site_name" content="">
<meta property="og:description" content="">
<!-- Styles -->
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/animate.css">
<link href='http://fonts.googleapis.com/css?family=Raleway:400,100,200,300,500,600,700,800,900|Montserrat:400,700'
rel='stylesheet' type='text/css'>
<link rel="shortcut icon" href="img/bricon.ico">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/main.css">
<script src="js/modernizr-2.7.1.js"></script>
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="logo" href="index.html"><img src="img/newlogo.png" alt="Logo"></a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li><a
href="https://2019.spaceappschallenge.org/challenges/earths-oceans/trash-cleanup/teams/oceanus/project">Project
Page</a></li>
<li><a href="https://github.com/TeamOceanus">Github</a></li>
</ul>
</div>
<!--/.navbar-collapse -->
</div>
</div>
<header>
<div class="container">
<div class="row">
<div class="col-xs-6">
<a href="index.html"><img src="img/newlogo.png" alt="Logo"></a>
</div>
<div class="col-xs-6 signin text-right navbar-nav">
<a href="https://2019.spaceappschallenge.org/challenges/earths-oceans/trash-cleanup/teams/oceanus/project">Project
Page</a> <a href="https://github.com/kodh49/oceanus">Github</a>
</div>
</div>
<div class="row header-info">
<div class="col-sm-10 col-sm-offset-1 text-center">
<h1 class="wow fadeIn"><font color = #E5E4E2>Oceanus, Saving Our Treasure</font></h1>
<br />
<p class="lead wow fadeIn" data-wow-delay="0.5s"><font color = #FFFFFF>Oceanus is a project targeted on getting rid of trash in Earth’s oceans.
<br>Our technology helps collecting plastic trash in oceans and recycling it.</font></p>
<br />
<div class="row">
<div class="col-md-8 col-md-offset-2 col-sm-10 col-sm-offset-1">
<div class="row">
<div class="col-xs-6 text-right wow fadeInUp" data-wow-delay="1s">
<a href="#main-info" class="btn btn-secondary btn-lg scroll">What is Oceanus?</a>
</div>
<div class="col-xs-6 text-left wow fadeInUp" data-wow-delay="1.4s">
<a href="#invite" class="btn btn-primary btn-lg scroll">See Data Analysis</a>
</div>
</div>
<!--End Button Row-->
</div>
</div>
</div>
</div>
</div>
</header>
<div class="mouse-icon hidden-xs">
<div class="scroll"></div>
</div>
<section id="be-the-first" class="pad-m">
<div class="container">
<div class="row">
<div class="col-sm-8 col-sm-offset-2 text-center margin-15 wow fadeIn" data-wow-delay="0.6s">
<br>
<br>
<br>
<hr style="height:2.5px; width:200px;">
<h2>Over <font color = #E8ADAA>10 times</font> the size of Florida covers the Pacific with <font color = #E77471>TRASH</font></h2>
<br>
<p class="lead">Trash in the ocean follow movements of ocean currents, ocean winds to accumulate in certain
areas of the ocean. Annually, large amounts of trash are being additionally thrown into the ocean.
If these trash are left alone to travel the world, they will damage Earth’s environment, and therefore a
solution is being required to clean Earth’s oceans.</p>
</div>
</div>
<div class="iphone wow fadeInUp" data-wow-delay="1s">
<img src="img/whale.png">
</div>
</div>
</section>
<section id="main-info" class="pad-xl">
<div class="container">
<br>
<br>
<br>
<h2 style="color : #000000; text-align:center;">What's Oceanus?</h2><br>
<div class="row">
<div class="col-sm-4 wow fadeIn" data-wow-delay="0.4s">
<hr class="line purple">
<h3>Environment - Friendly</h3>
<p> Using recycled plastic, considering marine lives and generating electricity with solar panels,
our machine thinks enviornment prior to any other considerations.</p>
</div>
<div class="col-sm-4 wow fadeIn" data-wow-delay="0.8s">
<hr class="line blue">
<h3>Automatic System</h3>
<p> Sailing with advantage of ocean currents and ocean winds and spread net where ocean currents converges, our machine automatically collects and delivers litters .</p>
</div>
<div class="col-sm-4 wow fadeIn" data-wow-delay="1.2s">
<hr class="line yellow">
<h3>Stability</h3>
<p>Using aluminuim for mesh, our machine would be light and stable, but still effective. Recycling plastic, we can utilize the quantity and efficiency of our machines.</p>
</div>
</div>
</div>
</section>
<!--Pricing-->
<section id="pricing" class="pad-l">
<br>
<br>
<div class="container">
<hr style="border:solid 1px white; width:170px;">
<h2 style=" text-align:center;">Our System</h2><br>
<div class="row">
<div class="col-md-6">
<font color = "FFFFFF" size = "3pt">
<h2><font color = "FFFFFF" size = "5pt">Outline</font></h2><p align = "justify"><font color = "white">
Oceanus is a project to remove the garbage from the sea.
After sending the devices to the garbage-populated area which is obtained from the data analysis,
the devices retrieve the trash and transport them to the land, potentially recycling it.</font></p>
<h2><font color = "FFFFFF" size = "5pt">Mechanism of Our System</font></h2><p align = "justify"><font color = "white"></font>
Once the system is established at the spot we’ve found from the data, the ocean waste will be caught by the mesh. Fish will never be caught into it, because an electric pulse will be always generated by the energy from the solar-energy generator.
When the trash accumulates(appropriate load: 400 ton), the elevating lift operates(by solar energy), the gathering machine comes up to the top of the mesh and sweeps the trash from the mesh while ascending.
After that, the trash returns to the land where it belongs to. We designed the body of the gathering module in a spiral form so that the process of collecting wastes or transporting may happen more effectively.
The waste are mostly used for other economic activities, and the rest of the plastic waste are reproduced for new systems(transporting machines, gathering modules).<br>
</font></p>
</div>
<div class="col-md-6">
<br>
<br>
<br>
<br>
<br>
<iframe width="618.8" height="348.075" src="https://www.youtube.com/embed/fcJFvuYM8l4" frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<br>
<br>
<br>
<br>
<br>
<br>
</div>
<br>
<br>
<br>
<br>
</div>
</div>
</section>
<section id="infographic" class="pad-sm">
<div class="container">
<hr style="border:solid 1px #007273; width:130px;">
<h2 style="color:#007273; text-align:center;">Features</h2>
<br>
<br>
<img src="img/info.png" width="100%" height="100%">
<font color = "000000" size = "4pt"><p align = "justify">
One of the potential risks of laying the skirt of nets and collect floating garbage is that lots of fish could be caught.
Because we are arranging the system in the region where lots of marine life live in, we had to be contemplated in displacing our system without harming those natural life.
As a solution, we have come up with the fish repelling device via electric pulse. First developed by Smith-Root, a fish repelling system called Fish Guidance and Deterrence Barriers contains BP-1.5 Programmable Output Waveform pulsars.
The pulsars are connected to a group of electrodes submerged in the waterway. Pulsars store energy inside them and discharges it.
Since pulse width and repetition are adjustable to create the waveform required to halt the movement of fish, it makes fish to avoid the waterway without harming the fish.
Based on this model, we attach the pulsars at the top of the aluminum mesh so that the mesh can widely spreads out the pulse to nearby area, leading fish to avoid the mesh.
Considering the wide size of mesh, various pulsars are needed. However, since aluminum has high conductivity, efficiency would be high enough.
Sufficient amount of energy can be provided from solar panel which is placed upon the floating module.
</p></font>
<br>
</div>
<hr>
<div class="container">
<div class="row">
<div class="col-md-6">
<img src="img/mech1.png" width="100%" height= "100%">
</div>
<div class="col-md-6">
<br>
<br>
<img src="img/mech3.png" width="100%" height="100%">
</div>
</div>
<hr>
<div class="row">
<div class="col-md-1">
</div>
<div class="col-md-4">
<font color = "000000" size = "4pt"><p align = "justify">
The Ocean Cleanup Project has measured the vertical distribution of plastic oceanic garbage during their 6 expeditions from 2013 to 2015.
According to their results, buoyant plastic garbages such as PET bottle are distributed within the top 5 meters of the ocean.
We referred to this data, and set the depth of our aluminium mesh and the location of gathering module to be 5 meters below the surface.
Floating module and the aluminium mesh attached to it has a wire for the gathering model to arise.
It uses electricity created from solar panels on the top of the floating module to operate.
</p></font>
</div>
<div class="col-md-2">
</div>
<div class="col-md-4">
<font size = "4pt"><p align = "justify">
We set the top radius into 10m, and the bottom radius into 9m. This is because the gathering module needs to gather as many wastes as possible, and also it has to maintain its center of mass so that the whole system doesn’t just cave over.
By using the density of the material of gathering module(UHMW-PE), we calculated the total mass of it. It is about 106 ton.
Once we calculated the total mass, we approximatelly calculated the appropriate load by simulating the whole system using the program “Maya 3D”. We set the standard for the maximum weight that can maintain the whole system(not just flip over).
</p></font>
</div>
<div class="col-md-1">
</div>
</div>
<br>
<br>
<div class="row">
<div class="col-md-6">
<img src="img/mech2.png" width="100%" height= "100%">
</div>
<div class="col-md-6">
<br><br><br><br><br><br>
<font color = "black" size = "4pt">
<p align = "justify">
We chose one point from various coordinates where ocean current is accumulated a lot, which has a longitude of 155 and latitude of 10 to apply drag equation to calculate the threshold force to set the floating module stationary. For the gathering module which is set below water, we have modeled the magnitude of drag force and the magnitude of countering force against drag force. According to our modeling, total countering force in need is 0.346(N). Because it is small enough to neglect compared to its total weight of 106t, gathering module does not need power module to be pushed forward. For the floating module we have modeled the condition with the method applied in the case of gathering module. Because the floating module has 223t of total weight, it is accelerated by a rate of 1.097 (m/s^2). This amount of electric power is provided by solar panels on the floating module. Since total amount of energy produced from the solar panel exceeds the threshold for the floating module to stay stationary, the whole device can maintain mechanical equilibrium, without either being swept away by ocean current/wind or being capsized.
</p>
</font>
</div>
</div>
<br>
</div>
</section>
<section id="invite" class="pad-m light-gray-bg">
<div class="container">
<br>
<br>
<br>
<h1 style="color:rgb(109, 109, 109); text-align:center;">Data Analysis</h1>
<br>
<h3 style = "color: rgb(109,109,109); text-align:center;">Using OSCAR 1 degree ocean surface currents data and Cross-Calibrated Multi-Platform(CCMP)
ocean surface wind data, we found out efficient ways to implement our project.</h3>
<br>
<br>
<br>
</div>
</section>
<section id="infographic" class="pad-sm">
<div class="container">
<div class="row">
<hr style="border:solid 1px black; width:190px;">
<h2 style="color:#000000; text-align:center;">Flux Density</h2><br>
<div class="col-md-6">
<img src="img/divergence.gif" width="100%" height="100%">
</div>
<div class="col-md-6">
<br>
<br>
<font size = "3pt"><p align = "justify"><font color = "black">In order to find out where ocean currents and ocean winds accumulate,
we calculated the divergence of both vector data. Calculating the divergence of the vector field numerically,
we could figure out points where the value is high, and points where the value is low.
We assumed points which have a low divergence value as points that have a high possibility for oceanic garbage to accumulate,
since low divergence means the vectors gather at that point.
The animation shown on the left is the divergence of ocean currents plotted on the world map, based on data from 1992 to 2019, measured every 5 days.</font>
</font></p></div>
</div>
<br>
<br>
<br>
<pre><p>
import netCDF4
import numpy as np
import matplotlib.pyplot as plt
def divergence(f):
num_dims = len(f)
return np.ufunc.reduce(np.add, [np.gradient(f[i], axis=i) for i in range(num_dims)])
for i in range(1992, 2020):
data = netCDF4.Dataset('data\\world_oscar_vel_5d%d.nc.gz' %(i), format = 'NETCDF4')
for j in range(data.variables['time'].size):
uf = data.variables['uf'][j][0]
vf = data.variables['vf'][j][0]
Fx = np.array(uf[:][::-1])
Fy = np.array(vf[:][::-1])
F = [Fx, Fy]
g = divergence(F)
plt.figure(figsize=(9, 4))
plt.pcolormesh(g)
plt.savefig("%d_%d.png" %(i, j+1), format = 'png')</p></pre>
<br>
<div class="row">
<hr style="border:solid 1px black; width:330px;">
<h2 style="color:#000000; text-align:center;">Accumulation of Ocean Current</h2><br>
<div class="col-md-6">
<font size = "3pt"><p align = "justify"><font color = "black">
To clean up the ocean efficiently, knowing how is not enough. Knowing where to clean is vital,
so we have to come up with a way to calculate optimal position to clean. We used the ocean current data by NASA to solve the problem.
The data contains information about speed of current in a specific position. We spliced the ocean current data to multiple chunks,
and calculated relationships between each chunks, and made a network describing the relationship.
Using in-degree centrality and out-degree centrality, the algorithm calculated which point is the source — where current diverges,
and where is the sink — where current converges. Then, using max-flow min-cut theorem, we calculated maximum flow between sources and sinks,
yielding points which block the flow between sources and sinks.</font></p></font>
</div>
<div class="col-md-6">
<img src="img/algo1.jpg" width="100%" height="100%">
</div>
</div>
<br>
<br>
<pre><p>
import netCDF4
import numpy as np
import matplotlib.pyplot as plt
import networkx as nx
def polar_deg(x, y):
z = x * 1j + y
return np.angle(z)
def grid_coord(x, y):
return (x - x % 5, y - y % 5)
def in_range(x, y):
return 0 <= x < 360 and 0 <= y < 140
dataset = netCDF4.Dataset('./datasets/world_oscar_vel_5d2019.nc.gz')
uf = dataset.variables['uf'][0,0].data
vf = dataset.variables['vf'][0,0].data
graph = nx.DiGraph()
for x in range(0, 360, 5):
for y in range(0, 140, 5):
graph.add_node((x, y))
deg = polar_deg(uf, vf)
deg = np.swapaxes(deg, 1, 0)
dx = [5, 5, 0, -5, -5, -5, 0, 5]
dy = [0, -5, -5, -5, 0, 5, 5, 5]
edges_dict = dict()
for x in range(0, 360):
for y in range(0, 140):
if np.isnan(deg[x,y]):
continue
for i in range(8):
if 2 * np.pi / 8 * i <= deg[x,y] < 2 * np.pi * (i + 1):
gridx, gridy = grid_coord(x, y)
nextx = gridx + dx[i]
nexty = gridy + dy[i]
if not in_range(nextx, nexty):
continue
if ((gridx, gridy), (nextx, nexty)) not in edges_dict:
edges_dict[((gridx, gridy), (nextx, nexty))] = 1
else:
edges_dict[((gridx, gridy), (nextx, nexty))] += 1
ebunch = [key + ({'capacity': val},) for key, val in edges_dict.items()]
print(ebunch)
graph.add_edges_from(ebunch)
centrality = nx.algorithms.in_degree_centrality(graph)
print(centrality)
print(max(centrality.keys()))
centrality_map = np.zeros((360, 140))
for key, val in centrality.items():
for x in range(key[0], key[0] + 5):
for y in range(key[1], key[1] + 5):
centrality_map[x][y] = val
plt.figure(figsize=(18, 8))
plt.imshow(centrality_map.swapaxes(1, 0))
plt.show() </p></pre>
<br>
<div class="row">
<hr style="border:solid 1px black; width:330px;">
<h2 style="color:#000000; text-align:center;">Ocean & Air Current Path Tracker</h2><br><br>
<div class="col-md-6">
<br>
<img src="img/algo2.png" width="100%" height="100%">
</div>
<div class="col-md-6">
<font size = "3pt"><br><p align = "justify"><font color = "black">
Since we have the data of velocity of ocean currents, we can get the location of certain particle on the current, by integrating the velocity of the route. To get the route, with discrete sensor data, we first find the closest datum at certain point. If datum found, add the velocity multiplied with constant, changable since we just care about the route not the actual position. This process ends when the particle arrives at the continent or the speed of the flow is too slow.
For air currents, we applied same mechanism. After finding the particle's route according to air currents and ocean currents, we add up those two and find what route would particles follow considering the air currents and ocean currents. We assumed that the particle moves completely same direction and speed with the velocity vector.
</font></p></font>
<br>
<br>
</div>
<font size = "3pt"><br><p align = "justify"><font color = "black">
As the result, this algorithm finds the destination of the solar powered boat with the certain start point P by adding up the velocity.
Calculating the u, v of the velocity vector with opposite sign would give the inverse solution of the route, meaning that with given destination Q, we can simply find where should we launch our solar powered boat to reach the destination.
As solar powered boat would follow ocean currents when launched, and follow both when returning, we can use destination Q and use inverse operation with data of ocean currents, and use that destiation Q as the start point with data of all currents to guess where the solar powered boat arrives.
</font></p></font>
<br>
<br>
<pre><p>
from netCDF4 import Dataset
import numpy as np
dset1 = Dataset('pentad_20111227_v11l35flk.nc.gz.nc4')
dset2 = Dataset('world_oscar_vel_5d2019.nc.gz.nc4')
"""Read the `uf` data to numpy array."""
uAir = dset1.variables['uwnd'][0].data * 0.00152597204
vAir = dset1.variables['vwnd'][0].data * 0.00152597204
uWater = dset2.variables['uf'][0][0].data
vWater = dset2.variables['vf'][0][0].data
uAir[uAir < -50] = np.nan
uAir[uAir > 50] = np.nan
vAir[vAir < -50] = np.nan
vAir[vAir > 50] = np.nan
lonAir = dset1.variables['lon']
latAir = dset1.variables['lat']
lonWater = dset2.variables['longitude']
latWater = dset2.variables['latitude']
import matplotlib.pyplot as plt
import random as rd
factor = 0.1 #constant
def findNext(latitude, longitude): #Latitude, Longitude
global factor, uAir, vAir, uWater, vWater, lonAir, latAir, lonWater, latWater
latAir2 = gridAir(latitude, latAir[0]) % len(latAir)
lonAir2 = gridAir(longitude, lonAir[0]) % len(lonAir)
uAir2 = uAir[latAir2][lonAir2]
vAir2 = vAir[latAir2][lonAir2]
if np.isnan(uAir2) or np.isnan(vAir2):
return False
latWater2 = len(latWater) - 1 - gridWater(latitude, latWater[0]) % len(latWater)
lonWater2 = gridWater(longitude, lonWater[0]) % len(lonWater)
uWater2 = uWater[latWater2][lonWater2]
vWater2 = vWater[latWater2][lonWater2]
if np.isnan(uWater2) or np.isnan(vWater2):
return False
finPhi = latitude + factor * (vAir2 + vWater2)
finTheta = longitude + factor * (uAir2 + uWater2)
if finTheta < lonAir[0]:
amount = lonAir[0] - finTheta
finTheta = lonAir[-1] - amount
if finTheta > lonAir[-1]:
amount = finTheta - lonAir[-1]
finTheta = lonAir[0] + amount
return (finPhi, finTheta)
def gridAir(A, org):
return 4 * int(round(4*(A % 1)) / 4 + np.floor(A) - org)
def gridWater(A, org):
return int(round(A - 0.5) + 0.5 - org)
def findStart():
global uAir, vAir, uWater, vWater, lonAir, latAir, lonWater, latWater
longitude = rd.uniform(lonAir[0], lonAir[-1])
latitude = rd.uniform(latAir[0], latAir[-1])
Theta = gridAir(latitude, latAir[0]) % len(latAir)
Phi = gridAir(longitude, lonAir[0]) % len(lonAir)
while np.isnan(uAir[Theta][Phi]):
longitude = rd.uniform(lonAir[0], lonAir[-1])
latitude = rd.uniform(latAir[0], latAir[-1])
Theta = gridAir(latitude, latAir[0]) % len(latAir)
Phi = gridAir(longitude, lonAir[0]) % len(lonAir)
return latitude, longitude
def euclidD(A, B):
return pow((A[0] - B[0])**2 + (A[1] - B[1])**2, 0.5)
plt.figure(figsize=(12.8, 9.6))
plt.quiver(lonAir[::8], latAir[::8], uAir[::8, ::8], vAir[::8, ::8], color = "#000000", scale = 3, scale_units = 'x')
plt.quiver(lonWater[::2] - 20.5, latWater[::2], np.c_[uWater[::2, -20::2], uWater[::2, 0:340:2]], np.c_[vWater[::2, -20::2], vWater[::2, 0:340:2]], color = "#0000FF", scale = 3, scale_units = 'x')
for k in range(1000):
prevposition = findStart() # lat & lon
routeX = [prevposition[1]] # lon
routeY = [prevposition[0]] # lat
print(f"Start Point : {prevposition}")
for i in range(1000) :
position = findNext(prevposition[0], prevposition[1])
if not position or euclidD(position, prevposition) <= 1e-5:
break
routeY.append(position[0]) # lat
routeX.append(position[1]) # lon
prevposition = position
plt.scatter(routeX, routeY, 0.1)
plt.show()
print("E")
</p></pre>
<br>
<div class="container">
<hr style="border:solid 1px black; width:170px;">
<h2 style="color:#000000; text-align:center;">Tracking Paths</h2>
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-6">
<font size = "3pt"><br><p align = "center"><font color = "black">
This is a console window for algorithm explained in the 'Ocean & Air Current Path Tracker' section. Read the following instructions, and you can track the route of OCEANUS sailing in the ocean!
</font></p></font>
</div>
<div class="col-md-3"></div>
</div>
<h3 style="color:#8C001A; text-align:center;">Instructions</h3>
<div class="row">
<div class="col-md-2"></div>
<div class="col-md-8">
<font size = "3pt"><p align = "left"><font color = "#8C001A">
1. Click 'run', and input latitude/longitude values, which will be the start location of the journey.<br>
2. An image will be shown, which is the route of a boat which started sailing at that location.<br>
3. The image will only automatically show for one time after refreshing the website.<br>
4. Still, if you want to show the image, click on the file button on the left and click "Route.png"
</font></p></font>
</div>
<div class="col-md-2"></div>
</div>
<br>
<iframe height="600px" width="100%" src="https://repl.it/@sjhbread/OceanAndAirCurrentPathTracker?lite=true" scrolling="no" frameborder="no" allowtransparency="true"
allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals"></iframe>
</div>
</section>
<footer>
<div class="container">
<div class="row">
<div class="col-sm-8 margin-20">
<ul class="list-inline social">
<li>Dohyoung Ko | Youngsang Ryu | Jaewan Park | Juneha Park | Ryang Sohn | Youngjin Song | Hojun Yoo</li>
<li>HANA ACADEMY SEOUL 2019</li>
</ul>
</div>
<div class="col-sm-4 text-right">
<p><small>Copyright © 2014. All rights reserved. <br>
Created by <a href="http://visualsoldiers.com">Visual Soldiers</a></small></p>
</div>
</div>
</div>
</footer>
<!-- Javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/jquery-1.11.0.min.js"><\/script>')</script>
<script src="js/wow.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>