forked from NOAA-CEFI-Portal/cefi-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhistorical.html
296 lines (260 loc) · 10.9 KB
/
historical.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
<!-- <link rel="stylesheet" type="text/css" href="historical.css" /> -->
<div class = "row">
<h2>Regional MOM6 - Historical Run</h2>
</div>
<!-- html body start -->
<div class = "row">
<!-- User inputs column -->
<div class="userInput col-12 col-md-6">
<h1 class="userInputTitle"><em>Data Options</em></h1>
<table class="rowGap">
<tr>
<td>Region : </td>
<td>
<select name="region" id="regMOMCobalt" class="reg-mom-cobalt"></select>
</td>
</tr>
<tr>
<td>Variable : </td>
<td>
<select name="variable" id="varMOMCobalt"></select>
</td>
</tr>
<tr>
<td>Statistics : </td>
<td>
<select name="stat" id="statMOMCobalt"></select>
</td>
</tr>
<tr>
<td>Depth : </td>
<td>
<select name="depth" id="depthMOMCobalt"></select>
</td>
</tr>
<tr>
<td>Blocked depth : </td>
<td>
<select name="block" id="blockMOMCobalt"></select>
</td>
</tr>
<tr>
<td>Analyses dashboard : </td>
<td>
<select name="analysis" id="analysisMOMCobalt">
<option value="tsViewVal">Time Series Analyses</option>
<option value="profileViewVal">Vertical Profile Analyses</option>
<option value="transectViewVal">Vertical Transect Analyses</option>
<option value="indexViewVal">Indexes Analyses</option>
</select>
</td>
</tr>
</table>
</div>
<!-- Seperation column -->
<div class="col-12 col-md-1"></div>
<!-- Figure options column -->
<div class="userInput col-12 col-md-5">
<h1 class="userInputTitle"><em>Figure options</em></h1>
<table class="rowGap">
<tr>
<td>Maximum Value : </td>
<td>
<input class="figOpt" type="number" id="maxval" name="maxval">
</td>
</tr>
<tr>
<td>Minimum Value : </td>
<td>
<input class="figOpt" type="number" id="minval" name="minval">
</td>
</tr>
<tr>
<td>Number of Discrete Values: </td>
<td>
<input class="figOpt" type="number" id="nlevel" name="nlevel">
</td>
</tr>
<tr>
<td>Colorbar
<button type="button" class="btn btn-secondary btn-sm btn-lg btn-custom-cir" data-toggle="modal" data-target="#Modal_cbar">
?
</button> :
</td>
<td>
<select class="figOpt" name="cbar" id="cbarOpts"></select>
</td>
</tr>
</table>
<div class="alignRight">
<button class="btn btn-psl" id="clearFigOptBtn"><strong>Clear All</strong></button>
</div>
</div>
</div>
<div class = "row">
<br>
<button class="btn btn-psl" id="momCobaltBtn"><strong>Create Map + Analyses</strong></button>
</div>
<div class = "row">
<div class="divRowSep w-100"></div>
<hr class="dot-hr-plot">
</div>
<div class = "row position-relative">
<!-- Plotting column -->
<!-- <div class="workingTop hidden">Creating Map ⏳</div>
<div class="errorTop hidden">Data not available</div>
<div class="whiteTop">.</div> -->
<div id="momCobaltMap" class="col-md-12">
<iframe id="momCobaltIFrame" seamless="seamless" scrolling=no src="hindcast_mom.html"></iframe>
</div>
<div id="loading-spinner-map" class="position-absolute top-0 start-0 w-100 h-100 loading-spinner"></div>
</div>
<div class = "row">
<div class="col-md-12">
<div class="row">
<div class="col-md-1">
<div>
<button class="btn btn-psl" onclick="changeTimeStep(-1)">←</button>
</div>
</div>
<div class="col-md-10">
<p class="sliderTitle"> Historical simulation : <span class="timeValue"></span></p>
</div>
<div class="col-md-1 alignRight">
<button class="btn btn-psl" onclick="changeTimeStep(1)">→</button>
</div>
</div>
</div>
</div>
<div class = "row">
<div class="col-md-12">
<input type="range" class="slider" id="timeRange">
</div>
</div>
<div class = "row">
<div class="ticks col-sm-12"></div>
</div>
<div class="row">
<hr class="dot-hr-plot">
</div>
<div class="row" id="dashNavHistrun">
<ul class="nav nav-pills nav-justified">
<li class="nav-item active" id="tsViewPill">
<a class="nav-link" href="#tsView" data-toggle="tab" aria-expanded="true" >Time Series</a>
</li>
<li class="nav-item" id="profileViewPill">
<a class="nav-link" href="#profileView" data-toggle="tab" aria-expanded="true">Vertical Profile</a>
</li>
<li class="nav-item" id="transectViewPill">
<a class="nav-link" href="#transectView" data-toggle="tab" aria-expanded="true">Transect</a>
</li>
<li class="nav-item" id="indexViewPill">
<a class="nav-link" href="#indexView" data-toggle="tab" aria-expanded="true">Indexes</a>
</li>
</ul>
</div>
<div class="row" id="dashContentHistrun">
<div class="tab-content">
<div id='tsView' class="tab-pane active view col-12">
<h3>Time Series Analyses</h3>
<div class="row">
<div class="col-xs-12 col-md-6">
<label class='tsOptions' for="dropdown">Select 2nd variable:</label>
<select name="variableTS2" id="varMOMCobaltTS2"></select>
</div>
<div class="col-xs-12 col-md-3">
<label class='tsOptions' for="dropdown">Select depth:</label>
<select name="variableTS2depth" id="depthMOMCobaltTS2"></select>
</div>
</div>
<div class = "row position-relative">
<div id="plotly-time-series" class="col-xs-12 col-md-6"></div>
<div id="plotly-box-plot" class="col-xs-12 col-md-3"></div>
<div id="plotly-histogram" class="col-xs-12 col-md-3"></div>
<div id="loading-spinner-ts" class="col-12 position-absolute top-0 start-0 w-100 h-100 loading-spinner"></div>
</div>
<div class="row">
<div class="col-xs-12 col-md-1">
<button class="btn btn-psl tsButton" id="clearTSselectBtn"><strong>Reset time series select</strong></button>
</div>
<div class="col-xs-12 col-md-8"></div>
<div class="col-xs-12 col-md-3">
<button class="btn btn-psl tsButton" id="clearTS2Btn"><strong>Remove 2nd time series</strong></button>
</div>
</div>
</div>
<div id="profileView" class="tab-pane view col-12">
<!-- Content for view 2 (initially hidden) -->
<h3>Vertical Profile | <span class="timeValue"></span></h3>
<div class = "row position-relative">
<div id="plotly-vertical-t" class="col-xs-12 col-md-6"></div>
<div id="plotly-vertical-s" class="col-xs-12 col-md-6"></div>
<div id="loading-spinner-vprof" class="col-12 position-absolute top-0 start-0 w-100 h-100 loading-spinner"></div>
</div>
</div>
<div id="transectView" class="tab-pane view col-12">
<!-- Content for view 2 (initially hidden) -->
<h3>Vertical Transect | <span class="timeValue"></span></h3>
<!-- <p>Pick a polyline in the map</p> -->
<div class = "row position-relative">
<div id="plotly-transect" class="col-xs-12"></div>
<div id="loading-spinner-tsect" class="col-12 position-absolute top-0 start-0 w-100 h-100 loading-spinner"></div>
</div>
</div>
<div id='indexView' class='tab-pane view col-12'>
<h3>Indexes Analyses</h3>
<div class="row">
<div class="col-md-5">
<label for="dropdown">Select index:</label>
<select name="indexTS" id="indexMOMCobaltTS"></select>
</div>
</div>
<div class = "row">
<div id="plotly-index" class="col-xs-12"></div>
<!-- <div id="plotly-box-index" class="col-xs-6 col-md-3"></div>
<div id="plotly-histogram-index" class="col-xs-6 col-md-3"></div> -->
<div id="loading-spinner-index" class="col-12 position-absolute top-0 start-0 w-100 h-100 loading-spinner"></div>
</div>
</div>
</div>
</div>
<!-- <div class="row">
<div id="navbar">
<div class="col-xs-4 p-0 m-0 btnDiv">
<button id="tsViewBtn" class="tablink clicked">Time Series</button>
</div>
<div class="col-xs-4 p-0 m-0 btnDiv">
<button id="profileViewBtn" class="tablink">Vertical Profile</button>
</div>
<div class="col-xs-4 p-0 m-0 btnDiv">
<button id="transectViewBtn" class="tablink">Vertical Transect</button>
</div>
</div>
</div> -->
<!-- Start modal content -->
<!-- Modal colorbar -->
<div class="modal fade" id="Modal_cbar" tabindex="-1" role="dialog" aria-labelledby="Model_cbar_title" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h3 class="modal-title" id="Model_cbar_title">What are the available colormaps?</h3>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<img class="img-fluid" id="modalCbarFig" src="img/colormap.png" alt="Colormap list">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Javascript CDN -->
<!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> -->
<!-- <script src="https://cdn.plot.ly/plotly-2.12.1.min.js"></script> -->
<!-- link Javascript -->
<!-- <script type="text/javascript" src="historical.js"></script> -->
<!-- <script type="text/javascript" src="hindcast_mom.js"></script> -->
<!-- <script type="text/javascript" src="lmesPlotlyMapbox.js"></script> -->