-
Notifications
You must be signed in to change notification settings - Fork 13
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
Calculation of takeoff angles for layered velocity model #57
Comments
Thanks Kris!
How that? Are you going to propose a PR?
It is possible to define a custom model in |
I can do that if you like (but it would be better to wait until you refactor the processing submodule), but actually I meant that you can download the
I will have another look, but I think |
I should work on that today 😉
Ah, ok. Sorry, I just noticed the download link 👀 |
I'm looking into building a custom taup model in obspy, but it's already clear this is not the solution. |
Ok, so let's try with your solution! |
Claudio,
As mentioned during the WCEE, I looked into the calculation of travel times and takeoff angles when using a layered velocity model for use in sourcespec.
Some years ago, I wrote a python class for doing that, based on a Fortran module in hypo71. You can find it here
Except for the plot functions, this class does not depend on other custom modules, only numpy and scipy.
It can be initialized as follows:
I added a new
calc_tt_and_angles
method which calculates both travel times and takeoff angles (similar to the_wave_arrival_*
functions in sourcespec), as well as incidence angles in the most efficient way, which works as follows:with
Zf
= focal depth in km,Zs
= station depth (in km),Repi
= epicentral distance in km,wave
= "P" or "S",wave_type
= "REF", "DIR", "REFL" or None (= fastest arrival).It should not be too difficult for you to test this.
However, this method depends on quite a number of other methods. I don't think it would be practical to combine all of them in a single function (it would be similar to the original Fortran code, which is quite ugly...). Maybe we can copy this class in sourcespec and strip all unnecessary methods (e.g., plot methods, methods related to reflected waves, ...)?
Or is there a way to do the same calculations with layered velocity models in obspy??
The text was updated successfully, but these errors were encountered: