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

vel_inc problem #10

Open
emsutti opened this issue Apr 14, 2021 · 2 comments
Open

vel_inc problem #10

emsutti opened this issue Apr 14, 2021 · 2 comments

Comments

@emsutti
Copy link

emsutti commented Apr 14, 2021

Hello Mark,

I'm running HASHpy with python3. I modified some the I/O functions so I matches with the new release. Neverthless I get this error:

*** event outside of velocity table depth range ***

I think that probaly the vel_inc script is not reading the velocity model properly.
Please, give me a hint where can I modify the script.

PD: I've attached my velocity model.
model.txt

@markcwill
Copy link
Owner

That error message is from the Fortran code which I did not write, it's the original Hardebeck & Shearer code, which has been re-syntaxed to F95 from F77. You will have to check the Fortran source for more info. We use the exact file formats of the original Fortran code, so you may want to compile the original HASH driver in Fortran and try your model, and see if you get an error. If you don't, that would indicate the problem is with this wrapper code, and not the Fortran libs.

But at a quick glance, you have a lot of layers, and your depths are outside the range of the array limits and sizes. You can look at the default values in the Fortran include files, e.g. "vel.inc". If you want to change them, you would need to edit all of those values and re-compile the library & wrappers.

@emsutti
Copy link
Author

emsutti commented Apr 19, 2021

Hi Mark!

I figured it out finally! Thanks a lot for your help!

Best!

Emilio.

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