Skip to content

Commit

Permalink
add Vsv and Vsh to DataFrame
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoalopez committed Apr 24, 2024
1 parent 7fec979 commit 99dd8a9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/orthotropic_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def Tsvankin_params(cij: np.ndarray, density: float):
epsilon2 = (c11 - c33) / (2 * c33)
delta2 = ((c13 + c55)**2 - (c33 - c55)**2) / (2*c33 * (c33 - c55))
gamma2 = (c66 - c44) / (2 * c44)
# VTI parameter in the XZ plane
# VTI parameter in the XY plane
delta3 = (c12 + c66)**2 - (c11 - c66)**2 / (2*c11 * (c11 - c66))

return Vp0, Vs0, epsilon1, delta1, gamma1, epsilon2, delta2, gamma2, delta3
Expand Down
14 changes: 10 additions & 4 deletions src/polar_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ def weak_polar_anisotropy(elastic, wavevectors):
-------
pandas.DataFrame
Tabular data object containing the propagation directions
and calculated Vp, Vs1, and Vs2 speeds and polarization
anisotropy using the weak polar anisotropy model.
and calculated Vp, Vsv, Vsh, Vs1, and Vs2 speeds and
polarization anisotropy using the weak polar anisotropy
model.
"""

# extract azimuths and polar angles
Expand All @@ -111,6 +112,8 @@ def weak_polar_anisotropy(elastic, wavevectors):
# reshape and store arrays
data = {'polar_ang': polar,
'azimuthal_ang': azimuths,
'Vsv': Vsv,
'Vsh': Vsh,
'Vp': Vp,
'Vs1': Vs1,
'Vs2': Vs2,
Expand All @@ -136,8 +139,9 @@ def polar_anisotropy(elastic, wavevectors):
-------
pandas.DataFrame
Tabular data object containing the propagation directions
and calculated Vp, Vs1, and Vs2 speeds and polarization
anisotropy using the Andreson polar anisotropy model.
and calculated Vp, Vsv, Vsh, Vs1, and Vs2 speeds and
polarization anisotropy using the weak polar anisotropy
model.
"""

# extract azimuths and polar angles
Expand Down Expand Up @@ -180,6 +184,8 @@ def polar_anisotropy(elastic, wavevectors):
# reshape and store arrays
data = {'polar_ang': polar,
'azimuthal_ang': azimuths,
'Vsv': Vsv,
'Vsh': Vsh,
'Vp': Vp,
'Vs1': Vs1,
'Vs2': Vs2,
Expand Down

0 comments on commit 99dd8a9

Please sign in to comment.