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

earthquake #2

Open
mdelhussieny opened this issue Jun 22, 2021 · 3 comments
Open

earthquake #2

mdelhussieny opened this issue Jun 22, 2021 · 3 comments

Comments

@mdelhussieny
Copy link

mdelhussieny commented Jun 22, 2021

when you use earthquake deformation you mention in the title "is magnitude correct"?
is the deformation correct because if I use another okada Wrapper it gives another pattern of deformation?
I use (https://github.com/tbenthompson/okada_wrapper)

@mdelhussieny
Copy link
Author

centroid_depth = np.mean((kwargs['bottom_depth'] - kwargs['top_depth']))

I think this line should be
centroid_depth = np.mean((kwargs['bottom_depth'], kwargs['top_depth']))

@matthew-gaddes
Copy link
Owner

matthew-gaddes commented Jul 14, 2021

Hi there, Thanks for suggesting this, and sorry for the slow reply. I developed this code to primarily work with volcanoes and included the Okada wrapper for sills and dykes. It was easy to extend this to earthquakes, but when I did this I did not think the magnitudes were correct, hence the comment.

I have tried the fix you suggested and, whilst this improves things, I still don't think the magnitudes are correct (though they are closer). I will look at it in more detail next week.

Thanks, Matt

@mdelhussieny
Copy link
Author

mdelhussieny commented Jul 18, 2021

thank you for your replay, I checked the results from your code with the results from https://github.com/geniusinaction/okapy/blob/master/okada_ascending_descending.ipynb with okada wrapper . The results were the same except for the different epsilon ratios to the two codes. the epsilon ratio in okada wrapper is alpha = (lmda + mu) / (lmda + 2 * mu) # elastic constant used by Okada, which is strange to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants