forked from asoltys/avadepth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
acv-cva-eng.html
248 lines (215 loc) · 7.8 KB
/
acv-cva-eng.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
<!--#include virtual="/includes/header-eng.html" -->
<style>
.tabs-panel { border: 5px solid black; }
</style>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&libraries=visualization"></script>
<script>
// Adding 500 Data Points
var map, pointarray, heatmap;
var taxiData = [
new google.maps.LatLng(52.518333,-118.316667)
];
function initialize() {
var mapOptions = {
zoom: 13,
center: new google.maps.LatLng(52.518333,-118.316667),
mapTypeId: google.maps.MapTypeId.SATELLITE
};
map = new google.maps.Map(document.getElementById('map-canvas'),
mapOptions);
var pointArray = new google.maps.MVCArray(taxiData);
heatmap = new google.maps.visualization.HeatmapLayer({
data: pointArray
});
heatmap.setMap(map);
}
function toggleHeatmap() {
heatmap.setMap(heatmap.getMap() ? null : map);
}
function changeGradient() {
var gradient = [
'rgba(0, 255, 255, 0)',
'rgba(0, 255, 255, 1)',
'rgba(0, 191, 255, 1)',
'rgba(0, 127, 255, 1)',
'rgba(0, 63, 255, 1)',
'rgba(0, 0, 255, 1)',
'rgba(0, 0, 223, 1)',
'rgba(0, 0, 191, 1)',
'rgba(0, 0, 159, 1)',
'rgba(0, 0, 127, 1)',
'rgba(63, 0, 91, 1)',
'rgba(127, 0, 63, 1)',
'rgba(191, 0, 31, 1)',
'rgba(255, 0, 0, 1)'
]
heatmap.setOptions({
gradient: heatmap.get('gradient') ? null : gradient
});
}
function changeRadius() {
heatmap.setOptions({radius: heatmap.get('radius') ? null : 20});
}
function changeOpacity() {
heatmap.setOptions({opacity: heatmap.get('opacity') ? null : 0.2});
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
<h1>Animated Currents and Velocities</h1>
<div class="wet-boew-tabbedinterface animate slide-horz tabs-style-1 auto-height">
<ul class="tabs">
<li class="default"><a href="#parameters">Parameters</a></li>
<li><a href="#help">Help</a></li>
</ul>
<div class="summary tabs-panel" style="border: 2px solid #eee">
<div id="parameters">
<form id="daily_depth">
<div class="span-2">
<label for="date">Date:</label>
<input id="date" type="text" name="date" class="datepicker" />
</div>
<div class="span-3">
<label for="discharge">River Discharge:</label>
<input id="discharge" type="radio" name="discharge" checked="checked" /> Predicted (1275m3/s)<br />
<input type="radio" name="discharge" /> Actual (0m3/s)<br />
<input type="radio" name="discharge" /> User-defined <input type="text" /> m3/s<br />
<input type="radio" name="discharge" /> Selected
<select>
<option>300</option>
<option>600</option>
<option>900</option>
</select> m3/s
</div>
<div class="span-2">
<div class="float-left">
<label for="from">From:</label>
<select id="from" name="from">
<option>00:00</option>
<option>01:00</option>
<option>02:00</option>
<option>03:00</option>
<option>04:00</option>
<option>05:00</option>
<option>06:00</option>
<option>07:00</option>
<option>08:00</option>
<option>09:00</option>
<option>10:00</option>
<option>11:00</option>
<option>12:00</option>
<option>13:00</option>
<option>14:00</option>
<option>15:00</option>
<option>16:00</option>
<option>17:00</option>
<option>18:00</option>
<option>19:00</option>
<option>20:00</option>
<option>21:00</option>
<option>22:00</option>
<option>23:00</option>
</select>
</div>
<div>
<label for="to">To:</label>
<select id="to" name="to">
<option>00:00</option>
<option>01:00</option>
<option>02:00</option>
<option>03:00</option>
<option>04:00</option>
<option>05:00</option>
<option>06:00</option>
<option>07:00</option>
<option>08:00</option>
<option>09:00</option>
<option>10:00</option>
<option>11:00</option>
<option>12:00</option>
<option>13:00</option>
<option>14:00</option>
<option>15:00</option>
<option>16:00</option>
<option>17:00</option>
<option>18:00</option>
<option>19:00</option>
<option>20:00</option>
<option>21:00</option>
<option>22:00</option>
<option>23:00</option>
</select>
</div>
<div class="float-left">
<label for="zone">Zone:</label>
<select name="zone">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
</select>
</div>
<div>
<label for="interval">Interval:</label>
<select name="interval">
<option>2hr</option>
<option>4hr</option>
<option>6hr</option>
<option>8hr</option>
</select>
</div>
<div>
<label for="velocity_legend">Velocity Legend:</label>
<input type="radio" id="velocity_legend" name="velocity_legend" value="0-2"/> 0 to 2 m/s (Interval .25ms)<br />
<input type="radio" name="velocity_legend" value="0-4"/> 0 to 4 m/s (Interval .5ms)<br />
</div>
</div>
</form>
</div>
<div id="help" style="max-height: 200px; overflow-y: scroll;">
<p>
The available depth tabulations allow us to monitor the behaviour of the "Control Point" - the location in the river channel which has the minimum available depth at any specified time. The control point moves under the influence of tides, flow rates and soundings profiles.
</p>
<p>To inspect the critical point locations over a one-day period,</p>
<ul>
<li>Enter a date. Click on the date text to choose using a calendar.</li>
<li>Click on the Next button</li>
</ul>
<p>
Avadepth displays the options to use a flow rate. These are predicted, actual, user-defined or select from the list.
</p>
<ul>
<li>Select the flow rate to be used.</li>
<li>Click on the daily depth button to display the graph.</li>
</ul>
<p>
Avadepth plots the variation of maximum available depths for a single day.
</p>
<p>
To print the graph to your printer:
</p>
<p>
In your browser menu, you can select File|Print to print a hard-copy.
To display a tabulation of the least available depth and control point location for each two-hour period on the selected date.
</p>
<ul>
<li>Click on the report tab.</li>
<li>To print a hard-copy, select click File|Print menu item.</li>
</ul>
</div>
</div>
</div>
<div class="clear"></div>
<div id="panel">
<button onclick="toggleHeatmap()">Toggle Heatmap</button>
<button onclick="changeGradient()">Change gradient</button>
<button onclick="changeRadius()">Change radius</button>
<button onclick="changeOpacity()">Change opacity</button>
</div>
<div id="map-canvas" style="width:100%;height:400px"></div>
<div class="clear"></div>
<div class="span-4">
<div id="placeholder" class="demo-placeholder" style="width:90%;height:500px;float:left"></div>
</div>
<!--#include virtual="/includes/footer-eng.html" -->