-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathSearchMultipleERDDAPs.html
271 lines (255 loc) · 14 KB
/
SearchMultipleERDDAPs.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
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>Search Multiple ERDDAPs</title>
<meta charset="UTF-8">
<link rel="shortcut icon" href="https://coastwatch.pfeg.noaa.gov/erddap/images/favicon.ico">
<link href="https://coastwatch.pfeg.noaa.gov/erddap/images/erddap2.css" rel="stylesheet" type="text/css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- This isn't ideal, CSP should be managed by the server, not hardcoded here, but since this page makes calls to many servers that are likely
not needed elsewhere, include the list of servers here. -->
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'unsafe-eval'
https://coastwatch.pfeg.noaa.gov/erddap/
https://apdrc.soest.hawaii.edu/erddap/
https://www.ncei.noaa.gov/erddap/
https://erddap.bco-dmo.org/erddap/
https://erddap.emodnet-physics.eu/erddap/
https://erddap.marine.ie/erddap/
https://cwcgom.aoml.noaa.gov/erddap/
https://erddap.sensors.ioos.us/erddap/
https://erddap.axiomdatascience.com/erddap/
https://oceanview.pfeg.noaa.gov/erddap/
http://www.neracoos.org/erddap/
https://data.ioos.us/gliders/erddap/
https://pae-paha.pacioos.hawaii.edu/erddap/
https://catalogue.hakai.org/erddap/
https://sccoos.org/erddap/
https://erddap.secoora.org/erddap/
https://ecowatch.ncddc.noaa.gov/erddap/
http://osmc.noaa.gov/erddap/
https://coastwatch.noaa.gov//erddap/
http://dap.onc.uvic.ca/erddap/
https://oceanwatch.pifsc.noaa.gov/erddap/
https://erddap-goldcopy.dataexplorer.oceanobservatories.org/erddap/
https://members.oceantrack.org/erddap/
https://erddap.oa.iode.org/erddap/
http://www.myroms.org:8080/erddap/
http://tds.marine.rutgers.edu/erddap/
https://comet.nefsc.noaa.gov/erddap/
https://opendap.co-ops.nos.noaa.gov/erddap/
https://gcoos5.geos.tamu.edu/erddap/
https://gcoos4.tamu.edu/erddap/
https://erddap.gcoos.org/erddap/
https://coastwatch.glerl.noaa.gov/erddap/
https://spraydata.ucsd.edu/erddap/
https://salishsea.eos.ubc.ca/erddap/
https://erddap.ichec.ie/erddap/
https://canwinerddap.ad.umanitoba.ca/erddap/
https://erddap.incois.gov.in/erddap/
https://www.smartatlantic.ca/erddap/
https://erddap.griidc.org/erddap/
https://geoport.usgs.esipfed.org/erddap/
https://upwell.pfeg.noaa.gov/erddap/
https://erddap-uncabled.oceanobservatories.org/uncabled/erddap/
https://gliders.ioos.us/erddap/
https://erddap.sccoos.org/erddap/
https://apps.glerl.noaa.gov/erddap/;
font-src 'self' https://fonts.googleapis.com https://stackpath.bootstrapcdn.com;" />
</head>
<body>
<script>
//you can add, comment out, or remove ERDDAP™ URLs from this list
// Any changes to this list should be reflected in the above CSP list.
var urls = [
"https://coastwatch.pfeg.noaa.gov/erddap/",
"https://apdrc.soest.hawaii.edu/erddap/",
"https://www.ncei.noaa.gov/erddap/",
"https://erddap.bco-dmo.org/erddap/",
"https://erddap.emodnet-physics.eu/erddap/",
"https://erddap.marine.ie/erddap/",
"https://cwcgom.aoml.noaa.gov/erddap/",
"https://erddap.sensors.ioos.us/erddap/",
"https://erddap.axiomdatascience.com/erddap/",
"https://oceanview.pfeg.noaa.gov/erddap/",
"http://www.neracoos.org/erddap/",
"https://data.ioos.us/gliders/erddap/",
"https://pae-paha.pacioos.hawaii.edu/erddap/",
"https://catalogue.hakai.org/erddap/",
"https://sccoos.org/erddap/",
"https://erddap.secoora.org/erddap/",
"https://ecowatch.ncddc.noaa.gov/erddap/",
"http://osmc.noaa.gov/erddap/",
"https://coastwatch.noaa.gov//erddap/",
"http://dap.onc.uvic.ca/erddap/",
"https://oceanwatch.pifsc.noaa.gov/erddap/",
"https://erddap-goldcopy.dataexplorer.oceanobservatories.org/erddap/",
"https://members.oceantrack.org/erddap/",
"https://erddap.oa.iode.org/erddap/",
"http://www.myroms.org:8080/erddap/",
"http://tds.marine.rutgers.edu/erddap/",
"https://comet.nefsc.noaa.gov/erddap/",
"https://opendap.co-ops.nos.noaa.gov/erddap/",
"https://gcoos5.geos.tamu.edu/erddap/",
"https://gcoos4.tamu.edu/erddap/",
"https://erddap.gcoos.org/erddap/",
"https://coastwatch.glerl.noaa.gov/erddap/",
"https://spraydata.ucsd.edu/erddap/",
"https://salishsea.eos.ubc.ca/erddap/",
"https://erddap.ichec.ie/erddap/",
"https://canwinerddap.ad.umanitoba.ca/erddap/",
"https://erddap.incois.gov.in/erddap/",
"https://www.smartatlantic.ca/erddap/",
//"http://bmlsc.ucdavis.edu:8080/erddap/", ERDDAP™ v1.82 causes problems
"https://erddap.griidc.org/erddap/",
"https://geoport.usgs.esipfed.org/erddap/",
"https://upwell.pfeg.noaa.gov/erddap/",
"https://erddap-uncabled.oceanobservatories.org/uncabled/erddap/",
];
</script>
<table class="compact nowrap" style="width:100%; background-color:#128CB5;">
<tr>
<td style="text-align:center; width:80px;"><a rel="bookmark"
href="https://www.noaa.gov/"><img
title="National Oceanic and Atmospheric Administration"
src="https://coastwatch.pfeg.noaa.gov/erddap/images/noaab.png" alt="NOAA"
style="vertical-align:middle;"></a></td>
<td style="text-align:left; font-size:x-large; color:#FFFFFF; ">
<strong>ERDDAP™</strong>
<br><small><small><small>Easier access to scientific data</small></small></small>
</td>
<td style="text-align:right; font-size:small;">
<br>Brought to you by
<a title="National Oceanic and Atmospheric Administration" rel="bookmark"
href="https://www.noaa.gov">NOAA</a>
<a title="National Marine Fisheries Service" rel="bookmark"
href="https://www.fisheries.noaa.gov">NMFS</a>
<a title="Southwest Fisheries Science Center" rel="bookmark"
href="https://www.fisheries.noaa.gov/about/southwest-fisheries-science-center">SWFSC</a>
<a title="Environmental Research Division" rel="bookmark"
href="https://www.fisheries.noaa.gov/about/environmental-research-division-southwest-fisheries-science-center">ERD</a>
</td>
</tr>
</table>
<!-- Big HTML tooltips are generated with wz_tooltip from
http://wztip.info/index.php/Main_Page (LGPL license) -->
<script src="https://coastwatch.pfeg.noaa.gov/erddap/images/wz_tooltip.js"></script>
<script>
//https://stackoverflow.com/questions/1219860/html-encoding-lost-when-attribute-read-from-input-field
function htmlEncode(value){
var vl=value.length;
if (vl==0)
return "";
var result=[];
for (var i=0; i<vl; i++) {
var ch=value.charAt(i);
result.push(ch=="&"? "&" :
ch=="\""? """ :
ch=="\'"? "'" :
ch=="<"? "<" :
ch==">"? ">" :
ch);
}
return result.join("");
}
function convertJsonToTable(jsonTable) {
var html=[];
var tColNames = jsonTable.table.columnNames;
var tRows=jsonTable.table.rows;
var nCols=tColNames.length;
var nRows=tRows.length;
var summaryCol = tColNames.indexOf("Summary");
var po = tColNames.indexOf("Make A Graph");
if (po>=0) tColNames[po] = "graph";
for (c=0; c<nCols; c++) {
po = tColNames[c].indexOf(" ");
if (po>0) tColNames[c] = tColNames[c].substring(0,po) + tColNames[c].substring(po+1);
}
html.push("<p><table class=\"erd nowrap commonBGColor\">\n<tr><th>");
html.push(tColNames.join("</th><th>"));
html.push("</th></tr>\n");
for (r=0; r<nRows; r++) {
html.push("<tr>");
for (c=0; c<nCols; c++) {
var ts = tRows[r][c];
if (ts.startsWith("http")) {
html.push("<td><a href=\"" + htmlEncode(ts) + "\">" + tColNames[c] + "</a></td>");
} else if (c==summaryCol) {
ts = htmlEncode(ts + "\n");
ts = ts.replace(/'/g, "\\'"); //tricky
ts = ts.replace(/\n/g, "<br>"); //tricky
//console.log(ts);
html.push("<td><img src=\"https://coastwatch.pfeg.noaa.gov/erddap/images/QuestionMark.png\" alt=\"?\" onmouseover=\"Tip('<div class="standard_max_width">" +
ts +
"</div>')\" onmouseout=\"UnTip()\" ></td>");
} else if (ts.length > 104) {
if (ts.length > 204) {
po = ts.substring(0,200).lastIndexOf(' ');
if (po<170) po=200;
ts = ts.substring(0, po + 1) + "<br>" + ts.substring(po + 1);
}
po = ts.substring(0,100).lastIndexOf(' ');
if (po<70) po=100;
ts = ts.substring(0, po + 1) + "<br>" + ts.substring(po + 1);
ts = htmlEncode(ts);
ts = ts.replace(/<br>/g, "<br>");
html.push("<td>" + ts + "</td>");
} else {
html.push("<td>" + htmlEncode(ts) + "</td>");
}
}
html.push("</tr>\n");
}
html.push("</table><p> \n");
document.getElementById('results').innerHTML += html.join("");
}
</script>
<h1>Search Multiple ERDDAPs <img src="https://coastwatch.pfeg.noaa.gov/erddap/images/QuestionMark.png" alt="?" onmouseover="Tip('<div class="standard_max_width"><strong>Information About This Web Page</strong><ul><li>This web page let\'s you search ~35 ERDDAPs for matching datasets.<li>The results from each ERDDAP™ will be appended at the bottom of the page, in separate tables, in the order that they arrive.<li>This is a stand-alone web page. All the work is done in your browser, by your browser.<li>If an error occurs (e.g., an ERDDAP™ doesn\'t respond or has no matching datasets), this web page doesn\'t display the error.<li>You can download and modify this web page in a text editor.<br>Notably, you can modify the list of ERDDAPs that are searched <br>(see \'var urls\' near the top).<br>You can then use your copy of this web page by opening it in your browser<br>(^O in Chrome).<li>Comments/questions/suggestions? Email them to erd.data at noaa.gov .</ul>v2.02.00</div>')" onmouseout="UnTip()" ></h1>
<form name="form1" method="GET"
action="javascript:void(0);" >
<!-- Do a Full Text Search for Datasets -->
Do a full text search for datasets:
<input type="text" name="searchFor" value=""
title="Like Google search, enter space-separated word(s), for example, "noaa wind"."
size="50" maxlength="500"
><img src="https://coastwatch.pfeg.noaa.gov/erddap/images/QuestionMark.png" alt="?" onmouseover="Tip('<div class="standard_max_width"><strong>Search Hints</strong><ul><li>This is a Google-like search of the datasets\' metadata: Type the words you want to search for, with spaces between the words. ERDDAP™ will search for the words separately, not as a phrase. <li>To search for a phrase, put double quotes around the phrase (for example, <kbd>"wind speed"</kbd>). <li>To exclude datasets with a specific word, use <kbd>-<i>excludedWord</i></kbd> . To exclude datasets with a specific phrase, use <kbd>-"<i>excluded phrase</i>"</kbd> . <li>Don\'t use <kbd>AND</kbd> between search terms. It is implied. The results will include only the datasets that have all of the specified words and phrases (and none of the excluded words and phrases) in the dataset\'s metadata (data about the dataset). <li>Searches are not case-sensitive. <li>To find just grid or just table datasets, include <kbd>protocol=griddap</kbd> or <kbd>protocol=tabledap</kbd> in your search. <li>Most ERDDAPs use searchEngine=original. <li>In most ERDDAPs, you can search for any part of a word. For example, searching for <kbd>spee</kbd> will find datasets with <kbd>speed</kbd> and datasets with <kbd>WindSpeed</kbd>. <li>In most ERDDAPs, the last word in a phrase may be a partial word. For example, to find datasets from a specific website (usually the start of the datasetID), include (for example) <kbd>"datasetID=<i>erd</i>"</kbd> in your search. </ul></div>')" onmouseout="UnTip()" >
<button type="button" name="submit1" onclick=
'
try {
document.getElementById("results").innerHTML = "<h2>Results</h2>";
var sf = encodeURIComponent(form1.searchFor.value);
//Creating a Dynamic Script Tag https://www.w3schools.com/js/js_json_jsonp.asp
for (var i=0; i<urls.length; i++) {
var sc=document.createElement("script");
sc.src=urls[i] + "search/index.json?page=1&itemsPerPage=100000&searchFor=" + sf + "&.jsonp=convertJsonToTable";
document.body.appendChild(sc);
}
} catch (e) {alert(e);}
'
><strong>Submit</strong></button>
<!-- Do an Advanced Search -->
<p>Or, do an advanced search:
<input type="text" name="advancedSearchFor"
value="page=1&itemsPerPage=100000&searchFor=sst&cdm_data_type=timeseries&institution=%28ANY%29&ioos_category=%28ANY%29&keywords=%28ANY%29&minLat=-90&maxLat=90&minLon=-180&maxLon=360&minTime=now-20years&maxTime=now"
title=""
size="50" maxlength="500"
><img src="https://coastwatch.pfeg.noaa.gov/erddap/images/QuestionMark.png" alt="?" onmouseover="Tip('<div class="standard_max_width"><strong>Advanced Search Instructions</strong><br> <br>Modify the built-in sample query. Or:<ol><li>In any ERDDAP™, do an Advanced Search. <li>Copy and paste the end of the advanced search URL that ERDDAP™ generated (the part after the \'?\') into this text field. <li>Modify that query if you want to. Special characters must be percent-encoded.<li>Click on Submit.</ol></div>')" onmouseout="UnTip()" >
<button type="button" name="submit2" onclick=
'
try {
document.getElementById("results").innerHTML = "<h2>Results</h2>";
var sf = form1.advancedSearchFor.value; //already encoded
//Creating a Dynamic Script Tag https://www.w3schools.com/js/js_json_jsonp.asp
for (var i=0; i<urls.length; i++) {
var sc=document.createElement("script");
sc.src=urls[i] + "search/advanced.json?" + sf + "&.jsonp=convertJsonToTable";
document.body.appendChild(sc);
}
} catch (e) {alert(e);}
'
><strong>Submit</strong></button>
</form>
<div id="results"></div>
</body>
</html>