ecastillot commited on
Commit
8a862f9
·
verified ·
1 Parent(s): 2599bf6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +75 -38
README.md CHANGED
@@ -277,69 +277,106 @@ configs:
277
  # <span style="background:#E87500; color:white; padding:2px 6px; border-radius:6px;">UTD</span>Quake
278
  University of Texas at Dallas Earthquake Dataset
279
 
280
- **Authors**
281
- - Emmanuel Castillo (edc240000@utdallas.edu)
282
- - Nadine Ushakov
283
- - Marine Denolle
 
 
 
 
 
 
 
 
284
 
285
  ## What’s inside?
286
 
287
- - `events/` zipped datasets per network (`*.zip`)
288
- - Each network contains event and pick information (when available)
 
 
 
 
 
 
 
 
 
289
 
290
  ## Quick start
291
 
292
- ### Access
293
  ```python
294
  import utdquake as utdq
295
 
296
- # loads tx
297
- bank = utdq.load_network("tx")
298
- print(bank.stats)
299
 
300
- # read events information
301
- df = bank.read_index()
302
- print(df.head())
303
 
304
- ev_ids = df["event_id"].tolist()[:5]
305
- picks = bank.get_picks(event_ids=ev_ids)
306
- print(picks)
307
  ```
308
 
309
- ### Catalog
310
  ```python
311
- # get Obspy Catalog
312
- catalog = bank.get_events(starttime=UTCDateTime("2025-07-31T00:00:00"),
313
- endtime=UTCDateTime("2025-07-31T11:00:00"))
314
- print(catalog)
315
- print(catalog.to_df())
316
 
317
- # get Obspy Event
318
- event = catalog[0]
319
- picks = event.picks_to_df()
320
- arrivals = event.arrivals_to_df()
321
- print(event,picks,arrivals)
 
 
 
 
 
 
322
  ```
323
 
324
- ### Picks db (Massive)
 
325
  ```python
326
- # Save
327
- bank.save_picks()
328
- picks = bank.load_picks()
329
- print(picks)
 
 
 
 
 
 
 
330
  ```
331
 
 
332
  ### Plot
333
  ```python
334
  # get Obspy Event
335
- bank.plot_overview("./overview.png")
336
- bank.plot_uncertainty_boxplots("./uncertainty_boxplots.png")
337
- bank.plot_station_location_uncertainty("./station_location_uncertainty.png")
338
- bank.plot_stats("./stats.png")
339
- bank.plot_pick_histograms("./histograms.png")
340
- bank.plot_pick_stats("./pick_stats.png")
 
341
  ```
342
 
 
 
 
 
 
 
 
 
343
 
344
 
345
 
 
277
  # <span style="background:#E87500; color:white; padding:2px 6px; border-radius:6px;">UTD</span>Quake
278
  University of Texas at Dallas Earthquake Dataset
279
 
280
+ ## Authors
281
+ - Emmanuel Castillo (emmanuel.castillotaborda@utdallas.edu)
282
+ - Nadine Ushakov (nadine.igonin@utdallas.edu)
283
+ - Marine Denolle (mdenolle@uw.edu)
284
+
285
+ # Dataset
286
+
287
+ ## Why this dataset matters?
288
+
289
+ Curated datasets of earthquake **events and phase picks** are essential for modern seismology, especially in the AI era. While waveform datasets have advanced earthquake detection, multistation picks provide complementary information crucial for **phase association** and **earthquake location**.
290
+
291
+ This dataset offers structured event catalogs, station metadata, and phase picks across networks, supporting reproducible research and the development of data-driven seismological methods.
292
 
293
  ## What’s inside?
294
 
295
+ | Directory | Format | Description |
296
+ |------------|---------------|-------------|
297
+ | `bank/` | `*.zip` | ObsPlus `EventBank` datasets, one per network. Can be read directly using [ObsPlus EventBank](https://niosh-mining.github.io/obsplus/versions/latest/api/obsplus.bank.eventbank.html). |
298
+ | `events/` | `*.parquet` | Earthquake event catalogs per network. |
299
+ | `stations/` | `*.parquet` | Station metadata per network. |
300
+ | `picks/` | `*.parquet` | Seismic phase pick datasets per network. |
301
+
302
+ For details on the contents and schema of each dataset, please refer to the [Hugging Face dataset viewer](https://huggingface.co/datasets/ecastillot/UTDQuake/viewer).
303
+
304
+ To get started, see the [Quick Start](#quick-start) section below, or click **“Use this dataset”** on the Hugging Face dataset page for example loading code.
305
+
306
 
307
  ## Quick start
308
 
309
+ ### Basic Access
310
  ```python
311
  import utdquake as utdq
312
 
313
+ # dataset overview
314
+ dataset = utdq.Dataset()
315
+ print(dataset)
316
 
317
+ # network level
318
+ network_data = dataset.networks
319
+ print(network_data)
320
 
321
+ dataset.plot_overview(savepath="utdquake.png")
 
 
322
  ```
323
 
324
+ ### Network Data
325
  ```python
326
+ # load network
327
+ network = dataset.get_network(name="tx")
328
+ print(network)
 
 
329
 
330
+ # events
331
+ events = network.events
332
+ print(events)
333
+
334
+ # stations
335
+ stations = network.stations
336
+ print(stations)
337
+
338
+ # picks
339
+ picks = network.picks
340
+ print(picks)
341
  ```
342
 
343
+ ### Event Bank
344
+ Check [ObsPlus EventBank](https://niosh-mining.github.io/obsplus/versions/latest/api/obsplus.bank.eventbank.html) for more details.
345
  ```python
346
+ # get event bank
347
+ ebank = network.bank #
348
+
349
+ # Example: Filter by event_id
350
+ ev_ids = events["event_id"].iloc[:5].tolist()
351
+ cat = ebank.get_events(event_id=ev_ids)
352
+ print(cat)
353
+
354
+ # Example 2: Other filter (check obsplus.EventBank for more details)
355
+ cat2 = ebank.get_events(minmagnitude=4.3)
356
+ print(cat2)
357
  ```
358
 
359
+
360
  ### Plot
361
  ```python
362
  # get Obspy Event
363
+ network = dataset.get_network(name="tx")
364
+ network.plot_overview(savepath="overview.png")
365
+ network.plot_uncertainty_boxplots(savepath="uncertainty_boxplots.png")
366
+ network.plot_station_location_uncertainty(savepath="station_location_uncertainty.png")
367
+ network.plot_stats(savepath="stats.png")
368
+ network.plot_pick_histograms(savepath="histograms.png")
369
+ network.plot_pick_stats(savepath="pick_stats.png")
370
  ```
371
 
372
+ # Thanks
373
+
374
+ Thanks to the [UT Dallas HPC team](https://hpc.utdallas.edu/) for providing the computational resources for this dataset.
375
+
376
+ We also thank the seismology and AI communities for their work in earthquake research, and Hugging Face for hosting and sharing open datasets.
377
+
378
+ We welcome feedback and contributions!
379
+
380
 
381
 
382