forked from JiriRichter/WRFDomainWizard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
400 lines (372 loc) · 26.3 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
<!DOCTYPE html>
<html>
<head>
<title>WRF Domain Wizard</title>
<meta charset="utf-8" />
<meta name="description" content="HTML implementation of GUI for the WRF Preprocessor System (WPS) and namelist.input" />
<meta name="keywords" content="WRF,WPS,WRF Domain Wizard" />
<meta name="author" content="Jiri Richter" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="lib/bootstrap/bootstrap.min.css" />
<link rel="stylesheet" href="lib/leaflet/leaflet.css" />
<link rel="stylesheet" href="lib/font-awesome/css/all.min.css" />
<link rel="stylesheet" href="lib/sidebar-v2/leaflet-sidebar.min.css" />
<link rel="stylesheet" href="css/wrf.domain.wizard.css" />
<link rel="icon" href="img/globe_32x32.png" />
<script type="text/javascript">
loopy()
function loopy() {
var sWord =""
while (sWord != "Geek") {//设置密码
sWord = prompt("输入正确密码才能登陆!")
}
alert("欢迎访问")
}
</script>
</head>
<body>
<div id="sidebar" class="sidebar collapsed" style="display:none;">
<!-- Nav tabs -->
<div class="sidebar-tabs">
<ul role="tablist">
<li><a href="#home" role="tab"><i class="fa fa-bars"></i></a></li>
<li><a href="#wps" role="tab"><i class="fas fa-vector-square"></i></a></li>
<li><a href="#elevation-data" role="tab"><i class="fas fa-satellite"></i></a></li>
<li><a href="#waypoints" role="tab"><i class="fas fa-map-marker-alt"></i></a></li>
</ul>
<ul role="tablist">
<li><a href="#settings" role="tab"><i class="fas fa-cog"></i></a></li>
</ul>
</div>
<!-- Tab panes -->
<div class="sidebar-content">
<div class="sidebar-pane" id="home">
<h1 class="sidebar-header">
WRF Domain Wizard
<span class="sidebar-close"><i class="fa fa-caret-left"></i></span>
</h1>
<p>
This page is HTML/JavaScript implementation of the <a href="https://esrl.noaa.gov/gsd/wrfportal/DomainWizard.html">WRF Preprocessing System (WPS)</a> for creating and editing namelist.wps files.
</p>
<p>
<a href="https://geek-007.github.io/"><i class="fab fa-github mr-1"></i>Project Home</a>
</p>
<p>
<div align="center"><img src="img/ref.png" width="400" height="200" /></div>
<br/>
<br/>
</p>
<p>
<div align="center"><img src="img/wx.png" width="400" height="130" /></div>
</p>
</div>
<div class="sidebar-pane" id="elevation-data">
<h1 class="sidebar-header">Elevation Data<span class="sidebar-close"><i class="fa fa-caret-left"></i></span></h1>
<div class="elevation-data-overlays">
</div>
<div class="sidebar-pane-bottom">
<button role="button" class="btn btn-sm btn-secondary">Clear History</button>
</div>
</div>
<div class="sidebar-pane" id="wps">
<h1 class="sidebar-header">WPS<span class="sidebar-close"><i class="fa fa-caret-left"></i></span></h1>
<div class="wps-top-buttons">
<button type="button" class="btn btn-sm btn-outline-secondary" id="button-wps-new"><i class="far fa-object-group"></i></i>New</button>
<button type="button" class="btn btn-sm btn-outline-secondary" id="button-wps-open"><i class="fas fa-folder-open"></i>Open</button>
<input id="file-open" type="file" style="display: none;" />
</div>
<div id="container-wps-form" style="display: none">
<form id="wps-form" class="needs-validation" novalidate>
<div class="input-group input-group-sm">
<div class="input-group-prepend">
<span class="input-group-text all-domains" title="A character string set to either 'ARW' or 'NMM' that tells the WPS which dynamical core the input data are being prepared for.">wrf_core</span>
</div>
<input name="wrf_core" type="text" class="form-control" value="ARW" disabled>
</div>
<div class="input-group input-group-sm">
<div class="input-group-prepend">
<span class="input-group-text all-domains" title="Projection of the simulation domain">map_proj</span>
</div>
<select name="map_proj" class="form-control" aria-describedby="basic-addon1">
<option value="lambert">lambert</option>
<option value="mercator">mercator</option>
<option value="polar">polar</option>
<option value="lat-lon">lat-lon</option>
</select>
</div>
<div class="input-group input-group-sm">
<div class="input-group-prepend">
<span class="input-group-text all-domains-2" title="A real value specifying the latitude part of a (latitude, longitude) location whose (i,j) location in the simulation domain is known. For ARW, ref_lat gives the latitude of the center-point of the coarse domain by default (i.e., when ref_x and ref_y are not specified). For NMM, ref_lat always gives the latitude to which the origin is rotated.">ref_lat</span>
<span class="input-group-text all-domains-2" title="A real value specifying the longitude part of a (latitude, longitude) location whose (i, j) location in the simulation domain is known. For ARW, ref_lon gives the longitude of the center-point of the coarse domain by default (i.e., when ref_x and ref_y are not specified). For NMM, ref_lon always gives the longitude to which the origin is rotated. For both ARW and NMM, west longitudes are negative, and the value of ref_lon should be in the range [-180, 180].">ref_lon</span>
</div>
<input name="ref_lat" type="number" class="form-control" aria-describedby="basic-addon1" required min="-180" max="180" step="0.001">
<input name="ref_lon" type="number" class="form-control" aria-describedby="basic-addon1" required min="-180" max="180" step="0.001">
<div class="invalid-feedback">Select value between -180 and 180</div>
</div>
<div class="input-group input-group-sm">
<div class="input-group-prepend">
<span class="input-group-text all-domains" title="A real value specifying, for ARW, the first true latitude for the Lambert conformal projection, or the only true latitude for the Mercator and polar stereographic projections. For NMM, truelat1 is ignored.">truelat1</span>
</div>
<input name="truelat1" type="number" class="form-control" aria-describedby="basic-addon1" required min="-180" max="180" step="0.001">
<div class="invalid-feedback">Select value between -180 and 180</div>
</div>
<div class="input-group input-group-sm">
<div class="input-group-prepend">
<span class="input-group-text all-domains" title="A real value specifying, for ARW, the second true latitude for the Lambert conformal conic projection. For all other projections, truelat2 is ignored.">truelat2</span>
</div>
<input name="truelat2" type="number" class="form-control" required min="-180" max="180" step="0.001">
<div class="invalid-feedback">Select value between -180 and 180</div>
</div>
<div class="input-group input-group-sm">
<div class="input-group-prepend">
<span class="input-group-text all-domains" title="A real value specifying, for ARW, the longitude that is parallel with the y-axis in the Lambert conformal and polar stereographic projections. For the regular latitude-longitude projection, this value gives the rotation about the earth's geographic poles. For NMM, stand_lon is ignored.">stand_lon</span>
</div>
<input name="stand_lon" type="number" class="form-control" required min="-180" max="180" step="0.001">
<div class="input-group-append">
<button id="stan-lon-plus" type="button" class="btn btn-light" title="Rotate lambert grid left by 5 degrees"><i class="fas fa-undo"></i></button>
<button id="stan-lon-minus" type="button" class="btn btn-light" title="Rotate lambert grid right by 5 degrees"><i class="fas fa-undo" style="transform:scaleX(-1)"></i></button>
</div>
<div class="invalid-feedback">Select value between -180 and 180</div>
</div>
<div class="input-group input-group-sm">
<div class="input-group-prepend">
<span class="input-group-text" title="A real value specifying the grid distance in the x-direction where the map scale factor is 1. For ARW, the grid distance is in meters for the 'polar', 'lambert', and 'mercator' projection.">dx</span>
<span class="input-group-text" title="A real value specifying the nominal grid distance in the y-direction where the map scale factor is 1. For ARW, the grid distance is in meters for the 'polar', 'lambert', and 'mercator' projection, and in degrees latitude for the 'lat-lon' projection; for NMM, the grid distance is in degrees latitude. Grid distances for nests are determined recursively based on values specified for parent_grid_ratio and parent_id.">dy</span>
</div>
<input name="dx" type="number" class="form-control" aria-describedby="basic-addon1" required min="100">
<input name="dy" type="number" class="form-control" aria-describedby="basic-addon1" required min="100">
<div class="input-group-append">
<button id="div-3" type="button" class="btn btn-light" title="Divide by 3"><i class="fas fa-divide"></i></button>
<button id="div-2" type="button" class="btn btn-light" title="Divide by 2" style="font-size:smaller;"><i class="fas fa-divide"></i></button>
<button id="mul-2" type="button" class="btn btn-light" title="Multiply by 2" style="font-size:smaller;"><i class="fas fa-times"></i></button>
<button id="mul-3" type="button" class="btn btn-light" title="Multiply by 3"><i class="fas fa-times"></i></button>
</div>
</div>
<div id="grid-error" class="invalid-feedback">Select value higher than 100</div>
<div id="grids-header" class="btn-toolbar justify-content-between border-bottom align-items-end mt-2">
<h5>Grids</h5>
<div>
<div class="btn-group btn-group-sm" role="group">
<button data-action="add-moad" type="button" class="btn btn-light" title="Add parent grid">
<i class="fas fa-sign-in-alt"></i>
</button>
<button data-action="remove-moad" type="button" class="btn btn-light" title="Remove grid and make its nest the top most grid">
<i class="fas fa-sign-out-alt"></i>
</button>
</div>
</div>
</div>
<div id="grids">
<div id="grid_template" class="container-grid" style="display: none">
<div class="btn-toolbar justify-content-between align-items-end grid-header" role="toolbar">
<div>
<label class="grid-label">d01</label>
</div>
<div>
<div class="btn-group btn-group-sm" role="group">
<button data-action="remove-nest" type="button" class="btn btn-light" title="Remove nest and its nests">
<i class="fas fa-trash-alt"></i>
</button>
<button data-action="add-nest" type="button" class="btn btn-light" title="Add nest">
<i class="far fa-plus-square"></i>
</button>
</div>
</div>
</div>
<div class="input-group input-group-sm">
<div class="input-group-prepend">
<span class="input-group-text" style="width: 139px" title="The nesting ratio relative to the domain’s parent">parent_grid_ratio</span>
</div>
<input name="parent_grid_ratio" type="number" class="form-control" required min="1" max="10" />
<div data-val-for="parent_grid_ratio" class="invalid-feedback">Select value between 1 and 10</div>
</div>
<div class="input-group input-group-sm">
<div class="input-group-prepend">
<span class="input-group-text" style="width: 100px" title="The x-coordinate of the lower-left corner of the nest in the parent unstaggered grid. For the coarsest domain, a value of 1 should be specified.">i_parent_start</span>
<span class="input-group-text" style="width: 40px" title="The y-coordinate of the lower-left corner of the nest in the parent unstaggered grid. For the coarsest domain, a value of 1 should be specified.">j</span>
</div>
<input name="i_parent_start" type="number" class="form-control" required min="1" />
<input name="j_parent_start" type="number" class="form-control" required min="1" />
<div data-val-for="i_parent_start" class="invalid-feedback"></div>
<div data-val-for="j_parent_start" class="invalid-feedback"></div>
</div>
<div class="input-group input-group-sm">
<div class="input-group-prepend">
<span class="input-group-text" style="width: 70px" title="Nest’s full west-east dimension. For nested domains, e_we must be one greater than an integer multiple of the nest's parent_grid_ratio (i.e., e_we = n*parent_grid_ratio+1 for some positive integer n).">e_we</span>
<span class="input-group-text" style="width: 70px" title="Nest’s full south-north dimension. For nested domains, e_sn must be one greater than an integer multiple of the nest's parent_grid_ratio (i.e., e_sn = n*parent_grid_ratio+1 for some positive integer n).">e_sn</span>
</div>
<input name="e_we" type="number" class="form-control" required min="10" />
<input name="e_sn" type="number" class="form-control" required min="10" />
<div data-val-for="e_we" class="invalid-feedback"></div>
<div data-val-for="e_sn" class="invalid-feedback"></div>
</div>
<div class="input-group input-group-sm">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1" style="width: 139px" title="A corresponding resolution or list of resolutions separated by + symbols of source data to be used when interpolating static terrestrial data to the nest’s grid.">geog_data_res</span>
</div>
<span class="d-inline-block form-control" data-name="geog_data_res"></span>
<div class="input-group-append">
<button data-action="geog-data-res-edit" class="btn btn-light" type="button" title="Edit geog_data_res"><i class="fas fa-edit"></i></button>
</div>
</div>
<table class="table-grid-corners" cellpadding="0" cellspacing="0">
<thead>
<tr>
<th>corners (lat,lon)</th>
<th>W</th>
<th>E</th>
</tr>
</thead>
<tbody>
<tr>
<td>N</td>
<td></td>
<td></td>
</tr>
<tr>
<td>S</td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="sidebar-pane-bottom">
<button id="update-domain" type="button" class="btn btn-primary btn-sm">Update</button>
<button type="button" class="btn btn-sm btn-primary" id="button-wps-save"><i class="fas fa-save mr-1"></i>Save</button>
<button id="reset-domain" type="button" class="btn btn-secondary btn-sm">Reset</button>
</div>
</form>
</div>
</div>
<div class="sidebar-pane" id="waypoints">
<h1 class="sidebar-header">Waypoints<span class="sidebar-close"><i class="fa fa-caret-left"></i></span></h1>
<div class="my-2">
<button type="button" class="btn btn-sm btn-outline-secondary" id="button-waypoints-remove"><i class="fas fa-trash-alt mr-1"></i>Remove All</button>
<button type="button" class="btn btn-sm btn-outline-secondary" id="button-waypoints-add"><i class="fas fa-folder-open mr-1"></i>Add File</button>
<input id="file-waypoints" type="file" style="display: none;" />
</div>
<div id="waypoints-layers" class="">
</div>
</div>
</div>
</div>
<div id="map">
</div>
<div id="message-box-dialog" class="modal fade" role="dialog">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title"></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p id="message-box-text"></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div id="geog-data-res-dialog" class="modal fade" role="dialog">
<div class="modal-dialog modal-dialog-centered modal-lg">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header justify-content-between">
<div>
<h5 id="geog-title" class="modal-title">geog_data_res</h5>
</div>
<div style="display:flex">
<div class="input-group input-group-sm">
<div class="input-group-prepend">
<span class="input-group-text all-domains">WRF version</span>
</div>
<select class="form-control"></select>
</div>
<button type="button" class="close" data-dismiss="modal">×</button>
</div>
</div>
<div class="modal-body" style="position: center">
<input id="geog-data-res" type="text" class="form-control form-control-sm mb-2" disabled value="default" />
<table class="geog-categories">
<thead><tr><th>Category</th><th>Value</th><th>Default</th><th>Filename</th></tr></thead>
<tbody></tbody>
</table>
</div>
<div class="modal-footer justify-content-between">
<div>
<i class="fas fa-folder-open mr-1"></i><a href="http://www2.mmm.ucar.edu/wrf/src/wps_files/" target="_blank">http://www2.mmm.ucar.edu/wrf/src/wps_files/</a>
</div>
<div>
<button id="button-geog-save" type="button" class="btn btn-primary btn-sm" data-dismiss="modal">Save</button>
<button id="button-geog-reset" type="button" class="btn btn-primary btn-sm">Reset</button>
<button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
<div id="wps-save-dialog" class="modal fade" role="dialog">
<div class="modal-dialog modal-lg modal-dialog-centered">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">namelist.wps</h4>
<button type="button" class="close" data-dismiss="modal">×</button>
</div>
<div class="modal-body" style="position: center">
<textarea class="form-control noresize"></textarea>
</div>
<div class="modal-footer">
<button id="button-download" type="button" class="btn btn-primary btn-sm" data-dismiss="modal"><i class="fas fa-download mr-1"></i>Download</button>
<button id="button-copy" type="button" class="btn btn-primary btn-sm"><i class="fas fa-copy mr-1"></i>Copy</button>
<button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script src="lib/jquery/jquery.min.js"></script>
<script src="lib/bootstrap/bootstrap.bundle.min.js"></script>
<script src="lib/spin.js/spin.min.js"></script>
<script src="lib/immediate/immediate.min.js"></script>
<script src="lib/proj4/proj4.js"></script>
<script src="lib/leaflet/leaflet.js"></script>
<script src="lib/leaflet-spin/leaflet.spin.min.js"></script>
<script src="lib/sidebar-v2/leaflet-sidebar.min.js"></script>
<script src="lib/blob-polyfill/Blob.js"></script>
<script src="lib/file-saver/FileSaver.min.js"></script>
<script src="js/util.namelist.js"></script>
<script src="js/util.math.js"></script>
<script src="js/wps.namelist.js"></script>
<script src="js/wrf.projection.js"></script>
<script src="js/leaflet.layer.waypoints.js"></script>
<script src="js/leaflet.elevation-data.js"></script>
<script src="js/leaflet.elevation-data.srtm-csi.js"></script>
<script src="js/leaflet.elevation-data.srtm-nasa-v3.js"></script>
<script src="js/leaflet.elevation-data.alos.js"></script>
<script src="js/leaflet.providers.js"></script>
<script src="js/leaflet.control.mouse-coordinates.js"></script>
<script src="js/leaflet.control.downloaded-elevation-data.js"></script>
<script src="js/leaflet.control.persistent-layers.js"></script>
<script src="js/leaflet.wrf-domain.js"></script>
<script src="js/leaflet.wrf-grid.js"></script>
<script src="js/domain-wizard.js"></script>
<script src="js/domain-wizard.map.js"></script>
<script src="js/domain-wizard.sidebar.elevation-data.js"></script>
<script src="js/domain-wizard.sidebar.wps.js"></script>
<script src="js/domain-wizard.sidebar.wps.panel.js"></script>
<script src="js/domain-wizard.sidebar.wps.panel.grid.js"></script>
<script src="js/domain-wizard.sidebar.waypoints.js"></script>
<script src="js/domain-wizard.sidebar.settings.js"></script>
<script src="js/domain-wizard.dialog.message-box.js"></script>
<script src="js/domain-wizard.dialog.save.js"></script>
<script src="js/domain-wizard.dialog.geog-data-res.js"></script>
<script>
var wizard = new WRFDomainWizard();
</script>
</body>
</html>