-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsedimentation.html
More file actions
1418 lines (1335 loc) · 81.1 KB
/
sedimentation.html
File metadata and controls
1418 lines (1335 loc) · 81.1 KB
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
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Concepción Shelf Sedimentation Analysis - 100m Depth Zone</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
.gradient-bg {
background: linear-gradient(135deg, #0f172a 0%, #1e293b 30%, #334155 60%, #475569 100%);
}
.sediment-pattern {
background-image:
radial-gradient(circle at 20% 80%, rgba(168, 85, 247, 0.1) 2px, transparent 2px),
radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 2px, transparent 2px),
radial-gradient(circle at 40% 40%, rgba(34, 197, 94, 0.1) 1px, transparent 1px);
background-size: 60px 60px, 80px 80px, 40px 40px;
}
.process-card {
transition: all 0.3s ease;
backdrop-filter: blur(15px);
}
.process-card:hover {
transform: translateY(-8px);
box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}
.data-input {
background: rgba(255,255,255,0.95);
backdrop-filter: blur(10px);
}
.depth-indicator {
background: linear-gradient(to bottom, #3b82f6, #1e40af, #1e3a8a);
}
.sediment-layer {
transition: all 0.5s ease;
}
</style>
</head>
<body class="min-h-screen gradient-bg sediment-pattern">
<!-- Header -->
<header class="bg-slate-900/80 backdrop-blur-md border-b border-slate-700/50">
<div class="container mx-auto px-6 py-4">
<div class="flex items-center justify-between">
<div class="flex items-center space-x-4">
<div class="w-14 h-14 bg-gradient-to-br from-blue-500 to-purple-600 rounded-xl flex items-center justify-center">
<span class="text-white text-2xl">🏔️</span>
</div>
<div>
<h1 class="text-3xl font-bold text-white">Concepción Shelf Sedimentation</h1>
<p class="text-slate-300 text-sm">Continental Shelf Sediment Dynamics Analysis (0-100m depth) by Claudio Iturra</p>
</div>
</div>
<div class="text-right text-white">
<p class="text-sm font-medium">Study Area: 36°S - 37°S, 73°W - 74°W</p>
<p class="text-xs text-slate-300">Shelf Width: ~15km | Max Depth: 100m</p>
<p class="text-xs text-slate-300">Sediment Sources: Biobío River, Coastal Erosion, Marine Production</p>
</div>
</div>
</div>
</header>
<div class="container mx-auto px-6 py-8">
<!-- Navigation Tabs -->
<div class="mb-8">
<div class="flex flex-wrap gap-2 bg-slate-800/60 backdrop-blur-md rounded-xl p-3 border border-slate-700/50">
<button onclick="showSection('overview')" id="tab-overview" class="tab-btn px-5 py-3 rounded-lg text-white font-medium transition-all bg-slate-700/80 shadow-lg">
Overview
</button>
<button onclick="showSection('sources')" id="tab-sources" class="tab-btn px-5 py-3 rounded-lg text-white font-medium transition-all hover:bg-slate-700/50">
Sediment Sources
</button>
<button onclick="showSection('transport')" id="tab-transport" class="tab-btn px-5 py-3 rounded-lg text-white font-medium transition-all hover:bg-slate-700/50">
Transport Processes
</button>
<button onclick="showSection('deposition')" id="tab-deposition" class="tab-btn px-5 py-3 rounded-lg text-white font-medium transition-all hover:bg-slate-700/50">
Deposition Patterns
</button>
<button onclick="showSection('calculator')" id="tab-calculator" class="tab-btn px-5 py-3 rounded-lg text-white font-medium transition-all hover:bg-slate-700/50">
Rate Calculator
</button>
<button onclick="showSection('modeling')" id="tab-modeling" class="tab-btn px-5 py-3 rounded-lg text-white font-medium transition-all hover:bg-slate-700/50">
3D Modeling
</button>
</div>
</div>
<!-- Overview Section -->
<div id="section-overview" class="section">
<!-- Key Metrics Dashboard -->
<div class="grid md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
<div class="process-card bg-slate-800/70 backdrop-blur-md rounded-xl p-6 border border-slate-700/50">
<div class="flex items-center mb-4">
<div class="w-12 h-12 bg-gradient-to-br from-blue-500 to-cyan-500 rounded-lg flex items-center justify-center mr-3">
<span class="text-white text-xl">📊</span>
</div>
<h3 class="text-lg font-bold text-white">Average Rate</h3>
</div>
<p class="text-3xl font-bold text-blue-400 mb-2">2.8 mm/yr</p>
<p class="text-slate-300 text-sm">Holocene average across shelf</p>
</div>
<div class="process-card bg-slate-800/70 backdrop-blur-md rounded-xl p-6 border border-slate-700/50">
<div class="flex items-center mb-4">
<div class="w-12 h-12 bg-gradient-to-br from-green-500 to-emerald-500 rounded-lg flex items-center justify-center mr-3">
<span class="text-white text-xl">🏞️</span>
</div>
<h3 class="text-lg font-bold text-white">Terrigenous Input</h3>
</div>
<p class="text-3xl font-bold text-green-400 mb-2">75%</p>
<p class="text-slate-300 text-sm">River and coastal erosion</p>
</div>
<div class="process-card bg-slate-800/70 backdrop-blur-md rounded-xl p-6 border border-slate-700/50">
<div class="flex items-center mb-4">
<div class="w-12 h-12 bg-gradient-to-br from-purple-500 to-pink-500 rounded-lg flex items-center justify-center mr-3">
<span class="text-white text-xl">🦠</span>
</div>
<h3 class="text-lg font-bold text-white">Biogenic Input</h3>
</div>
<p class="text-3xl font-bold text-purple-400 mb-2">25%</p>
<p class="text-slate-300 text-sm">Marine productivity</p>
</div>
<div class="process-card bg-slate-800/70 backdrop-blur-md rounded-xl p-6 border border-slate-700/50">
<div class="flex items-center mb-4">
<div class="w-12 h-12 bg-gradient-to-br from-orange-500 to-red-500 rounded-lg flex items-center justify-center mr-3">
<span class="text-white text-xl">⚡</span>
</div>
<h3 class="text-lg font-bold text-white">Seasonal Variation</h3>
</div>
<p class="text-3xl font-bold text-orange-400 mb-2">±40%</p>
<p class="text-slate-300 text-sm">Winter vs summer rates</p>
</div>
</div>
<!-- Depth Profile Visualization -->
<div class="grid lg:grid-cols-3 gap-6 mb-8">
<div class="lg:col-span-2 bg-slate-800/70 backdrop-blur-md rounded-xl p-6 border border-slate-700/50">
<h3 class="text-2xl font-bold text-white mb-4">Sedimentation Rate vs Depth Profile</h3>
<canvas id="depthProfileChart" width="600" height="400"></canvas>
</div>
<div class="bg-slate-800/70 backdrop-blur-md rounded-xl p-6 border border-slate-700/50">
<h3 class="text-xl font-bold text-white mb-4">Depth Zone Analysis</h3>
<div class="space-y-4">
<div class="depth-indicator rounded-lg p-4 text-white">
<h4 class="font-semibold mb-2">Inner Shelf (0-30m)</h4>
<p class="text-sm mb-2">High energy, coarse sediments</p>
<p class="text-lg font-bold">4.2 mm/yr</p>
</div>
<div class="bg-gradient-to-b from-blue-600 to-blue-800 rounded-lg p-4 text-white">
<h4 class="font-semibold mb-2">Mid Shelf (30-70m)</h4>
<p class="text-sm mb-2">Moderate energy, mixed sediments</p>
<p class="text-lg font-bold">2.8 mm/yr</p>
</div>
<div class="bg-gradient-to-b from-blue-800 to-slate-800 rounded-lg p-4 text-white">
<h4 class="font-semibold mb-2">Outer Shelf (70-100m)</h4>
<p class="text-sm mb-2">Low energy, fine sediments</p>
<p class="text-lg font-bold">1.5 mm/yr</p>
</div>
</div>
</div>
</div>
<!-- Key Processes Overview -->
<div class="bg-slate-800/70 backdrop-blur-md rounded-xl p-6 border border-slate-700/50">
<h3 class="text-2xl font-bold text-white mb-6">Controlling Oceanographic Processes</h3>
<div class="grid md:grid-cols-2 lg:grid-cols-3 gap-6">
<div class="bg-slate-700/50 rounded-lg p-4">
<h4 class="text-lg font-semibold text-white mb-3">🌊 Current-Driven Transport</h4>
<ul class="text-slate-300 space-y-1 text-sm">
<li>• Peru-Chile Current: Northward transport</li>
<li>• Coastal undercurrent: Southward transport</li>
<li>• Cross-shelf exchange</li>
<li>• Tidal resuspension cycles</li>
</ul>
</div>
<div class="bg-slate-700/50 rounded-lg p-4">
<h4 class="text-lg font-semibold text-white mb-3">💨 Wind-Wave Effects</h4>
<ul class="text-slate-300 space-y-1 text-sm">
<li>• Wave-induced bottom stress</li>
<li>• Seasonal storm resuspension</li>
<li>• Upwelling-driven circulation</li>
<li>• Ekman transport patterns</li>
</ul>
</div>
<div class="bg-slate-700/50 rounded-lg p-4">
<h4 class="text-lg font-semibold text-white mb-3">🏔️ Terrestrial Inputs</h4>
<ul class="text-slate-300 space-y-1 text-sm">
<li>• Biobío River discharge</li>
<li>• Coastal cliff erosion</li>
<li>• Seasonal flood events</li>
<li>• Anthropogenic contributions</li>
</ul>
</div>
<div class="bg-slate-700/50 rounded-lg p-4">
<h4 class="text-lg font-semibold text-white mb-3">🦠 Biological Processes</h4>
<ul class="text-slate-300 space-y-1 text-sm">
<li>• Upwelling-driven productivity</li>
<li>• Diatom blooms and settling</li>
<li>• Bioturbation effects</li>
<li>• Organic matter preservation</li>
</ul>
</div>
<div class="bg-slate-700/50 rounded-lg p-4">
<h4 class="text-lg font-semibold text-white mb-3">🌡️ Seasonal Cycles</h4>
<ul class="text-slate-300 space-y-1 text-sm">
<li>• Winter storm intensification</li>
<li>• Summer upwelling maxima</li>
<li>• River discharge variability</li>
<li>• Temperature stratification</li>
</ul>
</div>
<div class="bg-slate-700/50 rounded-lg p-4">
<h4 class="text-lg font-semibold text-white mb-3">🌀 Climate Variability</h4>
<ul class="text-slate-300 space-y-1 text-sm">
<li>• ENSO impact on sedimentation</li>
<li>• PDO long-term modulation</li>
<li>• Extreme event contributions</li>
<li>• Anthropocene acceleration</li>
</ul>
</div>
</div>
</div>
</div>
<!-- Sediment Sources Section -->
<div id="section-sources" class="section hidden">
<div class="grid lg:grid-cols-2 gap-6 mb-6">
<div class="bg-slate-800/70 backdrop-blur-md rounded-xl p-6 border border-slate-700/50">
<h3 class="text-xl font-bold text-white mb-4">Sediment Source Contributions</h3>
<canvas id="sourceChart" width="400" height="300"></canvas>
</div>
<div class="bg-slate-800/70 backdrop-blur-md rounded-xl p-6 border border-slate-700/50">
<h3 class="text-xl font-bold text-white mb-4">Source Parameters</h3>
<div class="space-y-4">
<div>
<label class="block text-white text-sm font-medium mb-2">Biobío River Discharge (m³/s)</label>
<input type="range" id="riverDischarge" min="200" max="2000" value="900" onchange="updateSources()" class="w-full">
<div class="flex justify-between text-xs text-slate-300 mt-1">
<span>200</span>
<span>1100</span>
<span>2000</span>
</div>
</div>
<div>
<label class="block text-white text-sm font-medium mb-2">Coastal Erosion Rate (mm/yr)</label>
<input type="range" id="erosionRate" min="0.5" max="5" step="0.1" value="2.1" onchange="updateSources()" class="w-full">
<div class="flex justify-between text-xs text-slate-300 mt-1">
<span>0.5</span>
<span>2.75</span>
<span>5.0</span>
</div>
</div>
<div>
<label class="block text-white text-sm font-medium mb-2">Marine Productivity (gC/m²/day)</label>
<input type="range" id="productivity" min="0.5" max="3" step="0.1" value="1.8" onchange="updateSources()" class="w-full">
<div class="flex justify-between text-xs text-slate-300 mt-1">
<span>0.5</span>
<span>1.75</span>
<span>3.0</span>
</div>
</div>
</div>
</div>
</div>
<div class="grid md:grid-cols-3 gap-6 mb-6">
<div class="bg-slate-800/70 backdrop-blur-md rounded-xl p-6 border border-slate-700/50">
<h3 class="text-xl font-bold text-white mb-4">Terrigenous Sources</h3>
<div class="space-y-4">
<div class="bg-slate-700/50 rounded-lg p-4">
<h4 class="font-semibold text-white mb-2">Biobío River</h4>
<p class="text-2xl font-bold text-blue-400" id="riverContribution">45%</p>
<p class="text-sm text-slate-300">Suspended sediment load: <span id="riverLoad">2.1 Mt/yr</span></p>
</div>
<div class="bg-slate-700/50 rounded-lg p-4">
<h4 class="font-semibold text-white mb-2">Coastal Erosion</h4>
<p class="text-2xl font-bold text-green-400" id="erosionContribution">30%</p>
<p class="text-sm text-slate-300">Cliff retreat: <span id="cliffRetreat">2.1 mm/yr</span></p>
</div>
<div class="bg-slate-700/50 rounded-lg p-4">
<h4 class="font-semibold text-white mb-2">Atmospheric Input</h4>
<p class="text-2xl font-bold text-purple-400">5%</p>
<p class="text-sm text-slate-300">Dust and volcanic ash</p>
</div>
</div>
</div>
<div class="bg-slate-800/70 backdrop-blur-md rounded-xl p-6 border border-slate-700/50">
<h3 class="text-xl font-bold text-white mb-4">Biogenic Sources</h3>
<div class="space-y-4">
<div class="bg-slate-700/50 rounded-lg p-4">
<h4 class="font-semibold text-white mb-2">Diatom Production</h4>
<p class="text-2xl font-bold text-cyan-400" id="diatomContribution">15%</p>
<p class="text-sm text-slate-300">Upwelling-driven blooms</p>
</div>
<div class="bg-slate-700/50 rounded-lg p-4">
<h4 class="font-semibold text-white mb-2">Carbonate Production</h4>
<p class="text-2xl font-bold text-yellow-400">3%</p>
<p class="text-sm text-slate-300">Foraminifera and mollusks</p>
</div>
<div class="bg-slate-700/50 rounded-lg p-4">
<h4 class="font-semibold text-white mb-2">Organic Matter</h4>
<p class="text-2xl font-bold text-orange-400" id="organicContribution">2%</p>
<p class="text-sm text-slate-300">Marine and terrestrial</p>
</div>
</div>
</div>
<div class="bg-slate-800/70 backdrop-blur-md rounded-xl p-6 border border-slate-700/50">
<h3 class="text-xl font-bold text-white mb-4">Grain Size Distribution</h3>
<div class="space-y-3">
<div class="flex justify-between items-center">
<span class="text-white">Clay (<4μm):</span>
<span class="font-bold text-blue-400" id="clayPercent">25%</span>
</div>
<div class="flex justify-between items-center">
<span class="text-white">Silt (4-63μm):</span>
<span class="font-bold text-green-400" id="siltPercent">45%</span>
</div>
<div class="flex justify-between items-center">
<span class="text-white">Fine Sand (63-250μm):</span>
<span class="font-bold text-yellow-400" id="fineSandPercent">22%</span>
</div>
<div class="flex justify-between items-center">
<span class="text-white">Medium Sand (250-500μm):</span>
<span class="font-bold text-orange-400" id="medSandPercent">6%</span>
</div>
<div class="flex justify-between items-center">
<span class="text-white">Coarse Sand (>500μm):</span>
<span class="font-bold text-red-400" id="coarseSandPercent">2%</span>
</div>
</div>
</div>
</div>
<div class="bg-slate-800/70 backdrop-blur-md rounded-xl p-6 border border-slate-700/50">
<h3 class="text-xl font-bold text-white mb-4">Seasonal Source Variability</h3>
<canvas id="seasonalSourceChart" width="800" height="400"></canvas>
</div>
</div>
<!-- Transport Processes Section -->
<div id="section-transport" class="section hidden">
<div class="grid lg:grid-cols-2 gap-6 mb-6">
<div class="bg-slate-800/70 backdrop-blur-md rounded-xl p-6 border border-slate-700/50">
<h3 class="text-xl font-bold text-white mb-4">Transport Mechanisms</h3>
<div class="space-y-4">
<div>
<label class="block text-white text-sm font-medium mb-2">Current Velocity (cm/s)</label>
<input type="range" id="currentVelocity" min="5" max="50" value="18" onchange="updateTransport()" class="w-full">
<div class="flex justify-between text-xs text-slate-300 mt-1">
<span>5</span>
<span>27.5</span>
<span>50</span>
</div>
</div>
<div>
<label class="block text-white text-sm font-medium mb-2">Wave Height (m)</label>
<input type="range" id="waveHeight" min="0.5" max="6" step="0.1" value="2.5" onchange="updateTransport()" class="w-full">
<div class="flex justify-between text-xs text-slate-300 mt-1">
<span>0.5</span>
<span>3.25</span>
<span>6.0</span>
</div>
</div>
<div>
<label class="block text-white text-sm font-medium mb-2">Bottom Roughness (cm)</label>
<input type="range" id="bottomRoughness" min="0.1" max="5" step="0.1" value="1.2" onchange="updateTransport()" class="w-full">
<div class="flex justify-between text-xs text-slate-300 mt-1">
<span>0.1</span>
<span>2.55</span>
<span>5.0</span>
</div>
</div>
</div>
</div>
<div class="bg-slate-800/70 backdrop-blur-md rounded-xl p-6 border border-slate-700/50">
<h3 class="text-xl font-bold text-white mb-4">Transport Capacity</h3>
<div class="space-y-4">
<div class="bg-slate-700/50 rounded-lg p-4">
<h4 class="font-semibold text-white mb-2">Suspended Load</h4>
<p class="text-2xl font-bold text-blue-400" id="suspendedLoad">1.2 kg/m³</p>
<p class="text-sm text-slate-300">Fine particles in water column</p>
</div>
<div class="bg-slate-700/50 rounded-lg p-4">
<h4 class="font-semibold text-white mb-2">Bedload Transport</h4>
<p class="text-2xl font-bold text-green-400" id="bedloadTransport">0.08 kg/m/s</p>
<p class="text-sm text-slate-300">Bottom sediment movement</p>
</div>
<div class="bg-slate-700/50 rounded-lg p-4">
<h4 class="font-semibold text-white mb-2">Critical Shear Stress</h4>
<p class="text-2xl font-bold text-purple-400" id="criticalShear">0.15 N/m²</p>
<p class="text-sm text-slate-300">Threshold for erosion</p>
</div>
</div>
</div>
</div>
<div class="grid md:grid-cols-2 gap-6 mb-6">
<div class="bg-slate-800/70 backdrop-blur-md rounded-xl p-6 border border-slate-700/50">
<h3 class="text-xl font-bold text-white mb-4">Current-Driven Transport</h3>
<canvas id="currentTransportChart" width="400" height="300"></canvas>
</div>
<div class="bg-slate-800/70 backdrop-blur-md rounded-xl p-6 border border-slate-700/50">
<h3 class="text-xl font-bold text-white mb-4">Wave-Induced Transport</h3>
<canvas id="waveTransportChart" width="400" height="300"></canvas>
</div>
</div>
<div class="bg-slate-800/70 backdrop-blur-md rounded-xl p-6 border border-slate-700/50">
<h3 class="text-xl font-bold text-white mb-4">Transport Process Analysis</h3>
<div class="grid md:grid-cols-4 gap-4">
<div class="bg-slate-700/50 rounded-lg p-4 text-center">
<h4 class="font-semibold text-white mb-2">Advection</h4>
<p class="text-2xl font-bold text-blue-400" id="advectionRate">65%</p>
<p class="text-xs text-slate-300">Current-driven transport</p>
</div>
<div class="bg-slate-700/50 rounded-lg p-4 text-center">
<h4 class="font-semibold text-white mb-2">Diffusion</h4>
<p class="text-2xl font-bold text-green-400" id="diffusionRate">20%</p>
<p class="text-xs text-slate-300">Turbulent mixing</p>
</div>
<div class="bg-slate-700/50 rounded-lg p-4 text-center">
<h4 class="font-semibold text-white mb-2">Settling</h4>
<p class="text-2xl font-bold text-purple-400" id="settlingRate">12%</p>
<p class="text-xs text-slate-300">Gravitational deposition</p>
</div>
<div class="bg-slate-700/50 rounded-lg p-4 text-center">
<h4 class="font-semibold text-white mb-2">Resuspension</h4>
<p class="text-2xl font-bold text-orange-400" id="resuspensionRate">3%</p>
<p class="text-xs text-slate-300">Wave-induced erosion</p>
</div>
</div>
</div>
</div>
<!-- Deposition Patterns Section -->
<div id="section-deposition" class="section hidden">
<div class="grid lg:grid-cols-2 gap-6 mb-6">
<div class="bg-slate-800/70 backdrop-blur-md rounded-xl p-6 border border-slate-700/50">
<h3 class="text-xl font-bold text-white mb-4">Spatial Deposition Patterns</h3>
<canvas id="spatialDepositionChart" width="400" height="300"></canvas>
</div>
<div class="bg-slate-800/70 backdrop-blur-md rounded-xl p-6 border border-slate-700/50">
<h3 class="text-xl font-bold text-white mb-4">Deposition Controls</h3>
<div class="space-y-4">
<div>
<label class="block text-white text-sm font-medium mb-2">Water Depth (m)</label>
<input type="range" id="waterDepth" min="10" max="100" value="50" onchange="updateDeposition()" class="w-full">
<div class="flex justify-between text-xs text-slate-300 mt-1">
<span>10</span>
<span>55</span>
<span>100</span>
</div>
</div>
<div>
<label class="block text-white text-sm font-medium mb-2">Distance from Shore (km)</label>
<input type="range" id="shoreDistance" min="1" max="15" value="8" onchange="updateDeposition()" class="w-full">
<div class="flex justify-between text-xs text-slate-300 mt-1">
<span>1</span>
<span>8</span>
<span>15</span>
</div>
</div>
<div>
<label class="block text-white text-sm font-medium mb-2">Bottom Slope (degrees)</label>
<input type="range" id="bottomSlope" min="0.1" max="5" step="0.1" value="1.2" onchange="updateDeposition()" class="w-full">
<div class="flex justify-between text-xs text-slate-300 mt-1">
<span>0.1</span>
<span>2.55</span>
<span>5.0</span>
</div>
</div>
</div>
</div>
</div>
<div class="grid md:grid-cols-3 gap-6 mb-6">
<div class="bg-slate-800/70 backdrop-blur-md rounded-xl p-6 border border-slate-700/50">
<h3 class="text-xl font-bold text-white mb-4">Deposition Rates by Zone</h3>
<div class="space-y-3">
<div class="flex justify-between items-center">
<span class="text-white">Nearshore (0-20m):</span>
<span class="font-bold text-blue-400" id="nearshoreRate">5.2 mm/yr</span>
</div>
<div class="flex justify-between items-center">
<span class="text-white">Inner Shelf (20-50m):</span>
<span class="font-bold text-green-400" id="innerShelfRate">3.1 mm/yr</span>
</div>
<div class="flex justify-between items-center">
<span class="text-white">Mid Shelf (50-80m):</span>
<span class="font-bold text-yellow-400" id="midShelfRate">1.8 mm/yr</span>
</div>
<div class="flex justify-between items-center">
<span class="text-white">Outer Shelf (80-100m):</span>
<span class="font-bold text-purple-400" id="outerShelfRate">0.9 mm/yr</span>
</div>
</div>
</div>
<div class="bg-slate-800/70 backdrop-blur-md rounded-xl p-6 border border-slate-700/50">
<h3 class="text-xl font-bold text-white mb-4">Sediment Accumulation</h3>
<div class="space-y-4">
<div class="bg-slate-700/50 rounded-lg p-4">
<h4 class="font-semibold text-white mb-2">Total Accumulation</h4>
<p class="text-2xl font-bold text-blue-400" id="totalAccumulation">2.8 mm/yr</p>
<p class="text-sm text-slate-300">Shelf-wide average</p>
</div>
<div class="bg-slate-700/50 rounded-lg p-4">
<h4 class="font-semibold text-white mb-2">Net Deposition</h4>
<p class="text-2xl font-bold text-green-400" id="netDeposition">2.1 mm/yr</p>
<p class="text-sm text-slate-300">After erosion losses</p>
</div>
</div>
</div>
<div class="bg-slate-800/70 backdrop-blur-md rounded-xl p-6 border border-slate-700/50">
<h3 class="text-xl font-bold text-white mb-4">Preservation Efficiency</h3>
<div class="space-y-4">
<div class="bg-slate-700/50 rounded-lg p-4">
<h4 class="font-semibold text-white mb-2">Burial Efficiency</h4>
<p class="text-2xl font-bold text-purple-400" id="burialEfficiency">75%</p>
<p class="text-sm text-slate-300">Sediment preservation</p>
</div>
<div class="bg-slate-700/50 rounded-lg p-4">
<h4 class="font-semibold text-white mb-2">Reworking Index</h4>
<p class="text-2xl font-bold text-orange-400" id="reworkingIndex">0.25</p>
<p class="text-sm text-slate-300">Sediment mobility</p>
</div>
</div>
</div>
</div>
<div class="bg-slate-800/70 backdrop-blur-md rounded-xl p-6 border border-slate-700/50">
<h3 class="text-xl font-bold text-white mb-4">Temporal Deposition Variability</h3>
<canvas id="temporalDepositionChart" width="800" height="400"></canvas>
</div>
</div>
<!-- Rate Calculator Section -->
<div id="section-calculator" class="section hidden">
<div class="grid lg:grid-cols-2 gap-6 mb-6">
<div class="bg-slate-800/70 backdrop-blur-md rounded-xl p-6 border border-slate-700/50">
<h3 class="text-xl font-bold text-white mb-4">Sedimentation Rate Calculator</h3>
<div class="space-y-4">
<div class="grid md:grid-cols-2 gap-4">
<div>
<label class="block text-white text-sm font-medium mb-2">Sediment Supply (kg/m²/yr)</label>
<input type="number" id="sedimentSupply" value="2.5" step="0.1" onchange="calculateSedimentationRate()" class="w-full p-3 rounded-lg data-input border-0">
</div>
<div>
<label class="block text-white text-sm font-medium mb-2">Bulk Density (g/cm³)</label>
<input type="number" id="bulkDensity" value="1.6" step="0.1" onchange="calculateSedimentationRate()" class="w-full p-3 rounded-lg data-input border-0">
</div>
</div>
<div class="grid md:grid-cols-2 gap-4">
<div>
<label class="block text-white text-sm font-medium mb-2">Porosity (%)</label>
<input type="number" id="porosity" value="65" step="1" onchange="calculateSedimentationRate()" class="w-full p-3 rounded-lg data-input border-0">
</div>
<div>
<label class="block text-white text-sm font-medium mb-2">Compaction Factor</label>
<input type="number" id="compactionFactor" value="0.85" step="0.01" onchange="calculateSedimentationRate()" class="w-full p-3 rounded-lg data-input border-0">
</div>
</div>
<div class="grid md:grid-cols-2 gap-4">
<div>
<label class="block text-white text-sm font-medium mb-2">Erosion Rate (%/yr)</label>
<input type="number" id="erosionRate" value="15" step="1" onchange="calculateSedimentationRate()" class="w-full p-3 rounded-lg data-input border-0">
</div>
<div>
<label class="block text-white text-sm font-medium mb-2">Bioturbation Depth (cm)</label>
<input type="number" id="bioturbationDepth" value="8" step="1" onchange="calculateSedimentationRate()" class="w-full p-3 rounded-lg data-input border-0">
</div>
</div>
<button onclick="calculateSedimentationRate()" class="w-full bg-blue-600 hover:bg-blue-700 text-white font-bold py-3 px-6 rounded-lg transition-colors">
Calculate Sedimentation Rate
</button>
</div>
</div>
<div class="bg-slate-800/70 backdrop-blur-md rounded-xl p-6 border border-slate-700/50">
<h3 class="text-xl font-bold text-white mb-4">Calculation Results</h3>
<div class="space-y-4">
<div class="bg-slate-700/50 rounded-lg p-4">
<h4 class="font-semibold text-white mb-2">Gross Sedimentation Rate</h4>
<p class="text-3xl font-bold text-blue-400" id="grossSedRate">3.2 mm/yr</p>
<p class="text-sm text-slate-300">Before erosion and compaction</p>
</div>
<div class="bg-slate-700/50 rounded-lg p-4">
<h4 class="font-semibold text-white mb-2">Net Sedimentation Rate</h4>
<p class="text-3xl font-bold text-green-400" id="netSedRate">2.7 mm/yr</p>
<p class="text-sm text-slate-300">After erosion losses</p>
</div>
<div class="bg-slate-700/50 rounded-lg p-4">
<h4 class="font-semibold text-white mb-2">Compacted Rate</h4>
<p class="text-3xl font-bold text-purple-400" id="compactedRate">2.3 mm/yr</p>
<p class="text-sm text-slate-300">Final burial rate</p>
</div>
<div class="bg-slate-700/50 rounded-lg p-4">
<h4 class="font-semibold text-white mb-2">Mass Accumulation Rate</h4>
<p class="text-3xl font-bold text-orange-400" id="massAccumRate">3.7 g/cm²/kyr</p>
<p class="text-sm text-slate-300">Dry weight basis</p>
</div>
</div>
</div>
</div>
<div class="grid md:grid-cols-2 gap-6 mb-6">
<div class="bg-slate-800/70 backdrop-blur-md rounded-xl p-6 border border-slate-700/50">
<h3 class="text-xl font-bold text-white mb-4">Sensitivity Analysis</h3>
<canvas id="sensitivityChart" width="400" height="300"></canvas>
</div>
<div class="bg-slate-800/70 backdrop-blur-md rounded-xl p-6 border border-slate-700/50">
<h3 class="text-xl font-bold text-white mb-4">Parameter Influence</h3>
<div class="space-y-3">
<div class="flex justify-between items-center">
<span class="text-white">Sediment Supply:</span>
<span class="font-bold text-blue-400">45%</span>
</div>
<div class="flex justify-between items-center">
<span class="text-white">Erosion Rate:</span>
<span class="font-bold text-red-400">25%</span>
</div>
<div class="flex justify-between items-center">
<span class="text-white">Bulk Density:</span>
<span class="font-bold text-green-400">15%</span>
</div>
<div class="flex justify-between items-center">
<span class="text-white">Porosity:</span>
<span class="font-bold text-yellow-400">10%</span>
</div>
<div class="flex justify-between items-center">
<span class="text-white">Compaction:</span>
<span class="font-bold text-purple-400">5%</span>
</div>
</div>
</div>
</div>
<div class="bg-slate-800/70 backdrop-blur-md rounded-xl p-6 border border-slate-700/50">
<h3 class="text-xl font-bold text-white mb-4">Uncertainty Analysis</h3>
<div class="grid md:grid-cols-4 gap-4">
<div class="bg-slate-700/50 rounded-lg p-4 text-center">
<h4 class="font-semibold text-white mb-2">Model Uncertainty</h4>
<p class="text-2xl font-bold text-blue-400">±15%</p>
<p class="text-xs text-slate-300">Parameter variability</p>
</div>
<div class="bg-slate-700/50 rounded-lg p-4 text-center">
<h4 class="font-semibold text-white mb-2">Measurement Error</h4>
<p class="text-2xl font-bold text-green-400">±8%</p>
<p class="text-xs text-slate-300">Analytical precision</p>
</div>
<div class="bg-slate-700/50 rounded-lg p-4 text-center">
<h4 class="font-semibold text-white mb-2">Spatial Variability</h4>
<p class="text-2xl font-bold text-purple-400">±25%</p>
<p class="text-xs text-slate-300">Across shelf variation</p>
</div>
<div class="bg-slate-700/50 rounded-lg p-4 text-center">
<h4 class="font-semibold text-white mb-2">Temporal Variability</h4>
<p class="text-2xl font-bold text-orange-400">±40%</p>
<p class="text-xs text-slate-300">Seasonal/interannual</p>
</div>
</div>
</div>
</div>
<!-- 3D Modeling Section -->
<div id="section-modeling" class="section hidden">
<div class="grid lg:grid-cols-2 gap-6 mb-6">
<div class="bg-slate-800/70 backdrop-blur-md rounded-xl p-6 border border-slate-700/50">
<h3 class="text-xl font-bold text-white mb-4">3D Sediment Distribution Model</h3>
<div class="bg-slate-900 rounded-lg p-4 h-64 flex items-center justify-center">
<div class="text-center text-white">
<div class="text-6xl mb-4">🏔️</div>
<p class="text-lg font-semibold">3D Shelf Model</p>
<p class="text-sm text-slate-300">Interactive sediment thickness visualization</p>
</div>
</div>
</div>
<div class="bg-slate-800/70 backdrop-blur-md rounded-xl p-6 border border-slate-700/50">
<h3 class="text-xl font-bold text-white mb-4">Model Parameters</h3>
<div class="space-y-4">
<div>
<label class="block text-white text-sm font-medium mb-2">Time Period (years)</label>
<select id="timePeriod" onchange="updateModel()" class="w-full p-3 rounded-lg data-input border-0">
<option value="100">Last 100 years</option>
<option value="1000">Last 1,000 years</option>
<option value="10000">Last 10,000 years (Holocene)</option>
<option value="100000">Last 100,000 years</option>
</select>
</div>
<div>
<label class="block text-white text-sm font-medium mb-2">Resolution (m)</label>
<select id="modelResolution" onchange="updateModel()" class="w-full p-3 rounded-lg data-input border-0">
<option value="50">50m (High resolution)</option>
<option value="100">100m (Medium resolution)</option>
<option value="250">250m (Low resolution)</option>
</select>
</div>
<div>
<label class="block text-white text-sm font-medium mb-2">Climate Scenario</label>
<select id="climateScenario" onchange="updateModel()" class="w-full p-3 rounded-lg data-input border-0">
<option value="current">Current conditions</option>
<option value="lgm">Last Glacial Maximum</option>
<option value="mid-holocene">Mid-Holocene optimum</option>
<option value="future">Future projection (2100)</option>
</select>
</div>
</div>
</div>
</div>
<div class="grid md:grid-cols-3 gap-6 mb-6">
<div class="bg-slate-800/70 backdrop-blur-md rounded-xl p-6 border border-slate-700/50">
<h3 class="text-xl font-bold text-white mb-4">Sediment Thickness</h3>
<div class="space-y-4">
<div class="bg-slate-700/50 rounded-lg p-4">
<h4 class="font-semibold text-white mb-2">Maximum Thickness</h4>
<p class="text-2xl font-bold text-blue-400" id="maxThickness">28 m</p>
<p class="text-sm text-slate-300">Inner shelf depocenters</p>
</div>
<div class="bg-slate-700/50 rounded-lg p-4">
<h4 class="font-semibold text-white mb-2">Average Thickness</h4>
<p class="text-2xl font-bold text-green-400" id="avgThickness">12 m</p>
<p class="text-sm text-slate-300">Shelf-wide mean</p>
</div>
<div class="bg-slate-700/50 rounded-lg p-4">
<h4 class="font-semibold text-white mb-2">Total Volume</h4>
<p class="text-2xl font-bold text-purple-400" id="totalVolume">2.1 km³</p>
<p class="text-sm text-slate-300">Holocene accumulation</p>
</div>
</div>
</div>
<div class="bg-slate-800/70 backdrop-blur-md rounded-xl p-6 border border-slate-700/50">
<h3 class="text-xl font-bold text-white mb-4">Isopach Analysis</h3>
<canvas id="isopachChart" width="300" height="200"></canvas>
</div>
<div class="bg-slate-800/70 backdrop-blur-md rounded-xl p-6 border border-slate-700/50">
<h3 class="text-xl font-bold text-white mb-4">Model Statistics</h3>
<div class="space-y-3">
<div class="flex justify-between items-center">
<span class="text-white">Grid Points:</span>
<span class="font-bold text-blue-400" id="gridPoints">15,000</span>
</div>
<div class="flex justify-between items-center">
<span class="text-white">Time Steps:</span>
<span class="font-bold text-green-400" id="timeSteps">10,000</span>
</div>
<div class="flex justify-between items-center">
<span class="text-white">Model R²:</span>
<span class="font-bold text-purple-400" id="modelR2">0.87</span>
</div>
<div class="flex justify-between items-center">
<span class="text-white">RMSE (mm/yr):</span>
<span class="font-bold text-orange-400" id="modelRMSE">0.3</span>
</div>
</div>
</div>
</div>
<div class="bg-slate-800/70 backdrop-blur-md rounded-xl p-6 border border-slate-700/50">
<h3 class="text-xl font-bold text-white mb-4">Cross-Shelf Sediment Profile</h3>
<canvas id="crossShelfChart" width="800" height="400"></canvas>
</div>
<div class="grid md:grid-cols-2 gap-6 mt-6">
<div class="bg-slate-800/70 backdrop-blur-md rounded-xl p-6 border border-slate-700/50">
<h3 class="text-xl font-bold text-white mb-4">Model Validation</h3>
<div class="space-y-4">
<div class="bg-slate-700/50 rounded-lg p-4">
<h4 class="font-semibold text-white mb-2">Core Data Comparison</h4>
<p class="text-lg font-bold text-green-400">Good Agreement</p>
<p class="text-sm text-slate-300">15 sediment cores analyzed</p>
</div>
<div class="bg-slate-700/50 rounded-lg p-4">
<h4 class="font-semibold text-white mb-2">Radiometric Dating</h4>
<p class="text-lg font-bold text-blue-400">¹⁴C & ²¹⁰Pb Validated</p>
<p class="text-sm text-slate-300">Age model constraints</p>
</div>
<div class="bg-slate-700/50 rounded-lg p-4">
<h4 class="font-semibold text-white mb-2">Seismic Stratigraphy</h4>
<p class="text-lg font-bold text-purple-400">Reflector Correlation</p>
<p class="text-sm text-slate-300">Sub-bottom profiling</p>
</div>
</div>
</div>
<div class="bg-slate-800/70 backdrop-blur-md rounded-xl p-6 border border-slate-700/50">
<h3 class="text-xl font-bold text-white mb-4">Future Projections</h3>
<div class="space-y-4">
<div class="bg-slate-700/50 rounded-lg p-4">
<h4 class="font-semibold text-white mb-2">Sea Level Rise Impact</h4>
<p class="text-lg font-bold text-red-400">+15% Rate by 2100</p>
<p class="text-sm text-slate-300">Accommodation space increase</p>
</div>
<div class="bg-slate-700/50 rounded-lg p-4">
<h4 class="font-semibold text-white mb-2">Climate Change Effects</h4>
<p class="text-lg font-bold text-orange-400">±25% Variability</p>
<p class="text-sm text-slate-300">Precipitation changes</p>
</div>
<div class="bg-slate-700/50 rounded-lg p-4">
<h4 class="font-semibold text-white mb-2">Human Impact</h4>
<p class="text-lg font-bold text-yellow-400">+30% Anthropocene</p>
<p class="text-sm text-slate-300">Land use intensification</p>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
// Global variables for charts
let depthProfileChart, sourceChart, seasonalSourceChart, currentTransportChart, waveTransportChart;
let spatialDepositionChart, temporalDepositionChart, sensitivityChart, isopachChart, crossShelfChart;
// Initialize the application
document.addEventListener('DOMContentLoaded', function() {
showSection('overview');
setTimeout(() => {
initializeCharts();
updateSources();
updateTransport();
updateDeposition();
calculateSedimentationRate();
updateModel();
}, 100);
});
// Section navigation
function showSection(sectionName) {
document.querySelectorAll('.section').forEach(section => {
section.classList.add('hidden');
});
document.getElementById(`section-${sectionName}`).classList.remove('hidden');
document.querySelectorAll('.tab-btn').forEach(btn => {
btn.classList.remove('bg-slate-700/80', 'shadow-lg');
btn.classList.add('hover:bg-slate-700/50');
});
const activeTab = document.getElementById(`tab-${sectionName}`);
activeTab.classList.add('bg-slate-700/80', 'shadow-lg');
activeTab.classList.remove('hover:bg-slate-700/50');
}
// Initialize all charts
function initializeCharts() {
if (typeof Chart === 'undefined') return;
// Depth Profile Chart
const depthCtx = document.getElementById('depthProfileChart')?.getContext('2d');
if (depthCtx) {
depthProfileChart = new Chart(depthCtx, {
type: 'line',
data: {
labels: ['0', '10', '20', '30', '40', '50', '60', '70', '80', '90', '100'],
datasets: [{
label: 'Sedimentation Rate (mm/yr)',
data: [5.2, 4.8, 4.1, 3.5, 3.1, 2.8, 2.3, 1.8, 1.4, 1.1, 0.9],
borderColor: 'rgb(59, 130, 246)',
backgroundColor: 'rgba(59, 130, 246, 0.1)',
tension: 0.4,
fill: true
}]
},
options: {
responsive: true,
plugins: { legend: { labels: { color: 'white' } } },
scales: {
x: {
title: { display: true, text: 'Water Depth (m)', color: 'white' },
ticks: { color: 'white' },
grid: { color: 'rgba(255,255,255,0.1)' }
},
y: {
title: { display: true, text: 'Sedimentation Rate (mm/yr)', color: 'white' },
ticks: { color: 'white' },
grid: { color: 'rgba(255,255,255,0.1)' }
}
}
}
});
}
// Source Chart
const sourceCtx = document.getElementById('sourceChart')?.getContext('2d');
if (sourceCtx) {
sourceChart = new Chart(sourceCtx, {
type: 'doughnut',
data: {
labels: ['Biobío River', 'Coastal Erosion', 'Diatom Production', 'Atmospheric', 'Carbonate', 'Organic Matter'],
datasets: [{
data: [45, 30, 15, 5, 3, 2],
backgroundColor: [
'rgba(59, 130, 246, 0.8)',
'rgba(34, 197, 94, 0.8)',
'rgba(6, 182, 212, 0.8)',
'rgba(147, 51, 234, 0.8)',
'rgba(251, 191, 36, 0.8)',
'rgba(239, 68, 68, 0.8)'
]
}]
},
options: {
responsive: true,
plugins: { legend: { labels: { color: 'white' } } }
}
});
}
// Seasonal Source Chart
const seasonalCtx = document.getElementById('seasonalSourceChart')?.getContext('2d');
if (seasonalCtx) {
seasonalSourceChart = new Chart(seasonalCtx, {
type: 'line',
data: {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
datasets: [{
label: 'River Input (kg/m²/month)',
data: [0.8, 1.2, 0.9, 0.6, 0.4, 0.8, 1.1, 0.9, 0.5, 0.3, 0.4, 0.7],
borderColor: 'rgb(59, 130, 246)',
backgroundColor: 'rgba(59, 130, 246, 0.1)',
tension: 0.4
}, {
label: 'Marine Production (kg/m²/month)',
data: [0.3, 0.4, 0.5, 0.6, 0.4, 0.2, 0.1, 0.2, 0.4, 0.5, 0.4, 0.3],
borderColor: 'rgb(34, 197, 94)',
backgroundColor: 'rgba(34, 197, 94, 0.1)',
tension: 0.4
}]
},
options: {
responsive: true,
plugins: { legend: { labels: { color: 'white' } } },
scales: {
x: { ticks: { color: 'white' }, grid: { color: 'rgba(255,255,255,0.1)' } },
y: {
title: { display: true, text: 'Input Rate (kg/m²/month)', color: 'white' },
ticks: { color: 'white' },
grid: { color: 'rgba(255,255,255,0.1)' }
}
}
}
});
}
// Current Transport Chart
const currentCtx = document.getElementById('currentTransportChart')?.getContext('2d');
if (currentCtx) {
currentTransportChart = new Chart(currentCtx, {
type: 'bar',
data: {
labels: ['0-20m', '20-40m', '40-60m', '60-80m', '80-100m'],
datasets: [{
label: 'Northward Transport (kg/m/s)',
data: [0.12, 0.08, 0.05, 0.03, 0.02],
backgroundColor: 'rgba(59, 130, 246, 0.7)'
}, {
label: 'Cross-shelf Transport (kg/m/s)',
data: [0.08, 0.06, 0.04, 0.03, 0.02],
backgroundColor: 'rgba(34, 197, 94, 0.7)'
}]
},
options: {
responsive: true,
plugins: { legend: { labels: { color: 'white' } } },
scales: {
x: { ticks: { color: 'white' }, grid: { color: 'rgba(255,255,255,0.1)' } },
y: {
title: { display: true, text: 'Transport Rate (kg/m/s)', color: 'white' },
ticks: { color: 'white' },
grid: { color: 'rgba(255,255,255,0.1)' }
}
}
}
});
}
// Wave Transport Chart
const waveCtx = document.getElementById('waveTransportChart')?.getContext('2d');
if (waveCtx) {
waveTransportChart = new Chart(waveCtx, {
type: 'line',
data: {
labels: ['0', '10', '20', '30', '40', '50', '60', '70', '80', '90', '100'],
datasets: [{
label: 'Wave-induced Transport (kg/m/s)',
data: [0.15, 0.12, 0.08, 0.05, 0.03, 0.02, 0.015, 0.01, 0.008, 0.005, 0.003],