Skip to content

Commit 1dd163a

Browse files
committed
Fix bug preventing reading travel times from NonLinLoc grid files
1 parent ba01a29 commit 1dd163a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ Copyright (c) 2011-2025 Claudio Satriano <satriano@ipgp.fr>
9999
- Fix in `source_residuals`: removed extrapolation of individual station
100100
residuals beyond their valid frequency range, which was leading to incorrect
101101
mean residuals at high frequencies (see [#68])
102+
- Fix bug preventing reading travel times from NonLinLoc grid files
102103

103104
## v1.8 - 2024-04-07
104105

sourcespec/ssp_wave_arrival.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ def _wave_arrival_nll(trace, phase, NLL_time_dir, focmec):
6262
sta_x, sta_y = grd.project(
6363
trace.stats.coords.longitude, trace.stats.coords.latitude)
6464
grd.sta_x, grd.sta_y = sta_x, sta_y
65-
lon = trace.stats.event.hypocenter.longitude
66-
lat = trace.stats.event.hypocenter.latitude
65+
lon = trace.stats.event.hypocenter.longitude.value_in_deg
66+
lat = trace.stats.event.hypocenter.latitude.value_in_deg
6767
hypo_x, hypo_y = grd.project(lon, lat)
6868
hypo_z = trace.stats.event.hypocenter.depth.value_in_km
6969
if grd_type == 'time':

0 commit comments

Comments
 (0)