utdquake 0.2__tar.gz → 0.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {utdquake-0.2/utdquake.egg-info → utdquake-0.2.2}/PKG-INFO +3 -1
- {utdquake-0.2 → utdquake-0.2.2}/README.md +2 -0
- {utdquake-0.2 → utdquake-0.2.2}/utdquake/__init__.py +1 -1
- {utdquake-0.2 → utdquake-0.2.2}/utdquake/bank/utils.py +4 -0
- {utdquake-0.2 → utdquake-0.2.2}/utdquake/core/utdquake.py +13 -4
- {utdquake-0.2 → utdquake-0.2.2}/utdquake/qc/travel_time.py +4 -2
- {utdquake-0.2 → utdquake-0.2.2}/utdquake/writers/schema.py +4 -3
- {utdquake-0.2 → utdquake-0.2.2/utdquake.egg-info}/PKG-INFO +3 -1
- {utdquake-0.2 → utdquake-0.2.2}/LICENSE +0 -0
- {utdquake-0.2 → utdquake-0.2.2}/setup.cfg +0 -0
- {utdquake-0.2 → utdquake-0.2.2}/setup.py +0 -0
- {utdquake-0.2 → utdquake-0.2.2}/utdquake/bank/__init__.py +0 -0
- {utdquake-0.2 → utdquake-0.2.2}/utdquake/bank/bank.py +0 -0
- {utdquake-0.2 → utdquake-0.2.2}/utdquake/core/__init__.py +0 -0
- {utdquake-0.2 → utdquake-0.2.2}/utdquake/core/config.py +0 -0
- {utdquake-0.2 → utdquake-0.2.2}/utdquake/core/data.py +0 -0
- {utdquake-0.2 → utdquake-0.2.2}/utdquake/core/load.py +0 -0
- {utdquake-0.2 → utdquake-0.2.2}/utdquake/core/patch.py +0 -0
- {utdquake-0.2 → utdquake-0.2.2}/utdquake/core/utils.py +0 -0
- {utdquake-0.2 → utdquake-0.2.2}/utdquake/qc/__init__.py +0 -0
- {utdquake-0.2 → utdquake-0.2.2}/utdquake/qc/catalog.py +0 -0
- {utdquake-0.2 → utdquake-0.2.2}/utdquake/qc/config.py +0 -0
- {utdquake-0.2 → utdquake-0.2.2}/utdquake/qc/events.py +0 -0
- {utdquake-0.2 → utdquake-0.2.2}/utdquake/qc/log.py +0 -0
- {utdquake-0.2 → utdquake-0.2.2}/utdquake/qc/picks.py +0 -0
- {utdquake-0.2 → utdquake-0.2.2}/utdquake/utils/__init__.py +0 -0
- {utdquake-0.2 → utdquake-0.2.2}/utdquake/utils/cache.py +0 -0
- {utdquake-0.2 → utdquake-0.2.2}/utdquake/utils/plot.py +0 -0
- {utdquake-0.2 → utdquake-0.2.2}/utdquake/utils/utils.py +0 -0
- {utdquake-0.2 → utdquake-0.2.2}/utdquake/writers/__init__.py +0 -0
- {utdquake-0.2 → utdquake-0.2.2}/utdquake/writers/manifest.py +0 -0
- {utdquake-0.2 → utdquake-0.2.2}/utdquake/writers/parquet.py +0 -0
- {utdquake-0.2 → utdquake-0.2.2}/utdquake.egg-info/SOURCES.txt +0 -0
- {utdquake-0.2 → utdquake-0.2.2}/utdquake.egg-info/dependency_links.txt +0 -0
- {utdquake-0.2 → utdquake-0.2.2}/utdquake.egg-info/requires.txt +0 -0
- {utdquake-0.2 → utdquake-0.2.2}/utdquake.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: utdquake
|
|
3
|
-
Version: 0.2
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: University of Texas at Dallas Earthquake Dataset
|
|
5
5
|
Home-page: https://github.com/ecastillot/UTDQuake
|
|
6
6
|
Author: ecastillot (Emmanuel Castillo)
|
|
@@ -48,6 +48,8 @@ Dynamic: summary
|
|
|
48
48
|
# <span style="background:#E87500; color:white; padding:2px 6px; border-radius:6px;">UTD</span>Quake
|
|
49
49
|
-->
|
|
50
50
|
|
|
51
|
+
[](https://huggingface.co/datasets/ecastillot/UTDQuake) [](https://utdquake.readthedocs.io/en/latest/index.html)
|
|
52
|
+
|
|
51
53
|
**University of Texas at Dallas Earthquake Dataset**
|
|
52
54
|
|
|
53
55
|
A global earthquake dataset constructed from high-quality source and receiver metadata, including associated seismic phase picks across diverse station geometries.
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
# <span style="background:#E87500; color:white; padding:2px 6px; border-radius:6px;">UTD</span>Quake
|
|
9
9
|
-->
|
|
10
10
|
|
|
11
|
+
[](https://huggingface.co/datasets/ecastillot/UTDQuake) [](https://utdquake.readthedocs.io/en/latest/index.html)
|
|
12
|
+
|
|
11
13
|
**University of Texas at Dallas Earthquake Dataset**
|
|
12
14
|
|
|
13
15
|
A global earthquake dataset constructed from high-quality source and receiver metadata, including associated seismic phase picks across diverse station geometries.
|
|
@@ -1721,6 +1721,10 @@ def destination_point(lat1_deg, lon1_deg, azimuth_deg, distance_deg):
|
|
|
1721
1721
|
spherical forward problem
|
|
1722
1722
|
Compute destination lat/lon given a starting point, azimuth, and distance in degrees.
|
|
1723
1723
|
|
|
1724
|
+
see here:
|
|
1725
|
+
- https://edwilliams.org/avform147.htm#LL
|
|
1726
|
+
- Snyder, J. P. 1926-1997. (1987). Map projections--a working manual. Washington: U.S. G.P.O. . Page 31 (page 45-scanned version)
|
|
1727
|
+
|
|
1724
1728
|
Args:
|
|
1725
1729
|
lat1_deg: Latitude of starting point (degrees)
|
|
1726
1730
|
lon1_deg: Longitude of starting point (degrees)
|
|
@@ -107,8 +107,8 @@ class Dataset:
|
|
|
107
107
|
str
|
|
108
108
|
Summary of networks, stations, and events.
|
|
109
109
|
"""
|
|
110
|
-
return get_network_summary(stations=self.
|
|
111
|
-
events= self.
|
|
110
|
+
return get_network_summary(stations=self.stations,
|
|
111
|
+
events= self.events)
|
|
112
112
|
|
|
113
113
|
@property
|
|
114
114
|
def networks(self):
|
|
@@ -160,6 +160,7 @@ class Dataset:
|
|
|
160
160
|
include_stations: bool = False,
|
|
161
161
|
include_picks: bool = False,
|
|
162
162
|
include_banks: bool = False,
|
|
163
|
+
include_travel_time: bool = False,
|
|
163
164
|
unzip_banks: bool = True,
|
|
164
165
|
overwrite: bool = False,
|
|
165
166
|
) -> Path:
|
|
@@ -183,6 +184,8 @@ class Dataset:
|
|
|
183
184
|
Whether to download seismic picks. Default: False.
|
|
184
185
|
include_banks : bool, optional
|
|
185
186
|
Whether to download the bank (synthetic) data. Default: False.
|
|
187
|
+
include_travel_time : bool, optional
|
|
188
|
+
Whether to download the travel time models. Default: False.
|
|
186
189
|
overwrite : bool, optional
|
|
187
190
|
If True, existing files will be re-downloaded. Default: False.
|
|
188
191
|
unzip_banks : bool, optional
|
|
@@ -211,6 +214,7 @@ class Dataset:
|
|
|
211
214
|
include_stations=include_stations,
|
|
212
215
|
include_picks=include_picks,
|
|
213
216
|
include_banks=include_banks,
|
|
217
|
+
include_travel_time=include_travel_time,
|
|
214
218
|
overwrite=overwrite,
|
|
215
219
|
unzip_banks=unzip_banks
|
|
216
220
|
)
|
|
@@ -499,7 +503,7 @@ class Network:
|
|
|
499
503
|
Parameters
|
|
500
504
|
----------
|
|
501
505
|
name : str
|
|
502
|
-
Network name (e.g. "tx", "uw", "
|
|
506
|
+
Network name (e.g. "tx", "uw", "UWF").
|
|
503
507
|
das : bool, optional
|
|
504
508
|
Whether to use the DAS or not. If so, tou may define DAS cache root environment variable (`UTDQUAKE_DAS_ROOT`).
|
|
505
509
|
"""
|
|
@@ -590,7 +594,12 @@ class Network:
|
|
|
590
594
|
paths = resolve_network_paths(self.name,das=self.das, include_stations=True)
|
|
591
595
|
return pd.read_parquet(paths["stations"])
|
|
592
596
|
|
|
593
|
-
|
|
597
|
+
@property
|
|
598
|
+
def travel_time(self) -> TravelTimeModel:
|
|
599
|
+
"""Return the TravelTimeModel for this network."""
|
|
600
|
+
paths = resolve_network_paths(self.name,das=self.das, include_travel_time=True)
|
|
601
|
+
return TravelTimeModel.load(paths["travel_time"])
|
|
602
|
+
|
|
594
603
|
def compute_stats(
|
|
595
604
|
self,
|
|
596
605
|
use_cache=True,
|
|
@@ -775,14 +775,16 @@ class TravelTimeModel:
|
|
|
775
775
|
----------
|
|
776
776
|
phase : str
|
|
777
777
|
Phase name.
|
|
778
|
-
distance : numpy.ndarray
|
|
779
|
-
Distances.
|
|
778
|
+
distance : int, float or numpy.ndarray
|
|
779
|
+
Distances at which to predict.
|
|
780
780
|
|
|
781
781
|
Returns
|
|
782
782
|
-------
|
|
783
783
|
pandas.DataFrame
|
|
784
784
|
Predicted sigma and percentile curves.
|
|
785
785
|
"""
|
|
786
|
+
if isinstance(distance, (int, float)):
|
|
787
|
+
distance = np.array([distance])
|
|
786
788
|
return self.get_model(phase).predict(distance)
|
|
787
789
|
|
|
788
790
|
# ---------------------------------------------------------------------
|
|
@@ -70,7 +70,7 @@ PREF_STATIONS_TYPES = {
|
|
|
70
70
|
PREF_STATIONS_ORDER = list(PREF_STATIONS_TYPES.keys())
|
|
71
71
|
|
|
72
72
|
PREF_EVENTS_ORDER = ["network",
|
|
73
|
-
|
|
73
|
+
"time",
|
|
74
74
|
"latitude",
|
|
75
75
|
"longitude",
|
|
76
76
|
"depth",
|
|
@@ -89,6 +89,7 @@ PREF_PICKS_ORDER = [
|
|
|
89
89
|
"azimuth",
|
|
90
90
|
"evaluation_mode",
|
|
91
91
|
"event_id",
|
|
92
|
+
"pick_agency",
|
|
92
93
|
"origin_time",
|
|
93
94
|
]
|
|
94
95
|
|
|
@@ -172,7 +173,7 @@ for k,v in PREF_PICKS_QC_TYPES.items():
|
|
|
172
173
|
PREF_PICKS_TYPES[k].extend(v)
|
|
173
174
|
|
|
174
175
|
# Add extra columns to picks types
|
|
175
|
-
PREF_PICKS_TYPES["string_cols"].extend(["network","event_id",])
|
|
176
|
+
PREF_PICKS_TYPES["string_cols"].extend(["network","event_id","pick_agency"])
|
|
176
177
|
PREF_PICKS_TYPES["float_cols"].extend(["travel_time","linear_hyp_distance"])
|
|
177
178
|
|
|
178
179
|
# Preferred event types
|
|
@@ -356,7 +357,7 @@ def sanitize_dataframe(
|
|
|
356
357
|
print(f"Step 6: Forced boolean columns: {bool_cols}")
|
|
357
358
|
|
|
358
359
|
# ---- 7. Auto-handle remaining object columns ----
|
|
359
|
-
for c in df.select_dtypes(include=["object"]).columns:
|
|
360
|
+
for c in df.select_dtypes(include=["object","string"]).columns:
|
|
360
361
|
df[c] = df[c].astype("string")
|
|
361
362
|
|
|
362
363
|
# ---- 8. Numeric columns → float64 for Arrow safety ----
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: utdquake
|
|
3
|
-
Version: 0.2
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: University of Texas at Dallas Earthquake Dataset
|
|
5
5
|
Home-page: https://github.com/ecastillot/UTDQuake
|
|
6
6
|
Author: ecastillot (Emmanuel Castillo)
|
|
@@ -48,6 +48,8 @@ Dynamic: summary
|
|
|
48
48
|
# <span style="background:#E87500; color:white; padding:2px 6px; border-radius:6px;">UTD</span>Quake
|
|
49
49
|
-->
|
|
50
50
|
|
|
51
|
+
[](https://huggingface.co/datasets/ecastillot/UTDQuake) [](https://utdquake.readthedocs.io/en/latest/index.html)
|
|
52
|
+
|
|
51
53
|
**University of Texas at Dallas Earthquake Dataset**
|
|
52
54
|
|
|
53
55
|
A global earthquake dataset constructed from high-quality source and receiver metadata, including associated seismic phase picks across diverse station geometries.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|