This repository has been archived by the owner on Jun 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
288 lines (233 loc) · 15.9 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
<!DOCTYPE html>
<html>
<head>
<title>Water Balance App</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<link rel="icon" href="//www.esri.com/favicon.ico">
<link rel="stylesheet" href="./style/calcite-web.min.css">
<link rel="stylesheet" href="https://js.arcgis.com/3.20/esri/themes/calcite/dijit/calcite.css">
<link rel="stylesheet" href="https://js.arcgis.com/3.20/esri/themes/calcite/esri/esri.css">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.6.0/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="./style/main.css">
</head>
<body class="calcite">
<nav class="navbar-fixed-top">
<div class="navbar-title">
<span class="title-main">Water Balance App</span>
<span class="title-divider hidden-xs"></span>
<span class="title-sub hidden-xs">Click anywhere on earth to see how the water balance is changing over time</span>
<span class="about-app-icon right font-size-2"><i class="fa fa-lg fa-info-circle margin-left-1" aria-hidden="true"></i></span>
</div>
<div class="search-input-wrapper hidden-xs">
<div id="search" class="search-input-div"></div>
</div>
</nav>
<div class="loading-indicator">
<div class="loading-message" id="loading_message"></div>
</div>
<div id="alert-no-data" class="app-message-wrapper">
<div class="app-message-div">
<p class="app-message-title">No Data Found!</p>
<p class="app-message-content">Cannot find any GLDAS data for the selected location. Use a different location and try again.</p>
<button class="btn btn-clear"> Close </button>
</div>
</div>
<div class="js-modal modal-overlay modifier-class" data-modal="foo">
<div class="modal-content column-12" role="dialog" aria-labelledby="modal" role="dialog">
<a class="js-modal-toggle right font-size-3" href="#" aria-label="close-modal">
<svg xmlns="http://www.w3.org/2000/svg" width="21" height="21" viewBox="0 0 32 32" class="svg-icon"><path d="M18.404 16l9.9 9.9-2.404 2.404-9.9-9.9-9.9 9.9L3.696 25.9l9.9-9.9-9.9-9.898L6.1 3.698l9.9 9.899 9.9-9.9 2.404 2.406-9.9 9.898z"/></svg>
</a>
<h3 class='trailer-2'><b>About this App</b></h3>
<p class='font-size-3'>This app is based on data from NASA’s <a href='https://ldas.gsfc.nasa.gov/' target="_blank">Global Land Data Assimilation System</a> (GLDAS-2.1), which uses weather observations like temperature, humidity, and rainfall to run the <a href='https://www.jsg.utexas.edu/noah-mp' target="_blank">Noah</a> land surface model. This model estimates how much of the rain becomes runoff, how much evaporates, and how much infiltrates into the soil. These output variables, calculated every three hours, are aggregated into monthly averages, giving us a record of the hydrologic cycle going all the way back to January 2000. </p>
<p class='font-size-3'>Soil moisture plus snowpack is the water storage at any given place. Every month that storage volume changes according to the water flux - recharge occurs when precipitation is high, depletion occurs when evapotranspiration and runoff are higher. </p>
<p class='font-size-3'>Click anywhere on the map to see how a chosen variable has changed over time, and click anywhere on the graph to switch the map to that month of interest. The water balance panel (on the left) shows how much recharge or depletion occurred during your chosen month, and how this compares to what’s normal. The trend analyzer panel (on the right) shows how your chosen variable was different in the same month during other years. </p>
<p class='font-size-3'>Because the model is run with 0.25 degree spatial resolution (~30 km), these data should only be used for regional analysis. A specific farm or other small area might experience very different conditions than the region around it, especially because human influences like irrigation are not included.</p>
<div class="leader-2 text-right">
<button class="btn btn-clear js-modal-toggle">Close</button>
</div>
</div>
</div>
<div id="mapDiv">
<div class="map-legend-wrapper padding-leader-1 padding-trailer-half padding-left-1 padding-right-1 hide">
<!-- <div>
<div class="legend-image"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAAAAAAAAAHqZRakAAAAW0lEQVQ4ja2TARGAAAgDB2yayUj2MZK1OC3xBPh7YCtdzydo9r3LmaZ4kiRPDQu0aWDRKws2TGBD40+hY3MMbdiBgXQOT/qGfFMaNkzTN6SbEjqHh9kc1u6iwB+Nqwfybe6tfgAAAABJRU5ErkJggg=="></div>
<div class='legend-text margin-left-half'>90+</div>
</div>
<div>
<div class="legend-image"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAAAAAAAAAHqZRakAAAAW0lEQVQ4ja2TARGAAAgDB2yayUj2MZK1OC3xBPh7YCtdzydo9r3LmaZ4kiRPDQu0aWDRKws2TGBD40+hY3MMbdiBgXQOT/qGfFMaNkzTN6SbEjqHh9kc1u6iwB+Nqwfybe6tfgAAAABJRU5ErkJggg=="></div>
<div></div>
</div>
<div>
<div class="legend-image"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAAAAAAAAAHqZRakAAAAW0lEQVQ4ja2TARGAAAgDB2yayUj2MZK1OC3xBPh7YCtdzydo9r3LmaZ4kiRPDQu0aWDRKws2TGBD40+hY3MMbdiBgXQOT/qGfFMaNkzTN6SbEjqHh9kc1u6iwB+Nqwfybe6tfgAAAABJRU5ErkJggg=="></div>
<div class='legend-text margin-left-half'>0 mm</div>
</div> -->
</div>
</div>
<div class="map-layer-select-wrapper">
<div class="map-layer-select-icon-div">
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" class="svg-icon map-select-icon"><path d="M28 9v5L16 26 4 14V9l12 12L28 9z"/></svg>
</div>
<select class="modifier-class map-layer-select">
<option category="waterstorage" value="Soil Moisture">Soil Moisture</option>
<option category="waterstorage" value="Snowpack">Snowpack</option>
<option category="waterflux" value="Precipitation">Precipitation</option>
<option category="waterflux" value="Evapotranspiration">Evapotranspiration</option>
<option category="waterflux" value="Runoff">Runoff</option>
</select>
</div>
<div class="bottom-pane">
<!--<div class="bottom-pane-toggle-view-btn"><span>hide</span></div>-->
<div class="left summary-info-wrapper">
<div class="summary-info-column-wrapper row">
<div class="column-right">
<div class="scale-chart-wrapper">
<div class="scale-chart-label top"><span>Recharge</span></div>
<div class="scale-chart-rect">
<div class="scale-chart-tooltip">
<div class="scale-chart-tooltip-line"></div>
</div>
<div class="scale-chart-normal-value-indicator">
<div class="reference-line"></div>
<div class="scale-chart-normal-value-text"><span>Normal</span></div>
</div>
</div>
<div class="scale-chart-label bottom"><span>Depletion</span></div>
</div>
</div>
<div class="column-left">
<div class="summary-info-title-div">
<span class="summary-info-title-text"></span>
</div>
<div class="summary-table-wrapper">
<div><span class="left">Precipitation</span><span class="precip-value with-unit scale-chart-blue right"></span></div>
<div><span class="left">Runoff</span><span class="runoff-value with-unit scale-chart-red right"></span></div>
<div><span class="left">Evapotranspiration</span><span class="evapo-value with-unit scale-chart-red right"></span></div>
<div><span class="left">Soil Moisture</span><span class="soilmoisture-value with-unit right"></span></div>
<div><span class="left">Snowpack</span><span class="snowpack-value with-unit right"></span></div>
</div>
<!-- <div class="scale-chart-wrapper">
<div class="scale-chart-label">
<span class="left">Depletion</span>
<span class="right">Recharge</span>
</div>
<div class="scale-chart-rect">
<div class="scale-chart-normal-value-indicator">
<div class="reference-line"></div>
<div class="scale-chart-normal-value-text"><span>Normal</span></div>
</div>
<div class="scale-chart-tooltip">
<div class="scale-chart-tooltip-line"></div>
<div class="scale-chart-tooltip-text"><span class="with-unit">20</span></div>
</div>
</div>
</div> -->
<div class="summary-desc-text-div"></div>
<div class="summary-download-link-div leader-quarter">
<span><a href='#' class='link-download-csv'><i class="fa fa-download margin-right-quarter" aria-hidden="true"></i>Download</a> water balance data as CSV</span>
</div>
<div class="summary-info-tooltip"></div>
</div>
</div>
<div class="mobile-device-message">
<span>Run this app on your PC, laptop or tablet with wider screens to see the interactive charts.</span>
</div>
</div>
<div class="middle line-chart-wrapper">
<div class="line-chart-bottom-div">
<div class="main-chart-legend-div">
<div class="main-chart-info-tooltip">Use mousewheel to zoom; click to display map layer in the selected time.</div>
<div class="main-chart-title-wrapper">
<span class="main-chart-info-icon"><i class="fa fa-info-circle margin-right-half" aria-hidden="true"></i></span>
<span class="main-chart-title">Water Storage: </span>
</div>
<div class="legend-wrapper waterfulx-legend hide" value="Precipitation">
<span style="background-color: #5984ca;" class="legend-icon"></span>
<span class="legend-text">Precipitation</span>
</div>
<div class="legend-wrapper waterfulx-legend hide" value="Runoff">
<span style="background-color: #b15a4d;" class="legend-icon"></span>
<span class="legend-text">Runoff</span>
</div>
<div class="legend-wrapper waterfulx-legend hide" value="Evapotranspiration">
<span style="background-color: #b15a4d;" class="legend-icon"></span>
<span class="legend-text">Evapotranspiration</span>
</div>
<div class="legend-wrapper waterstorage-legend" value="Soil Moisture">
<span style="background-color: #598fb8;" class="legend-icon"></span>
<span class="legend-text">Soil Moisture</span>
</div>
<div class="legend-wrapper waterstorage-legend" value="Snowpack">
<span style="background-color: #f9f9f9;" class="legend-icon"></span>
<span class="legend-text">Snowpack</span>
</div>
</div>
<div class="main-chart-info-text-div hidden-xs">
<span class="main-chart-info-text">* Use mousewheel to zoom; click to display map layer in the selected time.</span>
</div>
</div>
<div class="line-chart-div"></div>
</div>
<div class="right monthly-trend-chart-wrapper">
<div class="monthly-trend-chart-top-div">
<div class="monthly-trend-chart-title-div">Trend Analyzer</div>
<div class="monthly-trend-chart-month-select-wrapper dropdown-wrapper right">
<div class="dropdown-div">
<select class="modifier-class month-select">
<option value="January">January</option>
<option value="February">February</option>
<option value="March">March</option>
<option value="April">April</option>
<option value="May">May</option>
<option value="June">June</option>
<option value="July">July</option>
<option value="August">August</option>
<option value="September">September</option>
<option value="October">October</option>
<option value="November">November</option>
<option value="December">December</option>
<option value="Annual">Annual Average</option>
<option value="MonthlyNormals">Monthly Normal</option>
</select>
</div>
</div>
<!-- <div class="monthly-trend-chart-data-layer-select-wrapper dropdown-wrapper">
<div class="dropdown-div">
<select class="modifier-class data-layer-select">
<option category="waterstorage" value="Soil Moisture">Soil Moisture</option>
<option category="waterstorage" value="Snowpack">Snowpack</option>
<option category="waterflux" value="Precipitation">Precipitation</option>
<option category="waterflux" value="Evapotranspiration">Evapotranspiration</option>
<option category="waterflux" value="Runoff">Runoff</option>
<option category="waterbalance" value="ChangeInStorage">Change in Storage</option>
</select>
</div>
</div> -->
</div>
<div class="monthly-trend-chart-div"></div>
</div>
</div>
<script src="./js/calcite-web.min.js"></script>
<!-- interactive patterns need to be initialized -->
<script>
calcite.init();
</script>
<script src="./js/jquery-1.12.0.min.js"></script>
<script src="./js/moment-with-locales.js"></script>
<script src="./js/d3.v3.min.js"></script>
<script src="https://js.arcgis.com/3.20/"></script>
<script src="./js/main.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-103201565-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>