Spaces:
Runtime error
Runtime error
Updated layout
Browse files- Gradio_app.ipynb +18 -720
- app.py +14 -14
Gradio_app.ipynb
CHANGED
@@ -2,14 +2,14 @@
|
|
2 |
"cells": [
|
3 |
{
|
4 |
"cell_type": "code",
|
5 |
-
"execution_count":
|
6 |
"metadata": {},
|
7 |
"outputs": [
|
8 |
{
|
9 |
"name": "stdout",
|
10 |
"output_type": "stream",
|
11 |
"text": [
|
12 |
-
"Running on local URL: http://127.0.0.1:
|
13 |
"\n",
|
14 |
"To create a public link, set `share=True` in `launch()`.\n"
|
15 |
]
|
@@ -17,7 +17,7 @@
|
|
17 |
{
|
18 |
"data": {
|
19 |
"text/html": [
|
20 |
-
"<div><iframe src=\"http://127.0.0.1:
|
21 |
],
|
22 |
"text/plain": [
|
23 |
"<IPython.core.display.HTML object>"
|
@@ -30,711 +30,9 @@
|
|
30 |
"data": {
|
31 |
"text/plain": []
|
32 |
},
|
33 |
-
"execution_count":
|
34 |
"metadata": {},
|
35 |
"output_type": "execute_result"
|
36 |
-
},
|
37 |
-
{
|
38 |
-
"name": "stdout",
|
39 |
-
"output_type": "stream",
|
40 |
-
"text": [
|
41 |
-
"Starting to download inventory\n",
|
42 |
-
"Finished downloading inventory\n",
|
43 |
-
"Processing CI.CCC...\n",
|
44 |
-
"Downloading waveform for CI_CCC_2019-07-04T17:33:40.494920Z\n",
|
45 |
-
"Skipping CI_CCC_2019-07-04T17:33:40.494920Z\n",
|
46 |
-
"Processing CI.CLC...\n",
|
47 |
-
"Processing CI.JRC2...\n",
|
48 |
-
"Reading cached waveform\n"
|
49 |
-
]
|
50 |
-
},
|
51 |
-
{
|
52 |
-
"name": "stderr",
|
53 |
-
"output_type": "stream",
|
54 |
-
"text": [
|
55 |
-
"/Users/anovosel/Documents/phase-hunter/phasehunter/data_preparation.py:210: UserWarning: Creating a tensor from a list of numpy.ndarrays is extremely slow. Please consider converting the list to a single numpy.ndarray with numpy.array() before converting to a tensor. (Triggered internally at /Users/runner/work/pytorch/pytorch/pytorch/torch/csrc/utils/tensor_new.cpp:248.)\n",
|
56 |
-
" return torch.tensor([waveform]*128, dtype=torch.float)\n"
|
57 |
-
]
|
58 |
-
},
|
59 |
-
{
|
60 |
-
"name": "stdout",
|
61 |
-
"output_type": "stream",
|
62 |
-
"text": [
|
63 |
-
"Added CI.JRC2 to the list of waveforms\n",
|
64 |
-
"Processing CI.LRL...\n",
|
65 |
-
"Reading cached waveform\n",
|
66 |
-
"Added CI.LRL to the list of waveforms\n",
|
67 |
-
"Processing CI.MPM...\n",
|
68 |
-
"Reading cached waveform\n",
|
69 |
-
"Processing CI.Q0072...\n",
|
70 |
-
"Reading cached waveform\n",
|
71 |
-
"Processing CI.SLA...\n",
|
72 |
-
"Reading cached waveform\n",
|
73 |
-
"Added CI.SLA to the list of waveforms\n",
|
74 |
-
"Processing CI.SRT...\n",
|
75 |
-
"Reading cached waveform\n",
|
76 |
-
"Added CI.SRT to the list of waveforms\n",
|
77 |
-
"Processing CI.TOW2...\n",
|
78 |
-
"Reading cached waveform\n",
|
79 |
-
"Added CI.TOW2 to the list of waveforms\n",
|
80 |
-
"Processing CI.WBM...\n",
|
81 |
-
"Downloading waveform for CI_WBM_2019-07-04T17:33:40.063616Z\n",
|
82 |
-
"Skipping CI_WBM_2019-07-04T17:33:40.063616Z\n",
|
83 |
-
"Processing CI.WCS2...\n",
|
84 |
-
"Downloading waveform for CI_WCS2_2019-07-04T17:33:40.200958Z\n",
|
85 |
-
"Skipping CI_WCS2_2019-07-04T17:33:40.200958Z\n",
|
86 |
-
"Processing CI.WMF...\n",
|
87 |
-
"Reading cached waveform\n",
|
88 |
-
"Added CI.WMF to the list of waveforms\n",
|
89 |
-
"Processing CI.WNM...\n",
|
90 |
-
"Reading cached waveform\n",
|
91 |
-
"Processing CI.WRC2...\n",
|
92 |
-
"Downloading waveform for CI_WRC2_2019-07-04T17:33:38.698099Z\n",
|
93 |
-
"Skipping CI_WRC2_2019-07-04T17:33:38.698099Z\n",
|
94 |
-
"Processing CI.WRV2...\n",
|
95 |
-
"Reading cached waveform\n",
|
96 |
-
"Processing CI.WVP2...\n",
|
97 |
-
"Downloading waveform for CI_WVP2_2019-07-04T17:33:39.650402Z\n",
|
98 |
-
"Skipping CI_WVP2_2019-07-04T17:33:39.650402Z\n",
|
99 |
-
"Processing NP.1809...\n",
|
100 |
-
"Reading cached waveform\n",
|
101 |
-
"Processing NP.5419...\n",
|
102 |
-
"Reading cached waveform\n",
|
103 |
-
"Processing PB.B916...\n",
|
104 |
-
"Reading cached waveform\n",
|
105 |
-
"Processing PB.B917...\n",
|
106 |
-
"Reading cached waveform\n",
|
107 |
-
"Processing PB.B918...\n",
|
108 |
-
"Reading cached waveform\n",
|
109 |
-
"Processing PB.B921...\n",
|
110 |
-
"Reading cached waveform\n",
|
111 |
-
"Starting to run predictions\n"
|
112 |
-
]
|
113 |
-
},
|
114 |
-
{
|
115 |
-
"name": "stderr",
|
116 |
-
"output_type": "stream",
|
117 |
-
"text": [
|
118 |
-
"/var/folders/_g/3q5q8_dj0ydcpktxlwxb5vrh0000gq/T/ipykernel_21875/2718049065.py:301: FutureWarning: The input object of type 'Tensor' is an array-like implementing one of the corresponding protocols (`__array__`, `__array_interface__` or `__array_struct__`); but not a sequence (or 0-D). In the future, this object will be coerced as if it was first converted using `np.array(obj)`. To retain the old behaviour, you have to either modify the type 'Tensor', or assign to an empty array created with `np.empty(correct_shape, dtype=object)`.\n",
|
119 |
-
" waveforms = np.array(waveforms)[selection_indexes]\n",
|
120 |
-
"/var/folders/_g/3q5q8_dj0ydcpktxlwxb5vrh0000gq/T/ipykernel_21875/2718049065.py:301: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.\n",
|
121 |
-
" waveforms = np.array(waveforms)[selection_indexes]\n",
|
122 |
-
"/var/folders/_g/3q5q8_dj0ydcpktxlwxb5vrh0000gq/T/ipykernel_21875/2718049065.py:308: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).\n",
|
123 |
-
" waveforms = [torch.tensor(waveform) for waveform in waveforms]\n"
|
124 |
-
]
|
125 |
-
},
|
126 |
-
{
|
127 |
-
"name": "stdout",
|
128 |
-
"output_type": "stream",
|
129 |
-
"text": [
|
130 |
-
"Starting plotting 3 waveforms\n",
|
131 |
-
"Fetching topography\n",
|
132 |
-
"Plotting topo\n"
|
133 |
-
]
|
134 |
-
},
|
135 |
-
{
|
136 |
-
"name": "stderr",
|
137 |
-
"output_type": "stream",
|
138 |
-
"text": [
|
139 |
-
"/Users/anovosel/miniconda3/envs/phasehunter/lib/python3.11/site-packages/bmi_topography/api_key.py:49: UserWarning: You are using a demo key to fetch data from OpenTopography, functionality will be limited. See https://bmi-topography.readthedocs.io/en/latest/#api-key for more information.\n",
|
140 |
-
" warnings.warn(\n"
|
141 |
-
]
|
142 |
-
},
|
143 |
-
{
|
144 |
-
"name": "stdout",
|
145 |
-
"output_type": "stream",
|
146 |
-
"text": [
|
147 |
-
"Plotting waveform 1/3\n",
|
148 |
-
"Station 36.11758, -117.85486 has P velocity 4.746091546067712 and S velocity 2.649725414106055\n",
|
149 |
-
"Plotting waveform 2/3\n"
|
150 |
-
]
|
151 |
-
},
|
152 |
-
{
|
153 |
-
"name": "stderr",
|
154 |
-
"output_type": "stream",
|
155 |
-
"text": [
|
156 |
-
"/var/folders/_g/3q5q8_dj0ydcpktxlwxb5vrh0000gq/T/ipykernel_21875/2718049065.py:393: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
|
157 |
-
" output_picks = output_picks.append(pd.DataFrame({'station_name': [names[i]],\n"
|
158 |
-
]
|
159 |
-
},
|
160 |
-
{
|
161 |
-
"name": "stdout",
|
162 |
-
"output_type": "stream",
|
163 |
-
"text": [
|
164 |
-
"Station 35.69235, -117.75051 has P velocity 3.4155476453388767 and S velocity 1.67967367867923\n",
|
165 |
-
"Plotting waveform 3/3\n",
|
166 |
-
"Station 35.98249, -117.80885 has P velocity 4.135967410510336 and S velocity 2.2605591132307814\n",
|
167 |
-
"Plotting stations\n"
|
168 |
-
]
|
169 |
-
},
|
170 |
-
{
|
171 |
-
"name": "stderr",
|
172 |
-
"output_type": "stream",
|
173 |
-
"text": [
|
174 |
-
"/var/folders/_g/3q5q8_dj0ydcpktxlwxb5vrh0000gq/T/ipykernel_21875/2718049065.py:393: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
|
175 |
-
" output_picks = output_picks.append(pd.DataFrame({'station_name': [names[i]],\n",
|
176 |
-
"/var/folders/_g/3q5q8_dj0ydcpktxlwxb5vrh0000gq/T/ipykernel_21875/2718049065.py:393: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
|
177 |
-
" output_picks = output_picks.append(pd.DataFrame({'station_name': [names[i]],\n",
|
178 |
-
"/var/folders/_g/3q5q8_dj0ydcpktxlwxb5vrh0000gq/T/ipykernel_21875/2718049065.py:413: UserWarning: FixedFormatter should only be used together with FixedLocator\n",
|
179 |
-
" ax[i].set_xticklabels(ax[i].get_xticks(), rotation = 50)\n"
|
180 |
-
]
|
181 |
-
},
|
182 |
-
{
|
183 |
-
"name": "stdout",
|
184 |
-
"output_type": "stream",
|
185 |
-
"text": [
|
186 |
-
"Starting to download inventory\n",
|
187 |
-
"Finished downloading inventory\n",
|
188 |
-
"Processing CI.ADO...\n",
|
189 |
-
"Reading cached waveform\n",
|
190 |
-
"Added CI.ADO to the list of waveforms\n",
|
191 |
-
"Processing CI.ALP...\n",
|
192 |
-
"Downloading waveform for CI_ALP_2019-07-04T17:33:53.584674Z\n",
|
193 |
-
"Skipping CI_ALP_2019-07-04T17:33:53.584674Z\n",
|
194 |
-
"Processing CI.APL...\n",
|
195 |
-
"Downloading waveform for CI_APL_2019-07-04T17:33:46.544764Z\n",
|
196 |
-
"Skipping CI_APL_2019-07-04T17:33:46.544764Z\n",
|
197 |
-
"Processing CI.ARV...\n",
|
198 |
-
"Reading cached waveform\n",
|
199 |
-
"Added CI.ARV to the list of waveforms\n",
|
200 |
-
"Processing CI.AVM...\n",
|
201 |
-
"Downloading waveform for CI_AVM_2019-07-04T17:33:51.411326Z\n",
|
202 |
-
"Skipping CI_AVM_2019-07-04T17:33:51.411326Z\n",
|
203 |
-
"Processing CI.BAI...\n",
|
204 |
-
"Downloading waveform for CI_BAI_2019-07-04T17:33:55.818842Z\n",
|
205 |
-
"Skipping CI_BAI_2019-07-04T17:33:55.818842Z\n",
|
206 |
-
"Processing CI.BTP...\n",
|
207 |
-
"Downloading waveform for CI_BTP_2019-07-04T17:33:55.357598Z\n",
|
208 |
-
"Skipping CI_BTP_2019-07-04T17:33:55.357598Z\n",
|
209 |
-
"Processing CI.CCA...\n",
|
210 |
-
"Downloading waveform for CI_CCA_2019-07-04T17:33:46.095412Z\n",
|
211 |
-
"Skipping CI_CCA_2019-07-04T17:33:46.095412Z\n",
|
212 |
-
"Processing CI.CCC...\n",
|
213 |
-
"Downloading waveform for CI_CCC_2019-07-04T17:33:40.494920Z\n",
|
214 |
-
"Skipping CI_CCC_2019-07-04T17:33:40.494920Z\n",
|
215 |
-
"Processing CI.CGO...\n",
|
216 |
-
"Downloading waveform for CI_CGO_2019-07-04T17:33:47.556930Z\n",
|
217 |
-
"Skipping CI_CGO_2019-07-04T17:33:47.556930Z\n",
|
218 |
-
"Processing CI.CJV2...\n",
|
219 |
-
"Downloading waveform for CI_CJV2_2019-07-04T17:33:54.933047Z\n",
|
220 |
-
"Skipping CI_CJV2_2019-07-04T17:33:54.933047Z\n",
|
221 |
-
"Processing CI.CLC...\n",
|
222 |
-
"Processing CI.CSL...\n",
|
223 |
-
"Downloading waveform for CI_CSL_2019-07-04T17:33:57.850444Z\n",
|
224 |
-
"Skipping CI_CSL_2019-07-04T17:33:57.850444Z\n",
|
225 |
-
"Processing CI.CVW...\n",
|
226 |
-
"Downloading waveform for CI_CVW_2019-07-04T17:33:55.861897Z\n",
|
227 |
-
"Skipping CI_CVW_2019-07-04T17:33:55.861897Z\n",
|
228 |
-
"Processing CI.CWC...\n",
|
229 |
-
"Reading cached waveform\n",
|
230 |
-
"Added CI.CWC to the list of waveforms\n",
|
231 |
-
"Processing CI.DAW...\n",
|
232 |
-
"Downloading waveform for CI_DAW_2019-07-04T17:33:43.308028Z\n",
|
233 |
-
"Skipping CI_DAW_2019-07-04T17:33:43.308028Z\n",
|
234 |
-
"Processing CI.DTC...\n",
|
235 |
-
"Downloading waveform for CI_DTC_2019-07-04T17:33:59.020880Z\n",
|
236 |
-
"Skipping CI_DTC_2019-07-04T17:33:59.020880Z\n",
|
237 |
-
"Processing CI.DTP...\n",
|
238 |
-
"Downloading waveform for CI_DTP_2019-07-04T17:33:43.742158Z\n",
|
239 |
-
"Skipping CI_DTP_2019-07-04T17:33:43.742158Z\n",
|
240 |
-
"Processing CI.EDW2...\n",
|
241 |
-
"Reading cached waveform\n",
|
242 |
-
"Added CI.EDW2 to the list of waveforms\n",
|
243 |
-
"Processing CI.FDR...\n",
|
244 |
-
"Downloading waveform for CI_FDR_2019-07-04T17:33:51.676399Z\n",
|
245 |
-
"Skipping CI_FDR_2019-07-04T17:33:51.676399Z\n",
|
246 |
-
"Processing CI.FOX2...\n",
|
247 |
-
"Downloading waveform for CI_FOX2_2019-07-04T17:33:52.666361Z\n",
|
248 |
-
"Skipping CI_FOX2_2019-07-04T17:33:52.666361Z\n",
|
249 |
-
"Processing CI.FUR...\n",
|
250 |
-
"Reading cached waveform\n",
|
251 |
-
"Added CI.FUR to the list of waveforms\n",
|
252 |
-
"Processing CI.GRA...\n",
|
253 |
-
"Reading cached waveform\n",
|
254 |
-
"Added CI.GRA to the list of waveforms\n",
|
255 |
-
"Processing CI.GSC...\n",
|
256 |
-
"Reading cached waveform\n",
|
257 |
-
"Added CI.GSC to the list of waveforms\n",
|
258 |
-
"Processing CI.HAR...\n",
|
259 |
-
"Downloading waveform for CI_HAR_2019-07-04T17:33:47.473752Z\n",
|
260 |
-
"Skipping CI_HAR_2019-07-04T17:33:47.473752Z\n",
|
261 |
-
"Processing CI.HDH...\n",
|
262 |
-
"Downloading waveform for CI_HDH_2019-07-04T17:33:54.782440Z\n",
|
263 |
-
"Skipping CI_HDH_2019-07-04T17:33:54.782440Z\n",
|
264 |
-
"Processing CI.HEC...\n",
|
265 |
-
"Reading cached waveform\n",
|
266 |
-
"Added CI.HEC to the list of waveforms\n",
|
267 |
-
"Processing CI.HOL...\n",
|
268 |
-
"Downloading waveform for CI_HOL_2019-07-04T17:33:55.074657Z\n",
|
269 |
-
"Skipping CI_HOL_2019-07-04T17:33:55.074657Z\n",
|
270 |
-
"Processing CI.HYS...\n",
|
271 |
-
"Downloading waveform for CI_HYS_2019-07-04T17:33:49.006533Z\n",
|
272 |
-
"Skipping CI_HYS_2019-07-04T17:33:49.006533Z\n",
|
273 |
-
"Processing CI.ISA...\n",
|
274 |
-
"Reading cached waveform\n",
|
275 |
-
"Added CI.ISA to the list of waveforms\n",
|
276 |
-
"Processing CI.JNH2...\n",
|
277 |
-
"Downloading waveform for CI_JNH2_2019-07-04T17:33:55.441974Z\n",
|
278 |
-
"Skipping CI_JNH2_2019-07-04T17:33:55.441974Z\n",
|
279 |
-
"Processing CI.JRC2...\n",
|
280 |
-
"Reading cached waveform\n",
|
281 |
-
"Added CI.JRC2 to the list of waveforms\n",
|
282 |
-
"Processing CI.LDR...\n",
|
283 |
-
"Downloading waveform for CI_LDR_2019-07-04T17:33:50.153267Z\n",
|
284 |
-
"Skipping CI_LDR_2019-07-04T17:33:50.153267Z\n",
|
285 |
-
"Processing CI.LEO...\n",
|
286 |
-
"Downloading waveform for CI_LEO_2019-07-04T17:33:54.338977Z\n",
|
287 |
-
"Skipping CI_LEO_2019-07-04T17:33:54.338977Z\n",
|
288 |
-
"Processing CI.LJR...\n",
|
289 |
-
"Downloading waveform for CI_LJR_2019-07-04T17:33:56.299609Z\n",
|
290 |
-
"Skipping CI_LJR_2019-07-04T17:33:56.299609Z\n",
|
291 |
-
"Processing CI.LMR2...\n",
|
292 |
-
"Downloading waveform for CI_LMR2_2019-07-04T17:33:48.052793Z\n",
|
293 |
-
"Skipping CI_LMR2_2019-07-04T17:33:48.052793Z\n",
|
294 |
-
"Processing CI.LRL...\n",
|
295 |
-
"Reading cached waveform\n",
|
296 |
-
"Added CI.LRL to the list of waveforms\n",
|
297 |
-
"Processing CI.LRR2...\n",
|
298 |
-
"Downloading waveform for CI_LRR2_2019-07-04T17:33:54.561166Z\n",
|
299 |
-
"Skipping CI_LRR2_2019-07-04T17:33:54.561166Z\n",
|
300 |
-
"Processing CI.LUC2...\n",
|
301 |
-
"Downloading waveform for CI_LUC2_2019-07-04T17:33:56.345510Z\n",
|
302 |
-
"Skipping CI_LUC2_2019-07-04T17:33:56.345510Z\n",
|
303 |
-
"Processing CI.MAG...\n",
|
304 |
-
"Downloading waveform for CI_MAG_2019-07-04T17:33:52.529563Z\n",
|
305 |
-
"Skipping CI_MAG_2019-07-04T17:33:52.529563Z\n",
|
306 |
-
"Processing CI.MPM...\n",
|
307 |
-
"Reading cached waveform\n",
|
308 |
-
"Processing CI.MRS...\n",
|
309 |
-
"Downloading waveform for CI_MRS_2019-07-04T17:33:45.737308Z\n",
|
310 |
-
"Skipping CI_MRS_2019-07-04T17:33:45.737308Z\n",
|
311 |
-
"Processing CI.NBS...\n",
|
312 |
-
"Downloading waveform for CI_NBS_2019-07-04T17:33:54.819174Z\n",
|
313 |
-
"Skipping CI_NBS_2019-07-04T17:33:54.819174Z\n",
|
314 |
-
"Processing CI.NEN...\n",
|
315 |
-
"Downloading waveform for CI_NEN_2019-07-04T17:33:53.764119Z\n",
|
316 |
-
"Skipping CI_NEN_2019-07-04T17:33:53.764119Z\n",
|
317 |
-
"Processing CI.OSI...\n",
|
318 |
-
"Reading cached waveform\n",
|
319 |
-
"Added CI.OSI to the list of waveforms\n",
|
320 |
-
"Processing CI.PDE...\n",
|
321 |
-
"Downloading waveform for CI_PDE_2019-07-04T17:33:58.304637Z\n",
|
322 |
-
"Skipping CI_PDE_2019-07-04T17:33:58.304637Z\n",
|
323 |
-
"Processing CI.PUT...\n",
|
324 |
-
"Downloading waveform for CI_PUT_2019-07-04T17:33:52.090783Z\n",
|
325 |
-
"Skipping CI_PUT_2019-07-04T17:33:52.090783Z\n",
|
326 |
-
"Processing CI.Q0013...\n",
|
327 |
-
"Reading cached waveform\n",
|
328 |
-
"Processing CI.Q0024...\n",
|
329 |
-
"Reading cached waveform\n",
|
330 |
-
"Processing CI.Q0035...\n",
|
331 |
-
"Reading cached waveform\n",
|
332 |
-
"Processing CI.Q0045...\n",
|
333 |
-
"Downloading waveform for CI_Q0045_2019-07-04T17:33:57.352801Z\n",
|
334 |
-
"Skipping CI_Q0045_2019-07-04T17:33:57.352801Z\n",
|
335 |
-
"Processing CI.Q0056...\n",
|
336 |
-
"Reading cached waveform\n",
|
337 |
-
"Processing CI.Q0061...\n",
|
338 |
-
"Reading cached waveform\n",
|
339 |
-
"Processing CI.Q0065...\n",
|
340 |
-
"Downloading waveform for CI_Q0065_2019-07-04T17:33:49.714824Z\n",
|
341 |
-
"Skipping CI_Q0065_2019-07-04T17:33:49.714824Z\n",
|
342 |
-
"Processing CI.Q0068...\n",
|
343 |
-
"Reading cached waveform\n",
|
344 |
-
"Processing CI.Q0072...\n",
|
345 |
-
"Reading cached waveform\n",
|
346 |
-
"Processing CI.RMM...\n",
|
347 |
-
"Downloading waveform for CI_RMM_2019-07-04T17:33:55.887825Z\n",
|
348 |
-
"Skipping CI_RMM_2019-07-04T17:33:55.887825Z\n",
|
349 |
-
"Processing CI.RRX...\n",
|
350 |
-
"Reading cached waveform\n",
|
351 |
-
"Added CI.RRX to the list of waveforms\n",
|
352 |
-
"Processing CI.SBB2...\n",
|
353 |
-
"Downloading waveform for CI_SBB2_2019-07-04T17:33:51.760655Z\n",
|
354 |
-
"Skipping CI_SBB2_2019-07-04T17:33:51.760655Z\n",
|
355 |
-
"Processing CI.SHO...\n",
|
356 |
-
"Reading cached waveform\n",
|
357 |
-
"Added CI.SHO to the list of waveforms\n",
|
358 |
-
"Processing CI.SHU...\n",
|
359 |
-
"Downloading waveform for CI_SHU_2019-07-04T17:33:53.494364Z\n",
|
360 |
-
"Skipping CI_SHU_2019-07-04T17:33:53.494364Z\n",
|
361 |
-
"Processing CI.SLA...\n",
|
362 |
-
"Reading cached waveform\n",
|
363 |
-
"Added CI.SLA to the list of waveforms\n",
|
364 |
-
"Processing CI.SLM...\n",
|
365 |
-
"Downloading waveform for CI_SLM_2019-07-04T17:33:57.261460Z\n",
|
366 |
-
"Skipping CI_SLM_2019-07-04T17:33:57.261460Z\n",
|
367 |
-
"Processing CI.SPG2...\n",
|
368 |
-
"Downloading waveform for CI_SPG2_2019-07-04T17:33:50.938614Z\n",
|
369 |
-
"Skipping CI_SPG2_2019-07-04T17:33:50.938614Z\n",
|
370 |
-
"Processing CI.SRT...\n",
|
371 |
-
"Reading cached waveform\n",
|
372 |
-
"Added CI.SRT to the list of waveforms\n",
|
373 |
-
"Processing CI.TEH...\n",
|
374 |
-
"Downloading waveform for CI_TEH_2019-07-04T17:33:47.782229Z\n",
|
375 |
-
"Skipping CI_TEH_2019-07-04T17:33:47.782229Z\n",
|
376 |
-
"Processing CI.TEJ...\n",
|
377 |
-
"Downloading waveform for CI_TEJ_2019-07-04T17:33:50.888789Z\n",
|
378 |
-
"Skipping CI_TEJ_2019-07-04T17:33:50.888789Z\n",
|
379 |
-
"Processing CI.THC...\n",
|
380 |
-
"Downloading waveform for CI_THC_2019-07-04T17:33:53.562586Z\n",
|
381 |
-
"Skipping CI_THC_2019-07-04T17:33:53.562586Z\n",
|
382 |
-
"Processing CI.TIN...\n",
|
383 |
-
"Reading cached waveform\n",
|
384 |
-
"Added CI.TIN to the list of waveforms\n",
|
385 |
-
"Processing CI.TJR...\n",
|
386 |
-
"Downloading waveform for CI_TJR_2019-07-04T17:33:53.114791Z\n",
|
387 |
-
"Skipping CI_TJR_2019-07-04T17:33:53.114791Z\n",
|
388 |
-
"Processing CI.TOW2...\n",
|
389 |
-
"Reading cached waveform\n",
|
390 |
-
"Added CI.TOW2 to the list of waveforms\n",
|
391 |
-
"Processing CI.TPO...\n",
|
392 |
-
"Downloading waveform for CI_TPO_2019-07-04T17:33:50.757819Z\n",
|
393 |
-
"Skipping CI_TPO_2019-07-04T17:33:50.757819Z\n",
|
394 |
-
"Processing CI.VCS...\n",
|
395 |
-
"Downloading waveform for CI_VCS_2019-07-04T17:33:55.459774Z\n",
|
396 |
-
"Skipping CI_VCS_2019-07-04T17:33:55.459774Z\n",
|
397 |
-
"Processing CI.VTV...\n",
|
398 |
-
"Reading cached waveform\n",
|
399 |
-
"Added CI.VTV to the list of waveforms\n",
|
400 |
-
"Processing CI.WAS2...\n",
|
401 |
-
"Downloading waveform for CI_WAS2_2019-07-04T17:33:47.167220Z\n",
|
402 |
-
"Skipping CI_WAS2_2019-07-04T17:33:47.167220Z\n",
|
403 |
-
"Processing CI.WBM...\n",
|
404 |
-
"Downloading waveform for CI_WBM_2019-07-04T17:33:40.063616Z\n",
|
405 |
-
"Skipping CI_WBM_2019-07-04T17:33:40.063616Z\n",
|
406 |
-
"Processing CI.WBS...\n",
|
407 |
-
"Downloading waveform for CI_WBS_2019-07-04T17:33:43.109050Z\n",
|
408 |
-
"Skipping CI_WBS_2019-07-04T17:33:43.109050Z\n",
|
409 |
-
"Processing CI.WCS2...\n",
|
410 |
-
"Downloading waveform for CI_WCS2_2019-07-04T17:33:40.200958Z\n",
|
411 |
-
"Skipping CI_WCS2_2019-07-04T17:33:40.200958Z\n",
|
412 |
-
"Processing CI.WHF...\n",
|
413 |
-
"Downloading waveform for CI_WHF_2019-07-04T17:33:44.817776Z\n",
|
414 |
-
"Skipping CI_WHF_2019-07-04T17:33:44.817776Z\n",
|
415 |
-
"Processing CI.WLH2...\n",
|
416 |
-
"Downloading waveform for CI_WLH2_2019-07-04T17:33:45.980879Z\n",
|
417 |
-
"Skipping CI_WLH2_2019-07-04T17:33:45.980879Z\n",
|
418 |
-
"Processing CI.WLS...\n",
|
419 |
-
"Downloading waveform for CI_WLS_2019-07-04T17:33:53.177944Z\n",
|
420 |
-
"Skipping CI_WLS_2019-07-04T17:33:53.177944Z\n",
|
421 |
-
"Processing CI.WLS2...\n",
|
422 |
-
"Downloading waveform for CI_WLS2_2019-07-04T17:33:53.177444Z\n",
|
423 |
-
"Skipping CI_WLS2_2019-07-04T17:33:53.177444Z\n",
|
424 |
-
"Processing CI.WMF...\n",
|
425 |
-
"Reading cached waveform\n",
|
426 |
-
"Added CI.WMF to the list of waveforms\n",
|
427 |
-
"Processing CI.WNM...\n",
|
428 |
-
"Reading cached waveform\n",
|
429 |
-
"Processing CI.WOR...\n",
|
430 |
-
"Downloading waveform for CI_WOR_2019-07-04T17:33:43.547818Z\n",
|
431 |
-
"Skipping CI_WOR_2019-07-04T17:33:43.547818Z\n",
|
432 |
-
"Processing CI.WRC2...\n",
|
433 |
-
"Downloading waveform for CI_WRC2_2019-07-04T17:33:38.698099Z\n",
|
434 |
-
"Skipping CI_WRC2_2019-07-04T17:33:38.698099Z\n",
|
435 |
-
"Processing CI.WRV2...\n",
|
436 |
-
"Reading cached waveform\n",
|
437 |
-
"Processing CI.WVP2...\n",
|
438 |
-
"Downloading waveform for CI_WVP2_2019-07-04T17:33:39.650402Z\n",
|
439 |
-
"Skipping CI_WVP2_2019-07-04T17:33:39.650402Z\n",
|
440 |
-
"Processing LB.DAC...\n",
|
441 |
-
"Reading cached waveform\n",
|
442 |
-
"Added LB.DAC to the list of waveforms\n",
|
443 |
-
"Processing NN.FMT...\n",
|
444 |
-
"Reading cached waveform\n",
|
445 |
-
"Processing NN.GVN...\n",
|
446 |
-
"Reading cached waveform\n",
|
447 |
-
"Processing NN.GWY...\n",
|
448 |
-
"Reading cached waveform\n",
|
449 |
-
"Added NN.GWY to the list of waveforms\n",
|
450 |
-
"Processing NN.MCA...\n",
|
451 |
-
"Reading cached waveform\n",
|
452 |
-
"Processing NN.PAN...\n",
|
453 |
-
"Downloading waveform for NN_PAN_2019-07-04T17:33:46.806604Z\n",
|
454 |
-
"Skipping NN_PAN_2019-07-04T17:33:46.806604Z\n",
|
455 |
-
"Processing NN.QSM...\n",
|
456 |
-
"Reading cached waveform\n",
|
457 |
-
"Added NN.QSM to the list of waveforms\n",
|
458 |
-
"Processing NN.STHB...\n",
|
459 |
-
"Reading cached waveform\n",
|
460 |
-
"Added NN.STHB to the list of waveforms\n",
|
461 |
-
"Processing NN.WCT...\n",
|
462 |
-
"Reading cached waveform\n",
|
463 |
-
"Processing NN.WLDB...\n",
|
464 |
-
"Reading cached waveform\n",
|
465 |
-
"Added NN.WLDB to the list of waveforms\n",
|
466 |
-
"Processing NP.1035...\n",
|
467 |
-
"Downloading waveform for NP_1035_2019-07-04T17:33:46.374472Z\n",
|
468 |
-
"Skipping NP_1035_2019-07-04T17:33:46.374472Z\n",
|
469 |
-
"Processing NP.1484...\n",
|
470 |
-
"Downloading waveform for NP_1484_2019-07-04T17:33:51.966935Z\n",
|
471 |
-
"Skipping NP_1484_2019-07-04T17:33:51.966935Z\n",
|
472 |
-
"Processing NP.1808...\n",
|
473 |
-
"Downloading waveform for NP_1808_2019-07-04T17:33:52.487446Z\n",
|
474 |
-
"Skipping NP_1808_2019-07-04T17:33:52.487446Z\n",
|
475 |
-
"Processing NP.1809...\n",
|
476 |
-
"Reading cached waveform\n",
|
477 |
-
"Processing NP.262...\n",
|
478 |
-
"Downloading waveform for NP_262_2019-07-04T17:33:54.156962Z\n",
|
479 |
-
"Skipping NP_262_2019-07-04T17:33:54.156962Z\n",
|
480 |
-
"Processing NP.5029...\n",
|
481 |
-
"Downloading waveform for NP_5029_2019-07-04T17:33:54.407584Z\n",
|
482 |
-
"Skipping NP_5029_2019-07-04T17:33:54.407584Z\n",
|
483 |
-
"Processing NP.5031...\n",
|
484 |
-
"Downloading waveform for NP_5031_2019-07-04T17:33:55.297413Z\n",
|
485 |
-
"Skipping NP_5031_2019-07-04T17:33:55.297413Z\n",
|
486 |
-
"Processing NP.5419...\n",
|
487 |
-
"Reading cached waveform\n",
|
488 |
-
"Processing NP.5420...\n",
|
489 |
-
"Downloading waveform for NP_5420_2019-07-04T17:33:56.859872Z\n",
|
490 |
-
"Skipping NP_5420_2019-07-04T17:33:56.859872Z\n",
|
491 |
-
"Processing NP.5480...\n",
|
492 |
-
"Downloading waveform for NP_5480_2019-07-04T17:33:54.127751Z\n",
|
493 |
-
"Skipping NP_5480_2019-07-04T17:33:54.127751Z\n",
|
494 |
-
"Processing NP.5481...\n",
|
495 |
-
"Downloading waveform for NP_5481_2019-07-04T17:33:55.578047Z\n",
|
496 |
-
"Skipping NP_5481_2019-07-04T17:33:55.578047Z\n",
|
497 |
-
"Processing PB.B916...\n",
|
498 |
-
"Reading cached waveform\n",
|
499 |
-
"Processing PB.B917...\n",
|
500 |
-
"Reading cached waveform\n",
|
501 |
-
"Processing PB.B918...\n",
|
502 |
-
"Reading cached waveform\n",
|
503 |
-
"Processing PB.B921...\n",
|
504 |
-
"Reading cached waveform\n",
|
505 |
-
"Processing SN.AMD...\n",
|
506 |
-
"Reading cached waveform\n",
|
507 |
-
"Processing SN.BTW...\n",
|
508 |
-
"Reading cached waveform\n",
|
509 |
-
"Processing SN.DOM...\n",
|
510 |
-
"Reading cached waveform\n",
|
511 |
-
"Processing SN.HEL...\n",
|
512 |
-
"Reading cached waveform\n",
|
513 |
-
"Added SN.HEL to the list of waveforms\n",
|
514 |
-
"Processing SN.LEC...\n",
|
515 |
-
"Reading cached waveform\n",
|
516 |
-
"Processing SN.SGR...\n",
|
517 |
-
"Reading cached waveform\n",
|
518 |
-
"Processing SN.SW353...\n",
|
519 |
-
"Reading cached waveform\n",
|
520 |
-
"Processing SN.SW435...\n",
|
521 |
-
"Reading cached waveform\n",
|
522 |
-
"Processing SN.SW511...\n",
|
523 |
-
"Reading cached waveform\n",
|
524 |
-
"Processing SN.TIM...\n",
|
525 |
-
"Reading cached waveform\n",
|
526 |
-
"Processing SN.WESTB...\n",
|
527 |
-
"Reading cached waveform\n",
|
528 |
-
"Processing SN.WESTC...\n",
|
529 |
-
"Reading cached waveform\n",
|
530 |
-
"Processing SN.WESTD...\n",
|
531 |
-
"Reading cached waveform\n"
|
532 |
-
]
|
533 |
-
},
|
534 |
-
{
|
535 |
-
"name": "stderr",
|
536 |
-
"output_type": "stream",
|
537 |
-
"text": [
|
538 |
-
"/var/folders/_g/3q5q8_dj0ydcpktxlwxb5vrh0000gq/T/ipykernel_21875/2718049065.py:301: FutureWarning: The input object of type 'Tensor' is an array-like implementing one of the corresponding protocols (`__array__`, `__array_interface__` or `__array_struct__`); but not a sequence (or 0-D). In the future, this object will be coerced as if it was first converted using `np.array(obj)`. To retain the old behaviour, you have to either modify the type 'Tensor', or assign to an empty array created with `np.empty(correct_shape, dtype=object)`.\n",
|
539 |
-
" waveforms = np.array(waveforms)[selection_indexes]\n",
|
540 |
-
"/var/folders/_g/3q5q8_dj0ydcpktxlwxb5vrh0000gq/T/ipykernel_21875/2718049065.py:301: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.\n",
|
541 |
-
" waveforms = np.array(waveforms)[selection_indexes]\n",
|
542 |
-
"/var/folders/_g/3q5q8_dj0ydcpktxlwxb5vrh0000gq/T/ipykernel_21875/2718049065.py:308: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).\n",
|
543 |
-
" waveforms = [torch.tensor(waveform) for waveform in waveforms]\n"
|
544 |
-
]
|
545 |
-
},
|
546 |
-
{
|
547 |
-
"name": "stdout",
|
548 |
-
"output_type": "stream",
|
549 |
-
"text": [
|
550 |
-
"Starting to run predictions\n",
|
551 |
-
"Starting plotting 15 waveforms\n",
|
552 |
-
"Fetching topography\n"
|
553 |
-
]
|
554 |
-
},
|
555 |
-
{
|
556 |
-
"name": "stderr",
|
557 |
-
"output_type": "stream",
|
558 |
-
"text": [
|
559 |
-
"/Users/anovosel/miniconda3/envs/phasehunter/lib/python3.11/site-packages/bmi_topography/api_key.py:49: UserWarning: You are using a demo key to fetch data from OpenTopography, functionality will be limited. See https://bmi-topography.readthedocs.io/en/latest/#api-key for more information.\n",
|
560 |
-
" warnings.warn(\n"
|
561 |
-
]
|
562 |
-
},
|
563 |
-
{
|
564 |
-
"name": "stdout",
|
565 |
-
"output_type": "stream",
|
566 |
-
"text": [
|
567 |
-
"Plotting topo\n",
|
568 |
-
"Plotting waveform 1/15\n",
|
569 |
-
"Station 36.277, -117.593697 has P velocity nan and S velocity nan\n",
|
570 |
-
"Plotting waveform 2/15\n"
|
571 |
-
]
|
572 |
-
},
|
573 |
-
{
|
574 |
-
"name": "stderr",
|
575 |
-
"output_type": "stream",
|
576 |
-
"text": [
|
577 |
-
"/var/folders/_g/3q5q8_dj0ydcpktxlwxb5vrh0000gq/T/ipykernel_21875/2718049065.py:393: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
|
578 |
-
" output_picks = output_picks.append(pd.DataFrame({'station_name': [names[i]],\n",
|
579 |
-
"/var/folders/_g/3q5q8_dj0ydcpktxlwxb5vrh0000gq/T/ipykernel_21875/2718049065.py:393: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
|
580 |
-
" output_picks = output_picks.append(pd.DataFrame({'station_name': [names[i]],\n"
|
581 |
-
]
|
582 |
-
},
|
583 |
-
{
|
584 |
-
"name": "stdout",
|
585 |
-
"output_type": "stream",
|
586 |
-
"text": [
|
587 |
-
"Station 35.66278, -118.47403 has P velocity 5.509786370336251 and S velocity 2.9747824951914903\n",
|
588 |
-
"Plotting waveform 3/15\n",
|
589 |
-
"Station 35.98249, -117.80885 has P velocity 4.130917960194064 and S velocity 2.262643275505274\n",
|
590 |
-
"Plotting waveform 4/15\n"
|
591 |
-
]
|
592 |
-
},
|
593 |
-
{
|
594 |
-
"name": "stderr",
|
595 |
-
"output_type": "stream",
|
596 |
-
"text": [
|
597 |
-
"/var/folders/_g/3q5q8_dj0ydcpktxlwxb5vrh0000gq/T/ipykernel_21875/2718049065.py:393: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
|
598 |
-
" output_picks = output_picks.append(pd.DataFrame({'station_name': [names[i]],\n",
|
599 |
-
"/var/folders/_g/3q5q8_dj0ydcpktxlwxb5vrh0000gq/T/ipykernel_21875/2718049065.py:393: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
|
600 |
-
" output_picks = output_picks.append(pd.DataFrame({'station_name': [names[i]],\n"
|
601 |
-
]
|
602 |
-
},
|
603 |
-
{
|
604 |
-
"name": "stdout",
|
605 |
-
"output_type": "stream",
|
606 |
-
"text": [
|
607 |
-
"Station 36.186001, -116.6698 has P velocity 6.119231109018811 and S velocity 3.5120359625275515\n",
|
608 |
-
"Plotting waveform 5/15\n",
|
609 |
-
"Station 36.645401, -116.338799 has P velocity 6.418864645982177 and S velocity 3.40318240942485\n",
|
610 |
-
"Plotting waveform 6/15\n",
|
611 |
-
"Station 34.875332, -116.996841 has P velocity 6.553167458647257 and S velocity 3.7407386971609977\n",
|
612 |
-
"Plotting waveform 7/15\n"
|
613 |
-
]
|
614 |
-
},
|
615 |
-
{
|
616 |
-
"name": "stderr",
|
617 |
-
"output_type": "stream",
|
618 |
-
"text": [
|
619 |
-
"/var/folders/_g/3q5q8_dj0ydcpktxlwxb5vrh0000gq/T/ipykernel_21875/2718049065.py:393: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
|
620 |
-
" output_picks = output_picks.append(pd.DataFrame({'station_name': [names[i]],\n",
|
621 |
-
"/var/folders/_g/3q5q8_dj0ydcpktxlwxb5vrh0000gq/T/ipykernel_21875/2718049065.py:393: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
|
622 |
-
" output_picks = output_picks.append(pd.DataFrame({'station_name': [names[i]],\n"
|
623 |
-
]
|
624 |
-
},
|
625 |
-
{
|
626 |
-
"name": "stdout",
|
627 |
-
"output_type": "stream",
|
628 |
-
"text": [
|
629 |
-
"Station 35.965, -116.869102 has P velocity 6.441474783566184 and S velocity 3.6633153313634157\n",
|
630 |
-
"Plotting waveform 8/15\n",
|
631 |
-
"Station 35.69235, -117.75051 has P velocity 3.4203901487527526 and S velocity 1.680319839371246\n",
|
632 |
-
"Plotting waveform 9/15\n"
|
633 |
-
]
|
634 |
-
},
|
635 |
-
{
|
636 |
-
"name": "stderr",
|
637 |
-
"output_type": "stream",
|
638 |
-
"text": [
|
639 |
-
"/var/folders/_g/3q5q8_dj0ydcpktxlwxb5vrh0000gq/T/ipykernel_21875/2718049065.py:393: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
|
640 |
-
" output_picks = output_picks.append(pd.DataFrame({'station_name': [names[i]],\n",
|
641 |
-
"/var/folders/_g/3q5q8_dj0ydcpktxlwxb5vrh0000gq/T/ipykernel_21875/2718049065.py:393: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
|
642 |
-
" output_picks = output_picks.append(pd.DataFrame({'station_name': [names[i]],\n"
|
643 |
-
]
|
644 |
-
},
|
645 |
-
{
|
646 |
-
"name": "stdout",
|
647 |
-
"output_type": "stream",
|
648 |
-
"text": [
|
649 |
-
"Station 36.439049, -118.080498 has P velocity 5.286053905666142 and S velocity 3.0215671601782677\n",
|
650 |
-
"Plotting waveform 10/15\n",
|
651 |
-
"Station 35.899529, -116.275299 has P velocity 6.306307564126418 and S velocity 3.5668976471999314\n",
|
652 |
-
"Plotting waveform 11/15\n"
|
653 |
-
]
|
654 |
-
},
|
655 |
-
{
|
656 |
-
"name": "stderr",
|
657 |
-
"output_type": "stream",
|
658 |
-
"text": [
|
659 |
-
"/var/folders/_g/3q5q8_dj0ydcpktxlwxb5vrh0000gq/T/ipykernel_21875/2718049065.py:393: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
|
660 |
-
" output_picks = output_picks.append(pd.DataFrame({'station_name': [names[i]],\n",
|
661 |
-
"/var/folders/_g/3q5q8_dj0ydcpktxlwxb5vrh0000gq/T/ipykernel_21875/2718049065.py:393: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
|
662 |
-
" output_picks = output_picks.append(pd.DataFrame({'station_name': [names[i]],\n"
|
663 |
-
]
|
664 |
-
},
|
665 |
-
{
|
666 |
-
"name": "stdout",
|
667 |
-
"output_type": "stream",
|
668 |
-
"text": [
|
669 |
-
"Station 34.6145, -118.7235 has P velocity nan and S velocity nan\n",
|
670 |
-
"Plotting waveform 12/15\n"
|
671 |
-
]
|
672 |
-
},
|
673 |
-
{
|
674 |
-
"name": "stderr",
|
675 |
-
"output_type": "stream",
|
676 |
-
"text": [
|
677 |
-
"/var/folders/_g/3q5q8_dj0ydcpktxlwxb5vrh0000gq/T/ipykernel_21875/2718049065.py:393: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
|
678 |
-
" output_picks = output_picks.append(pd.DataFrame({'station_name': [names[i]],\n"
|
679 |
-
]
|
680 |
-
},
|
681 |
-
{
|
682 |
-
"name": "stdout",
|
683 |
-
"output_type": "stream",
|
684 |
-
"text": [
|
685 |
-
"Station 34.550461, -117.433907 has P velocity 6.294295200951223 and S velocity 3.416110775195922\n",
|
686 |
-
"Plotting waveform 13/15\n",
|
687 |
-
"Station 34.8811, -117.993881 has P velocity 6.080147521998276 and S velocity 3.3534711002313884\n",
|
688 |
-
"Plotting waveform 14/15\n"
|
689 |
-
]
|
690 |
-
},
|
691 |
-
{
|
692 |
-
"name": "stderr",
|
693 |
-
"output_type": "stream",
|
694 |
-
"text": [
|
695 |
-
"/var/folders/_g/3q5q8_dj0ydcpktxlwxb5vrh0000gq/T/ipykernel_21875/2718049065.py:393: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
|
696 |
-
" output_picks = output_picks.append(pd.DataFrame({'station_name': [names[i]],\n",
|
697 |
-
"/var/folders/_g/3q5q8_dj0ydcpktxlwxb5vrh0000gq/T/ipykernel_21875/2718049065.py:393: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
|
698 |
-
" output_picks = output_picks.append(pd.DataFrame({'station_name': [names[i]],\n"
|
699 |
-
]
|
700 |
-
},
|
701 |
-
{
|
702 |
-
"name": "stdout",
|
703 |
-
"output_type": "stream",
|
704 |
-
"text": [
|
705 |
-
"Station 34.8294, -116.335 has P velocity 6.6093598323533715 and S velocity 3.7813786210938956\n",
|
706 |
-
"Plotting waveform 15/15\n",
|
707 |
-
"Station 36.11758, -117.85486 has P velocity 4.7426953739315625 and S velocity 2.6477379954424243\n",
|
708 |
-
"Plotting stations\n"
|
709 |
-
]
|
710 |
-
},
|
711 |
-
{
|
712 |
-
"name": "stderr",
|
713 |
-
"output_type": "stream",
|
714 |
-
"text": [
|
715 |
-
"/var/folders/_g/3q5q8_dj0ydcpktxlwxb5vrh0000gq/T/ipykernel_21875/2718049065.py:393: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
|
716 |
-
" output_picks = output_picks.append(pd.DataFrame({'station_name': [names[i]],\n",
|
717 |
-
"/var/folders/_g/3q5q8_dj0ydcpktxlwxb5vrh0000gq/T/ipykernel_21875/2718049065.py:393: FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.\n",
|
718 |
-
" output_picks = output_picks.append(pd.DataFrame({'station_name': [names[i]],\n",
|
719 |
-
"/var/folders/_g/3q5q8_dj0ydcpktxlwxb5vrh0000gq/T/ipykernel_21875/2718049065.py:413: UserWarning: FixedFormatter should only be used together with FixedLocator\n",
|
720 |
-
" ax[i].set_xticklabels(ax[i].get_xticks(), rotation = 50)\n",
|
721 |
-
"/var/folders/_g/3q5q8_dj0ydcpktxlwxb5vrh0000gq/T/ipykernel_21875/2718049065.py:593: MatplotlibDeprecationWarning: Unable to determine Axes to steal space for Colorbar. Using gca(), but will raise in the future. Either provide the *cax* argument to use as the Axes for the Colorbar, provide the *ax* argument to steal space from it, or add *mappable* to an Axes.\n",
|
722 |
-
" plt.colorbar(m)\n",
|
723 |
-
"/var/folders/_g/3q5q8_dj0ydcpktxlwxb5vrh0000gq/T/ipykernel_21875/2718049065.py:593: MatplotlibDeprecationWarning: Unable to determine Axes to steal space for Colorbar. Using gca(), but will raise in the future. Either provide the *cax* argument to use as the Axes for the Colorbar, provide the *ax* argument to steal space from it, or add *mappable* to an Axes.\n",
|
724 |
-
" plt.colorbar(m)\n",
|
725 |
-
"/var/folders/_g/3q5q8_dj0ydcpktxlwxb5vrh0000gq/T/ipykernel_21875/2718049065.py:593: MatplotlibDeprecationWarning: Unable to determine Axes to steal space for Colorbar. Using gca(), but will raise in the future. Either provide the *cax* argument to use as the Axes for the Colorbar, provide the *ax* argument to steal space from it, or add *mappable* to an Axes.\n",
|
726 |
-
" plt.colorbar(m)\n",
|
727 |
-
"/var/folders/_g/3q5q8_dj0ydcpktxlwxb5vrh0000gq/T/ipykernel_21875/2718049065.py:593: MatplotlibDeprecationWarning: Unable to determine Axes to steal space for Colorbar. Using gca(), but will raise in the future. Either provide the *cax* argument to use as the Axes for the Colorbar, provide the *ax* argument to steal space from it, or add *mappable* to an Axes.\n",
|
728 |
-
" plt.colorbar(m)\n",
|
729 |
-
"/var/folders/_g/3q5q8_dj0ydcpktxlwxb5vrh0000gq/T/ipykernel_21875/2718049065.py:593: MatplotlibDeprecationWarning: Unable to determine Axes to steal space for Colorbar. Using gca(), but will raise in the future. Either provide the *cax* argument to use as the Axes for the Colorbar, provide the *ax* argument to steal space from it, or add *mappable* to an Axes.\n",
|
730 |
-
" plt.colorbar(m)\n",
|
731 |
-
"/var/folders/_g/3q5q8_dj0ydcpktxlwxb5vrh0000gq/T/ipykernel_21875/2718049065.py:593: MatplotlibDeprecationWarning: Unable to determine Axes to steal space for Colorbar. Using gca(), but will raise in the future. Either provide the *cax* argument to use as the Axes for the Colorbar, provide the *ax* argument to steal space from it, or add *mappable* to an Axes.\n",
|
732 |
-
" plt.colorbar(m)\n",
|
733 |
-
"/var/folders/_g/3q5q8_dj0ydcpktxlwxb5vrh0000gq/T/ipykernel_21875/2718049065.py:593: MatplotlibDeprecationWarning: Unable to determine Axes to steal space for Colorbar. Using gca(), but will raise in the future. Either provide the *cax* argument to use as the Axes for the Colorbar, provide the *ax* argument to steal space from it, or add *mappable* to an Axes.\n",
|
734 |
-
" plt.colorbar(m)\n",
|
735 |
-
"/var/folders/_g/3q5q8_dj0ydcpktxlwxb5vrh0000gq/T/ipykernel_21875/2718049065.py:593: MatplotlibDeprecationWarning: Unable to determine Axes to steal space for Colorbar. Using gca(), but will raise in the future. Either provide the *cax* argument to use as the Axes for the Colorbar, provide the *ax* argument to steal space from it, or add *mappable* to an Axes.\n",
|
736 |
-
" plt.colorbar(m)\n"
|
737 |
-
]
|
738 |
}
|
739 |
],
|
740 |
"source": [
|
@@ -1514,20 +812,6 @@
|
|
1514 |
" \n",
|
1515 |
" button = gr.Button(\"Predict phases\")\n",
|
1516 |
" output_image = gr.Image(label='Waveforms with Phases Marked', type='numpy', interactive=False)\n",
|
1517 |
-
"\n",
|
1518 |
-
" with gr.Row():\n",
|
1519 |
-
" output_picks = gr.Dataframe(label='Pick data', \n",
|
1520 |
-
" type='pandas', \n",
|
1521 |
-
" interactive=False)\n",
|
1522 |
-
" output_csv = gr.File(label=\"Output File\", file_types=[\".csv\"])\n",
|
1523 |
-
"\n",
|
1524 |
-
" button.click(predict_on_section, \n",
|
1525 |
-
" inputs=[client_inputs, timestamp_inputs, \n",
|
1526 |
-
" eq_lat_inputs, eq_lon_inputs, \n",
|
1527 |
-
" radius_inputs, source_depth_inputs, \n",
|
1528 |
-
" velocity_inputs, max_waveforms_inputs,\n",
|
1529 |
-
" P_thres_inputs, S_thres_inputs],\n",
|
1530 |
-
" outputs=[output_image, output_picks, output_csv])\n",
|
1531 |
" \n",
|
1532 |
" with gr.Row():\n",
|
1533 |
" with gr.Column(scale=2):\n",
|
@@ -1548,6 +832,20 @@
|
|
1548 |
" interpolate_input, n_lat_input, \n",
|
1549 |
" n_lon_input, n_depth_input], \n",
|
1550 |
" outputs=[outputs_vel_model])\n",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1551 |
"\n",
|
1552 |
"demo.launch()"
|
1553 |
]
|
|
|
2 |
"cells": [
|
3 |
{
|
4 |
"cell_type": "code",
|
5 |
+
"execution_count": 2,
|
6 |
"metadata": {},
|
7 |
"outputs": [
|
8 |
{
|
9 |
"name": "stdout",
|
10 |
"output_type": "stream",
|
11 |
"text": [
|
12 |
+
"Running on local URL: http://127.0.0.1:7861\n",
|
13 |
"\n",
|
14 |
"To create a public link, set `share=True` in `launch()`.\n"
|
15 |
]
|
|
|
17 |
{
|
18 |
"data": {
|
19 |
"text/html": [
|
20 |
+
"<div><iframe src=\"http://127.0.0.1:7861/\" width=\"100%\" height=\"500\" allow=\"autoplay; camera; microphone; clipboard-read; clipboard-write;\" frameborder=\"0\" allowfullscreen></iframe></div>"
|
21 |
],
|
22 |
"text/plain": [
|
23 |
"<IPython.core.display.HTML object>"
|
|
|
30 |
"data": {
|
31 |
"text/plain": []
|
32 |
},
|
33 |
+
"execution_count": 2,
|
34 |
"metadata": {},
|
35 |
"output_type": "execute_result"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
}
|
37 |
],
|
38 |
"source": [
|
|
|
812 |
" \n",
|
813 |
" button = gr.Button(\"Predict phases\")\n",
|
814 |
" output_image = gr.Image(label='Waveforms with Phases Marked', type='numpy', interactive=False)\n",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
815 |
" \n",
|
816 |
" with gr.Row():\n",
|
817 |
" with gr.Column(scale=2):\n",
|
|
|
832 |
" interpolate_input, n_lat_input, \n",
|
833 |
" n_lon_input, n_depth_input], \n",
|
834 |
" outputs=[outputs_vel_model])\n",
|
835 |
+
" \n",
|
836 |
+
" with gr.Row():\n",
|
837 |
+
" output_picks = gr.Dataframe(label='Pick data', \n",
|
838 |
+
" type='pandas', \n",
|
839 |
+
" interactive=False)\n",
|
840 |
+
" output_csv = gr.File(label=\"Output File\", file_types=[\".csv\"])\n",
|
841 |
+
"\n",
|
842 |
+
" button.click(predict_on_section, \n",
|
843 |
+
" inputs=[client_inputs, timestamp_inputs, \n",
|
844 |
+
" eq_lat_inputs, eq_lon_inputs, \n",
|
845 |
+
" radius_inputs, source_depth_inputs, \n",
|
846 |
+
" velocity_inputs, max_waveforms_inputs,\n",
|
847 |
+
" P_thres_inputs, S_thres_inputs],\n",
|
848 |
+
" outputs=[output_image, output_picks, output_csv])\n",
|
849 |
"\n",
|
850 |
"demo.launch()"
|
851 |
]
|
app.py
CHANGED
@@ -774,20 +774,6 @@ with gr.Blocks() as demo:
|
|
774 |
|
775 |
button = gr.Button("Predict phases")
|
776 |
output_image = gr.Image(label='Waveforms with Phases Marked', type='numpy', interactive=False)
|
777 |
-
|
778 |
-
with gr.Row():
|
779 |
-
output_picks = gr.Dataframe(label='Pick data',
|
780 |
-
type='pandas',
|
781 |
-
interactive=False)
|
782 |
-
output_csv = gr.File(label="Output File", file_types=[".csv"])
|
783 |
-
|
784 |
-
button.click(predict_on_section,
|
785 |
-
inputs=[client_inputs, timestamp_inputs,
|
786 |
-
eq_lat_inputs, eq_lon_inputs,
|
787 |
-
radius_inputs, source_depth_inputs,
|
788 |
-
velocity_inputs, max_waveforms_inputs,
|
789 |
-
P_thres_inputs, S_thres_inputs],
|
790 |
-
outputs=[output_image, output_picks, output_csv])
|
791 |
|
792 |
with gr.Row():
|
793 |
with gr.Column(scale=2):
|
@@ -808,5 +794,19 @@ with gr.Blocks() as demo:
|
|
808 |
interpolate_input, n_lat_input,
|
809 |
n_lon_input, n_depth_input],
|
810 |
outputs=[outputs_vel_model])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
811 |
|
812 |
demo.launch()
|
|
|
774 |
|
775 |
button = gr.Button("Predict phases")
|
776 |
output_image = gr.Image(label='Waveforms with Phases Marked', type='numpy', interactive=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
777 |
|
778 |
with gr.Row():
|
779 |
with gr.Column(scale=2):
|
|
|
794 |
interpolate_input, n_lat_input,
|
795 |
n_lon_input, n_depth_input],
|
796 |
outputs=[outputs_vel_model])
|
797 |
+
|
798 |
+
with gr.Row():
|
799 |
+
output_picks = gr.Dataframe(label='Pick data',
|
800 |
+
type='pandas',
|
801 |
+
interactive=False)
|
802 |
+
output_csv = gr.File(label="Output File", file_types=[".csv"])
|
803 |
+
|
804 |
+
button.click(predict_on_section,
|
805 |
+
inputs=[client_inputs, timestamp_inputs,
|
806 |
+
eq_lat_inputs, eq_lon_inputs,
|
807 |
+
radius_inputs, source_depth_inputs,
|
808 |
+
velocity_inputs, max_waveforms_inputs,
|
809 |
+
P_thres_inputs, S_thres_inputs],
|
810 |
+
outputs=[output_image, output_picks, output_csv])
|
811 |
|
812 |
demo.launch()
|