Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

function "Rmatrix3D" contains a critical typo where "incidence angle" is incorrectly written as "back-azimuth" #5

Open
Seismic-wave-Han opened this issue Oct 10, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Seismic-wave-Han
Copy link

I am about to use your awesome codes...
However, I found a major typo that may affect the use of 3D rotation.
In the "Rmatrix3D(baz,ain)" function in tools.py (pytheas version 0.2.3)
....
return np.asarray([
[np.cos(baz),-np.sin(ain)*np.sin(baz),-np.sin(ain)*np.cos(baz)],
[np.sin(ain), np.cos(ain)*np.sin(baz), np.cos(ain)*np.cos(baz)],
[0, -np.cos(baz), np.sin(baz)]
])
The rotation conversion matrix is reasonable only when the [0, 0] component of the returned array should be changed to "np.cos(ain)" not "np.cos(baz)".

Thanks!

@Seismic-wave-Han Seismic-wave-Han added the bug Something isn't working label Oct 10, 2023
ispingos added a commit that referenced this issue Aug 20, 2024
- Updated the installation scripts and added a `requirements.txt` file for PIP.
- Updated README.
- Fixed a critical typo in 3D rotation that would lead to unreasonable rotated waveforms (see #5 )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant