forked from hapi-server/server-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.htm
421 lines (366 loc) · 15.9 KB
/
index.htm
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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<meta name="keywords" content="HAPI Heliophysics Data UI">
<meta name="description"
content="HAPI Server UI; https://github.com/hapi-server/server-ui">
<meta name="keywords"
content="CDAWeb, SSCWeb, INTERMAGNET, Cluster Active Archive, LISIRD, AMDA, ViRES, SWARM, Space Weather">
<title>HAPI Browser</title>
<link rel="apple-touch-icon" sizes="180x180"
href="//hapi-server.org/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32"
href="//hapi-server.org/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16"
href="//hapi-server.org/favicon-16x16.png">
<link rel="manifest"
href="//hapi-server.org/site.webmanifest">
<link rel="stylesheet"
type="text/css" href="css/jquery-ui-1.9.2.custom.css"/>
<link rel="stylesheet"
type="text/css" href="css/highlight-10.0.0-github.css"/>
<link rel="stylesheet"
type="text/css" href="css/tooltipster.bundle.min.css"/>
<link rel="stylesheet"
type="text/css" href="css/tooltipster-sideTip-noir.min.css"/>
<link rel="stylesheet" href="css/index.css">
<script type="text/javascript"
src="js/deps/jquery-1.8.3.min.js"></script>
<script type="text/javascript"
src="js/deps/jquery-ui-1.9.2.custom.patched.js"></script>
<script type="text/javascript"
src="js/deps/jquery.ba-hashchange-1.3.js"></script>
<script type="text/javascript"
src="js/deps/tooltipster.bundle.min.js"></script>
<script type="text/javascript"
src="js/deps/highlight-10.0.0.min.js"></script>
<script type="text/javascript" charset="UTF-8"
src="js/deps/highlight-10.0.0-python.min.js"></script>
<script type="text/javascript" charset="UTF-8"
src="js/deps/highlight-10.0.0-matlab.min.js"></script>
<script>
hljs.initHighlightingOnLoad();
hljs.getLanguage('python').keywords +=
' hapiplot hapiclient hapi server dataset parameters start stop';
hljs.getLanguage('matlab').keywords +=
' hapiplot hapiclient hapi server dataset parameters start stop';
hljs.getLanguage('javascript').keywords +=
' hapi server dataset parameters start stop';
</script>
<script src="js/deps/dayjs-1.8.29/dayjs.min.js"></script>
<script src="js/deps/dayjs-1.8.29/duration.js"></script>
<script>
dayjs.extend(window.dayjs_plugin_duration);
dayjs().format();
</script>
<script type="text/javascript" src="js/deps/clipboard.min.js"></script>
<script type="text/javascript" src="js/parseQueryString.js"></script>
<script type="text/javascript" src="js/checkboxes.js"></script>
<script type="text/javascript" src="js/dropdowns.js"></script>
<script type="text/javascript" src="js/examplelist.js"></script>
<script type="text/javascript" src="js/index.js"></script>
<script>
// Set PROXY_URL to false to not use proxy if AJAX request fails.
let PROXY_URL = "proxy?url=";
// Will use server list at ./all.txt if found
let SERVER_LIST = "all.txt";
// Show all servers if SERVER_LIST if ./all.txt not found
let SERVER_LIST_FALLBACK =
"https://raw.githubusercontent.com/hapi-server/servers/master/all_.txt";
let VERIFIER = '__VERIFIER__';
let VERIFIER_EXTERNALLY_SET = true;
// If a server of this file replaced __VERIFIER__, use it.
// Otherwise set here. Similar for PLOTSERVER.
if (VERIFIER.startsWith('__')) {
VERIFIER_EXTERNALLY_SET = false;
VERIFIER = "https://hapi-server.org/verify";
}
let PLOTSERVER = '__PLOTSERVER__';
let PLOTSERVER_EXTERNALLY_SET = true;
if (PLOTSERVER.startsWith('__')) {
PLOTSERVER_EXTERNALLY_SET = false;
PLOTSERVER = "https://hapi-server.org/plot";
}
let URLWATCHER = 'https://hapi-server.org/urlwatcher/';
let devNote = "";
if (location.href.match("hapi-server.org/servers-dev")) {
SERVER_LIST = "all-combined.txt";
devNote = "Development server.<br>";
} else if (location.href.match("hapi-server.org/servers")) {
SERVER_LIST = "all-combined.txt";
} else if (location.href.match("//localhost") || location.host.match(/^[0-9]/)) {
if (location.href.match("//localhost")) {
SERVER_LIST = "all.txt";
} else {
SERVER_LIST = "all-combined.txt";
}
if (PLOTSERVER_EXTERNALLY_SET == false) {
PLOTSERVER = "http://localhost:5000";
}
if (VERIFIER_EXTERNALLY_SET == false) {
VERIFIER = "http://localhost:9999";
}
}
$(function() {
main(); // DOM is loaded. Call main() in js/index.js.
})
</script>
</head>
<body>
<div id="selections">
<details id="options-details">
<summary><span class="link">Options</span></summary>
<div id="optionscheckboxes">
<div class="tooltip-right"
title="When requesting data, show data in broswer instead of only providing a download link.">
<div style="margin-top: 0.5em; font-weight: bold;">Show</div>
<label>
<input id="showdata" type="checkbox" value="">
data
</label>
</div>
<div class="tooltip-right"
title="Show request time.">
<label>
<input id="showtiming" type="checkbox" value="">
request time
</label>
</div>
<div class="tooltip-right"
title="Keep requested URLs in view after request has succeeded.">
<label>
<input id="showrequests" type="checkbox" value="">
requested URLs
</label>
</div>
<div class="tooltip-right"
title="Show link to server status monitoring results (for debugging server responses)">
<label>
<input id="showstatuslink" type="checkbox" value="">
server status link
</label>
</div>
<div class="tooltip-right" title="Show verifier links (for debugging server responses)">
<label>
<input id="showverifierlink" type="checkbox" value="">
verifier links
</label>
</div>
<div class="tooltip-right" title="Show TestData servers (for testing clients)">
<label>
<input id="showtestdatalink" type="checkbox" value="">
test servers
</label>
</div>
<div class="tooltip-right" title="Show debug statements in console.">
<label>
<input id="console" type="checkbox" value="">
logging in console
</label>
</div>
<br>
<div class="tooltip-right" title="URL of server to use for plots">
<b>Plotserver</b>
<input id="plotserver" type="text" value="" style="width:100%">
</div>
<div class="tooltip-right" title="Use cached images from plot server if available.">
<label>
<input id="useimagecache" type="checkbox" value="">
Use cached images
</label>
</div>
<div class="tooltip-right" title="Use cached data from plot server if available.">
<label>
<input id="usedatacache" type="checkbox" value="">
Use cached data for images
</label>
</div>
</div>
</details>
<div>
<span id="dropdowns0" class="dropdown"></span>
<span id="dropdowns1" class="dropdown"></span>
<span id="dropdowns2" class="dropdown"></span>
<span id="dropdowns3" class="dropdown"></span>
<span id="dropdowns4" class="dropdown"></span>
<span id="dropdowns5" class="dropdown"></span>
<span id="dropdowns6" class="dropdown"></span>
<span id="dropdowns7" class="dropdown"></span>
<span id="dropdowns8" class="dropdown"></span>
<button id="clear" class='simple' type="button" title="re-set drop-downs">
Clear
</button>
</div>
<div id="logo">
<a href="https://hapi-server.org">
<img src="https://hapi-server.github.io/logos/HAPI-bw.svg"/></a>
</div>
</div>
<div id="infodiv">
<div id="xstatus"></div>
<div id="loadinfo">
<code id="timing"></code>
<code id="loading"></code>
</div>
<div id="overviewinfo">
<b>Overview</b>
<p>
The Heliophysics Data Application Programmer's Interface (HAPI) specification is a time series download and streaming format specification.
</p>
<p>
When data are available from a HAPI server, there is no need to download data files and write custom file reader programs. Using a HAPI client library, data can be loaded into an array using a single command in IDL, Javascript, MATLAB, and Python.
</p>
<p>
Space Weather-related data are available through this interface and HAPI software from
<a class="tooltip"
href="http://amda.irap.omp.eu/"
title="CDPP's Automated Multi-Dataset Analysis">
AMDA
</a>,
<a class="tooltip"
href="https://sci.esa.int/web/cluster/"
title="ESA's Cluster Active Archive">
CAA
</a>,
<a class="tooltip"
href="https://ccmc.gsfc.nasa.gov/"
title="NASA's Community Coordinated Modeling Center">
CCMC
</a>,
<a class="tooltip"
href="https://cdaweb.gsfc.nasa.gov/"
title="NASA's Coordinated Data Analysis Web Services">
CDAWeb</a>,
<a class="tooltip"
href="https://das2.org/"
title="University of Iowa's Data Access System, v2">
DAS2</a>,
<a class="tooltip"
href="https://intermagnet.org/"
title="International Real-time Magnetic Observatory Network">
INTERMAGNET</a>,
<a class="tooltip"
href="https://intermagnet.org/"
title="UC Boulder's LASP Interactive Solar Irradiance Data Center">
LISIRD</a>,
<a class="tooltip"
href="https://sscweb.gsfc.nasa.gov/"
title="NASA's Satellite Situation Center Web Services">
SSCWeb</a>,
<a class="tooltip"
href="https://vires.services/"
title="Virtual Research Service for ESA's Swarm mission">
ViRES</a>.
</p>
<ul id="overviewul">
<li>
Use this interface to
<ul>
<li>
generate a
<a class="tooltip"
title="Heliphysics Data Application Interface: https://hapi-server.org/"
href="https://hapi-server.org/">HAPI
</a>
URL to download data,
</li>
<li>
plot data from a HAPI server, and
</li>
<li>generate
cURL /
<a title="https://github.com/hapi-server/client-idl"
href="https://github.com/hapi-server/client-idl">IDL</a> /
<a title="https://github.com/hapi-server/client-idl"
href="https://github.com/hapi-server/client-idl">IDL SPEDAS</a> /
<a title="https://github.com/hapi-server/client-javascript"
href="https://github.com/hapi-server/client-javascript">Javascript</a> /
<a title="https://github.com/hapi-server/client-matlab"
href="https://github.com/hapi-server/client-matlab">MATLAB</a> /
<a title="https://github.com/hapi-server/client-python"
href="https://github.com/hapi-server/client-python">Python</a> /
<a title="https://github.com/spedas/pyspedas"
href="https://github.com/spedas/pyspedas">Python SPEDAS</a> /
Wget
scripts that read and plot the selected parameter.
</li>
</ul>
</li>
<li>
Begin by selecting a HAPI-enabled data server on the left or selecting an example below.
</li>
</ul>
<details>
<summary><b>Example Queries</b></summary>
<ul>
<li>
<a href="#server=CDAWeb&dataset=OMNI_HRO2_1MIN¶meters=SYM_H&start=2003-10-20T00:00:00Z&stop=2003-11-30T00:00:00.000Z&return=image&format=svg">Plot <code>SYM-H</code> timeseries</a> from the <a href="#server=CDAWeb">CDAWeb HAPI server</a>
</li>
<li>
<a href="#server=LISIRD&dataset=empire_tsi¶meters=irradiance&start=1947-02-14T00:00:00.000Z&stop=1997-02-16T00:00:00.000Z&return=image&format=svg">Plot <code>empire_tsi</code> timeseries</a> from the <a href="#server=LISIRD">LASP/LiSIRD HAPI server</a>
</li>
<li>
<a href="#server=AMDA&dataset=c2-t96-model¶meters=b_t96gse_c2_xyz_gse&start=2003-10-20T00:00:00Z&stop=2003-10-30T00:00:00.000Z&return=image&format=svg">Plot <b>B</b> from T96 model at Cluster 2 location</a> from the <a href="#server=AMDA">AMDA HAPI server</a>
</li>
<li>
<a href="#server=CDAWeb&dataset=OMNI_HRO2_1MIN¶meters=SYM_H&start=2003-10-20T00:00:00Z&stop=2003-11-30T00:00:00.000Z&return=data&format=csv&style=noheader">List <code>SYM-H</code> timeseries</a> from the <a href="#server=CDAWeb">CDAWeb HAPI server</a>
</li>
<li>
<a href="#server=CDAWeb&dataset=OMNI_HRO2_1MIN¶meters=SYM_H&start=2003-10-20T00:00:00Z&stop=2003-11-30T00:00:00.000Z&return=script&format=python">Create Python script to read <code>SYM-H</code> timeseries</a> from the <a href="#server=CDAWeb">CDAWeb HAPI server</a>
</li>
<li>
<a href="#server=CDAWeb&dataset=OMNI_HRO2_1MIN¶meters=SYM_H&start=2003-10-20T00:00:00Z&stop=2003-11-30T00:00:00.000Z&return=script&format=matlab">Create MATLAB script to read <code>SYM-H</code> timeseries</a> from the <a href="#server=CDAWeb">CDAWeb HAPI server</a>
</li>
<li>
<a href="#server=CDAWeb&dataset=OMNI_HRO2_1MIN¶meters=SYM_H&start=2003-10-20T00:00:00Z&stop=2003-11-30T00:00:00.000Z&return=script&format=idl">Create IDL script to read <code>SYM-H</code> timeseries</a> from the <a href="#server=CDAWeb">CDAWeb HAPI server</a>
</li>
<li>
<a href="#server=CDAWeb&dataset=OMNI_HRO2_1MIN¶meters=AL_INDEX&start=2003-10-20T00:00:00Z&stop=2003-11-30T00:00:00.000Z&return=image&format=gallery">Plot <code>AL Index</code> timeseries</a> from the <a href="#server=CDAWeb">CDAWeb HAPI server</a>
</li>
<li>
<a href="#server=https://pds-ppi.igpp.ucla.edu/hapi">Use this interface to test a server not in server list drop-down menu.</a>
</li>
</ul>
</details>
<!--div id="examplelist"><span id="examples0"></span></div>-->
</div>
<div id="output">
<div id="downloadlink" style="display:none;"></div>
<div id="scriptcopy" class='tooltip' title='Copy to clipboard'>
<button type="button" class="btn tooltip" style="padding:0px;" data-clipboard-text="">
<img class='clippy' width='20' src='css/clippy.png' alt='Copy to clipboard'>
</button>
<span id="copied" class="tooltip" title="Copied!"></span>
</div>
<div id="scripttext">
</div>
<div id="image" style="display:none;">
</div>
<div id="image2" style="display:none;">
</div>
</div>
<div id="serverinfo">
<b>Server information</b>
<ul></ul>
</div>
<div id="datasetinfo">
<b>Dataset information</b>
<ul></ul>
</div>
<div id="parameterinfo">
<b>Parameter information</b>
<ul></ul>
</div>
</div>
<div id="footer">
The code for this interface is available on
<a href="https://github.com/hapi-server/server-ui">
GitHub
</a>
<img height="12px" src="css/images/github-mark.svg"/>.
Please report any issues in its
<a href="https://github.com/hapi-server/server-ui/issues">Issue Tracker</a>.
</div>
</body>
</html>