-
Notifications
You must be signed in to change notification settings - Fork 1
/
forecast.html
214 lines (197 loc) · 7.36 KB
/
forecast.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
<!-- html body start -->
<div class = "row">
<h2>Regional MOM6 COBALT - Forecast/Reforecast</h2>
</div>
<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="regMOMCobaltFcast" class="reg-mom-cobalt"></select>
</td>
</tr>
<tr>
<td>Variable : </td>
<td>
<select name="variable" id="varMOMCobaltFcast"></select>
</td>
</tr>
<tr>
<td>Initial year : </td>
<td>
<select name="iniTime" id="iniYearMOMCobaltFcast"></select>
</td>
</tr>
<tr>
<td>Initial month : </td>
<td>
<select name="iniTime" id="iniMonthMOMCobaltFcast"></select>
</td>
</tr>
<tr>
<td>Statistics : </td>
<td>
<select name="stat" id="statMOMCobaltFcast"></select>
</td>
</tr>
<tr>
<td>Depth : </td>
<td>
<select name="depth" id="depthMOMCobaltFcast"></select>
</td>
</tr>
<tr>
<td>Blocked depth : </td>
<td>
<select name="block" id="blockMOMCobaltFcast"></select>
</td>
</tr>
<tr>
<td>Analyses dashboard : </td>
<td>
<select name="analysis" id="analysisMOMCobaltFcast">
<option value="fcastViewVal">Forecast Spread</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="maxvalFcast" name="maxval">
</td>
</tr>
<tr>
<td>Minimum Value : </td>
<td>
<input class="figOpt" type="number" id="minvalFcast" name="minval">
</td>
</tr>
<tr>
<td>Number of Discrete Values: </td>
<td>
<input class="figOpt" type="number" id="nlevelFcast" 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_Fcast">
?
</button> :
</td>
<td>
<select class="figOpt" name="cbar" id="cbarOptsFcast"></select>
</td>
</tr>
</table>
<div class="alignRight">
<button class="btn btn-psl" id="clearFigOptBtnFcast"><strong>Clear All</strong></button>
</div>
</div>
</br>
<div class="col-xs-12">
<button class="btn btn-psl" id="momCobaltBtnFcast"><strong>Create Map + Analyses</strong></button>
</div>
</div>
<div class="divRowSep w-100"></div>
<hr class="dot-hr-plot">
<div class="col-md-12">
<h3 class="sliderTitle"> Initialization : <span class="initTimeValueFcast"></span></h3>
</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="momCobaltMapFcast" class="col-md-12">
<iframe id="momCobaltIFrameFcast" seamless="seamless" scrolling=no src="hindcast_mom.html"></iframe>
</div>
<div id="loading-spinner-map-Fcast" 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-12">
<p class="sliderTitle"> Forecast time : <span class="timeValueFcast"></span></p>
</div>
</div>
<div class="row">
<div class="col-xs-2">
<button class="btn btn-psl" onclick="changeLeadTimeStep(-1)">←</button>
</div>
<div class="col-xs-8"></div>
<div class="col-xs-2 alignRight">
<button class="btn btn-psl" onclick="changeLeadTimeStep(1)">→</button>
</div>
</div>
</div>
</div>
<div class = "row">
<div class="col-md-12">
<input type="range" class="slider" id="timeRangeFcast">
</div>
</div>
<div class = "row">
<div class="ticksFcast col-sm-12"></div>
</div>
<div class = "row">
<hr class="dot-hr-plot">
</div>
<div class="row" id="dashNavForecast">
<ul class="nav nav-pills nav-justified hidden-xs" id="pills-fcast">
<li class="nav-item active" id="fcastViewTabPill">
<a class="nav-link" href="#fcastViewTab" data-toggle="tab" aria-expanded="true" >Forecast Spread</a>
</li>
</ul>
<ul class="nav nav-tabs nav-justified visible-xs" id="tabs-fcast">
<li class="nav-item active" id="fcastViewTabTab">
<a class="nav-link" href="#fcastViewTab" data-toggle="tab" aria-expanded="false" >Forecast Spread</a>
</li>
</ul>
</div>
<div class="row" id="dashContentForecast">
<div class="tab-content">
<div id='fcastView' class="tab-pane active view col-12">
<h3>Forecast Spread</h3>
<div class = "row position-relative">
<div id="plotly-fcast-spread" class="col-xs-12 col-md-6"></div>
<div id="plotly-fcast-box" class="col-xs-12 col-md-6"></div>
<div id="loading-spinner-fcast-spread" class="col-12 position-absolute top-0 start-0 w-100 h-100 loading-spinner"></div>
</div>
</div>
</div>
</div>
<!-- Start modal content -->
<!-- Modal colorbar -->
<div class="modal fade" id="Modal_cbar_Fcast" 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="modalCbarFigFcast" 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>
<br>
<div class="alert alert-info" role="alert">
✨ If you have any questions or feedback, please feel free to contact us via <a href="#" class="alert-link" data-toggle="modal" data-target="#Modalfeedback">google form</a>! ✨
</div>