-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
445 lines (397 loc) · 25.1 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-6S875T62E6"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-6S875T62E6');
</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ForecastDualKc</title>
<!-- Compiled and minified CSS -->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="ForecastDualKc_v0.4/libs/materializecss.min.css">
<link rel="stylesheet" href="ForecastDualKc_v0.4/css/custom.css">
<link rel="stylesheet" href="ForecastDualKc_v0.4/libs/nouislider.min.css">
</head>
<body>
<nav class="navbar z-depth-0 white" style="margin-top: 10px;">
<div class="nav-wrapper">
<a href="#" class="brand-logo grey-text text-darken-3" style="font-size: 3rem; padding-left: 20px; font-weight: 600;">ForecastDualKc</a>
<ul id="nav-mobile" class="right hide-on-med-and-down">
<li><a href="ForecastDualKc_v0.4/docs/documentation.html" target="_blank" class="deep-purple-text text-darken-1">Docs</a></li>
<li><a href="https://github.com/soilwaterksu/forecastdualkc" class="deep-purple-text text-darken-1">Github</a></li>
</ul>
</div>
</nav>
<div class="divider"></div>
<ul id="slide-out" class="sidenav sidenav-fixed custom-sidenav">
<div style="padding-top: 10px;"></div>
<div class="model-controls">
<ul class="collapsible expandable">
<li>
<img src="icon.png" width=150 class="responsive-img center-align" style='margin-top: 20px; margin-bottom: 20px; padding-left: 10px;'>
</li>
<!-- LOCATION CONTROLS -->
<li>
<div class="collapsible-header pink-text text-darken-2"><i class="material-icons">place</i>Location</div>
<div class="collapsible-body body-location">
<div class="row">
<div class="input-field col s12 m12 l12 xl12">
<input value="example_field" id="projectName" type="text" class="validate">
<div class="field-label">Name</div>
</div>
</div>
<div class="row">
<div class="input-field col s12 m12 l6 xl6">
<input value="39.1" id="latitude" type="number" class="validate" min="-90" max="90" step="0.1">
<div class="field-label">Latitude</div>
</div>
<div class="input-field col s12 m12 l6 xl6">
<input value="300" id="altitude" type="number" class="validate" min="-100" max="8000" step="1">
<div class="tooltipped field-label" data-position="bottom" data-tooltip="Meters above sea level">Altitude</div>
</div>
</div>
</div>
</li>
<!-- ATMOSPHERE CONTROLS -->
<li>
<div class="collapsible-header blue-text text-darken-1"><i class="material-icons">cloud_queue</i>Atmosphere</div>
<div class="collapsible-body body-atmosphere">
<div class="file-field input-field">
<div class="btn-small white black-text tooltipped" data-position="top" data-tooltip="File with historical weather data for the field or region.">
<span>Climate Data </span>
<input type="file" id="climateInput">
</div>
<div class="file-path-wrapper">
<input class="file-path validate" type="text">
</div>
</div>
<div class="file-field input-field">
<div class="btn-small white black-text tooltipped" data-position="top" data-tooltip="File with weather and field observations for the current growing season.">
<span>Weather data</span>
<input type="file" id="observationsInput" disabled>
</div>
<div class="file-path-wrapper">
<input class="file-path validate" type="text" id="observationsFileName">
</div>
</div>
</div>
</li>
<!-- PLANT CONTROLS -->
<li>
<div class="collapsible-header green-text text-darken-1"><i class="material-icons">grass</i>Plant</div>
<div class="collapsible-body body-plant">
<div class="row">
<div class="col s12 m12 l12 xl12">
<div>Crop stages</div>
<div id="stagesDuration" class="custom-slider" ></div>
<div id="emergenceSliderValue" class="field-label"></div>
<div id="iniSliderValue" class="field-label"></div>
<div id="devSliderValue" class="field-label"></div>
<div id="midSliderValue" class="field-label"></div>
<div id="lateSliderValue" class="field-label"></div>
</div>
</div>
<div class="row">
<div class="col s12 m12 l4 xl4">
<div id="KcbIni" class="custom-slider tooltipped" data-position="top" data-tooltip="Minimum basal coefficient"></div>
<div id="KcbIniSliderValue" class="field-label"></div>
</div>
<div class="col s12 m12 l4 xl4">
<div id="KcbMid" class="custom-slider tooltipped" data-position="top" data-tooltip="Mid season basal coefficient"></div>
<div id="KcbMidSliderValue" class="field-label"></div>
</div>
<div class="col s12 m12 l4 xl4">
<div id="KcbEnd" class="custom-slider tooltipped" data-position="top" data-tooltip="End season basal crop coefficient"></div>
<div id="KcbEndSliderValue" class="field-label"></div>
</div>
</div>
<div class="row">
<div class="col s12 m12 l4 xl4">
<div id="baseTemp" class="custom-slider"></div>
<div id="baseTempSliderValue" class="field-label"></div>
</div>
<div class="col s12 m12 l4 xl4">
<div id="upperTemp" class="custom-slider" ></div>
<div id="upperTempSliderValue" class="field-label"></div>
</div>
<div class="col s12 m12 l4 xl4">
<div id="pTab" class="custom-slider tooltipped" data-position="top" data-tooltip="Fraction of total available water readily available for the crop. Typically 0.5."></div>
<div id="pTabSliderValue" class="field-label"></div>
</div>
</div>
<div class="row">
<div class="col s12 m12 l6 xl6">
<div id="plantHeight" class="custom-slider"></div>
<div id="plantHeightSliderValue" class="field-label"></div>
</div>
<div class="col s12 m12 l6 xl6">
<div id="rootDepth" class="custom-slider" ></div>
<div id="rootDepthSliderValue" class="field-label"></div>
</div>
</div>
<div class="row">
<div class="col s12 m12 l6 xl6">
<div id="yieldResponse" class="custom-slider tooltipped" data-position="top" data-tooltip="Susceptibility of yield components to seasonal water stress."></div>
<div id="yieldResponseSliderValue" class="field-label"></div>
</div>
<div class="col s12 m12 l6 xl6">
<div id="yieldPotential" class="custom-slider tooltipped" data-position="top" data-tooltip="Yield goal under non-limitating conditions."></div>
<div id="yieldPotentialSliderValue" class="field-label"></div>
</div>
</div>
</div>
</li>
<!-- SOIL CONTROLS -->
<li>
<div class="collapsible-header brown-text text-darken-1"><i class="material-icons">layers</i>Soil</div>
<div class="collapsible-body body-soil">
<div class="row">
<div class="col s12 m12 l6 xl6">
<div id="surfaceDepth" class="custom-slider tooltipped" data-position="top" data-tooltip="Depth of evaporation layer. Typically 0.1 to 0.2 m."></div>
<div id="surfaceDepthSliderValue" class="field-label"></div>
</div>
<div class="col s12 m12 l6 xl6">
<div id="readilyEvaporableWater" class="custom-slider tooltipped" data-position="top" data-tooltip="Fraction of total evaporable water. Typically 0.5."></div>
<div id="readilyEvaporableWaterSliderValue" class="field-label"></div>
</div>
</div>
<div class="row">
<div class="col s12 m12 l6 xl6">
<div id="thetaInitialSurface" class="custom-slider tooltipped" data-position="top" data-tooltip="Soil moisture of the surface layer."></div>
<div id="thetaInitialSurfaceSliderValue" class="field-label"></div>
</div>
<div class="col s12 m12 l6 xl6">
<div id="thetaInitialRootzone" class="custom-slider tooltipped" data-position="top" data-tooltip="Soil moisture of the rootzone."></div>
<div id="thetaInitialRootzoneSliderValue" class="field-label"></div>
</div>
</div>
<div class="row">
<div class="col s12 m12 l6 xl6">
<div id="lowerLimit" class="custom-slider tooltipped" data-position="top" data-tooltip="Permanent wilting point (soil water at a matric potential of -1500 kPa)"></div>
<div id="lowerLimitSliderValue" class="field-label"></div>
</div>
<div class="col s12 m12 l6 xl6">
<div id="upperLimit" class="custom-slider tooltipped" data-position="top" data-tooltip="Field capacity (soil water at a matric potential of -10 kPa)" ></div>
<div id="upperLimitSliderValue" class="field-label"></div>
</div>
</div>
<div class="row">
<div class="col s12 m12 l6 xl6">
<div id="residueCover" class="custom-slider" ></div>
<div id="residueCoverSliderValue" class="field-label"></div>
</div>
<div class="col s12 m12 l6 xl6">
<div id="wettedFraction" class="custom-slider tooltipped" data-position="top" data-tooltip="Average fraction of soil surface wetted by irrigation [0.01 to 1]"></div>
<div id="wettedFractionSliderValue" class="field-label"></div>
</div>
</div>
<div class="row">
<div class="col s12 m12 l6 xl6">
<div id="curveNumber" class="custom-slider tooltipped" data-position="top" data-tooltip="Agricultural fields typically range from 60 (low runoff) to 95 (high runoff)"></div>
<div id="curveNumberSliderValue" class="field-label"></div>
</div>
</div>
</div>
</li>
<!-- NITROGEN RECOMMENDATION-->
<li>
<div class="collapsible-header orange-text text-darken-1"><i class="material-icons">grain</i>Nitrogen</div>
<div class="collapsible-body body-nitrogen">
<div class="row">
<div class="input-field col s12 m12 l4 xl4">
<input value="" id="medianYieldGoal" type="number" min="0" readonly>
<div class="field-label">Yield goal (Mg/ha)</div>
</div>
<div class="input-field col s12 m12 l4 xl4">
<input value="30" id="NDemand" type="number" class="validate" min="0" step="1" disabled>
<div class="field-label tooltipped" data-position="bottom" data-tooltip="Approximate crop nitrogen demand">N demand (kg N/Mg)</div>
</div>
<div class="input-field col s12 m12 l4 xl4">
<input id="medianNRecommendation" type="number" min="0" readonly>
<div class="field-label tooltipped" data-position="bottom" data-tooltip="Recommended nitrogen to achieve yield goal.">N rec. (kg/ha)</div>
</div>
</div>
</div>
</li>
<!-- DATE FORECAST CONTROLS -->
<li>
<div class="collapsible-header purple-text text-darken-1"><i class="material-icons">timeline</i>Forecast Dates</div>
<div class="collapsible-body body-forecast">
<div class="row">
<div class="col s12 m12 l12 xl12">
<div id="managementDates" class="custom-slider"></div>
<div id="plantingDateSliderValue" class="field-label"></div>
<div id="forecastingDateSliderValue" class="field-label"></div>
</div>
</div>
</div>
</li>
<!-- OPTIONS CONTROLS -->
<li>
<div class="collapsible-header grey-text text-darken-2 "><i class="material-icons">settings</i>Options</div>
<div class="collapsible-body body-generic">
<div class="row">
<div class="col s12 m12 l12 xl12">
<label>
<input type="checkbox" id="visualizeScenarios"/><span>Visualize all scenarios</span>
</label>
</div>
</div>
<div class="row">
<div class="col s12 m12 l12 xl12">
<label>
<input type="checkbox" id="assimilateSoilMoistureObservations"/><span>Assimilate soil moisture observations</span>
</label>
</div>
</div>
<div class="row">
<div class="col s12 m12 l12 xl12">
<label>
<input type="checkbox" id="assimilateCanopyCoverObservations"/><span>Assimilate canopy cover observations</span>
</label>
</div>
</div>
<div class="row">
<div class="col s12 m12 l12 xl12">
<label>
<input type="checkbox" id="constantRootDepth" checked/><span>Constant maximum root depth</span>
</label>
</div>
</div>
<div class="row">
<div class="col s12 m12 l12 xl12">
<label>
<input type="checkbox" id="constantPlantHeight"/><span>Constant maximum plant height</span>
</label>
</div>
</div>
<div class="row" style="display: none;">
<div class="col s12 m12 l12 xl12">
<select id="xAxisVariableMenu">
<option value="date">Date</option>
<option value="daysAfterPlanting">Days after planting</option>
<option value="thermalUnits">Thermal units</option>
</select>
<div>X axis scale</div>
</div>
</div>
</div>
</li>
<!-- DESCRIPTION CONTROLS -->
<li>
<div class="collapsible-header grey-text text-darken-2"><i class="material-icons">short_text</i>Description</div>
<div class="collapsible-body body-generic">
<form class="col s12">
<div class="row">
<div class="input-field col s12">
<textarea id="projectDescription" class="materialize-textarea" rows="5" style="padding-top: 0px;" placeholder="Add a brief description for this project. Include references, links, DOI, and contact information."></textarea>
</div>
</div>
</form>
</div>
</li>
<!-- IMPORT/EXPORT-->
<li>
<div class="collapsible-header grey-text text-darken-2"><i class="material-icons">import_export</i>Import/Export Project</div>
<div class="collapsible-body body-generic">
<!-- IMPORT -->
<p class="grey-text">Use this option to load FDK projects. If your file only contains model settings, you first need to load climate and weather observations. </p>
<div class="row">
<div class="col sm12 m12 l6 xl6">
<span class="btn btn-file btn-small waves-effect deep-purple darken-1"><i class="material-icons left">file_upload</i>Import<input id="importBtn" type="file"></span>
</div>
</div>
<hr class="divider" style="margin-top: 50px; margin-bottom: 20px;">
<!-- EXPORT -->
<p class="grey-text">Use this option to share, store, or further analyze FDK projects. Selecting "Settings" + "Inputs" will make your project fully reproducible by anyone. Select "Outputs" to save model results for analysis outside FDK.</p>
<div class="row">
<div class="col sm12 m12 l6 xl6">
<p>
<label>
<input id="exportSettingsBox" type="checkbox" class="filled-in" checked="checked" />
<span>Settings</span>
</label>
</p>
<p>
<label>
<input id="exportInputsBox" type="checkbox" class="filled-in" checked="checked" />
<span>Inputs</span>
</label>
</p>
<p>
<label>
<input id="exportOutputsBox" type="checkbox" class="filled-in" />
<span>Outputs</span>
</label>
</p>
<a id="exportBtn" href="" class="btn btn-small waves-effect deep-purple darken-1"><i class="material-icons left">file_download</i>Export</a>
</div>
</div>
</div>
</li>
</ul>
</div> <!-- end of model controls -->
</ul>
<a href="#" data-target="slide-out" class="sidenav-trigger"><i class="material-icons">menu</i></a>
<!-- PLOTS -->
<main>
<div id="landing" style="padding:15vw; height: 85vh;">
<p class="grey-text center-align" style="font-size: 1.2rem;">Press <a id="loadExampleDatasetBtn" class="btn waves-effect deep-purple darken-1">Try</a> to load some data and start using ForecastDualKc.
You can also load your own climate and weather files. Use this <a class="btn waves-effect deep-purple darken-1" href="ForecastDualKc_v0.4/dataset/dataset.zip" download="example_dataset.zip">Example CSV dataset</a> to get started.</p>
</div>
<div id="dashboard" style="display: none;">
<div id="test"></div>
</div>
<div id="plotArea" style="display: none;">
<div class="row">
<div class="col s12 m12 l12 xl6">
<div id="plotSoilWater" class="myplot"></div>
</div>
<div class="col s12 m12 l12 xl6">
<div id="plotSurfaceSoilWater" class="myplot"></div>
</div>
</div>
<div class="row">
<div class="col s12 m12 l12 xl6">
<div id="plotETCumulative" class="myplot"></div>
</div>
<div class="col s12 m12 l12 xl6">
<div id="plotPrecipCumulative" class="myplot"></div>
</div>
</div>
<div class="row">
<div class="col s12 m12 l12 xl6">
<div id="plotCanopyCover" class="myplot"></div>
</div>
<div class="col s12 m12 l12 xl6">
<div id="plotCropCoefficient" class="myplot"></div>
</div>
</div>
<div class="row">
<div class="col s12 m12 l12 xl6">
<div id="plotETPartitionCumulative" class="myplot"></div>
</div>
<div class="col s12 m12 l12 xl6">
<div id="plotGrainYield" class="myplot"></div>
</div>
</div>
</div>
</main>
<footer>
<div class="row">
<p class="grey-text" style="text-align: right; margin: 0px; padding-top: 0px; padding-right: 30px;">Soil Water Processes Lab - Kansas State University - Copyright <span id='copyrightYear'></span> - MIT License</p>
</div>
</footer>
<script src="ForecastDualKc_v0.4/libs/materialize.min.js"></script>
<script src="ForecastDualKc_v0.4/libs/plotly_cartesian.min.js"></script>
<script src="ForecastDualKc_v0.4/libs/nouislider.min.js"></script>
<script src="ForecastDualKc_v0.4/libs/wNumb.min.js"></script>
<script src="ForecastDualKc_v0.4/js/ForecastDualKc_v0.4.js"></script>
</body>
</html>