Skip to content

Commit

Permalink
Stabilize the computation of derivatives in the Okal geometrical spre…
Browse files Browse the repository at this point in the history
…ading model
  • Loading branch information
claudiodsf committed Dec 18, 2024
1 parent 6484778 commit e826283
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ Copyright (c) 2011-2024 Claudio Satriano <satriano@ipgp.fr>
USGS) where the phase name is not in the `<phase_hint>` attribute of the
`<pick>` element but in the `<phase>` attribute of the corresponding
`<arrival>` element
- Stabilize the computation of derivatives in the Okal geometrical spreading
model, thus avoiding numerical instabilities.

## v1.8 - 2024-04-07

Expand Down
3 changes: 2 additions & 1 deletion sourcespec/ssp_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,8 @@ def geom_spread_teleseismic(
# angular distance (dd, also called the aperture of the ray tube).
# We use a finite difference approximation, and we increase the aperture
# until we get a non-zero value.
aperture = 0.1 # degrees
# As a first guess, we set the aperture to half the angular distance
aperture = angular_distance/2
for _ in range(10):
dtdd = _compute_dtdd(
angular_distance, aperture, source_depth_in_km, phase_list)
Expand Down

0 comments on commit e826283

Please sign in to comment.