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 location #48

Open
andresp-wave opened this issue Apr 17, 2024 · 1 comment
Open

Earthquake location #48

andresp-wave opened this issue Apr 17, 2024 · 1 comment

Comments

@andresp-wave
Copy link

Hi Malcolm,

I am trying to use Pykonal to locate some events. Is there any minimal example on how to use 'EQLocator' Class ? I noticed that there is a code 'Locator2.ipnb' that locate events but the files required to run it are not available in the repository.

Best,
Andres.

@malcolmw
Copy link
Owner

Hi Andres,

There is a working script over here: https://github.com/malcolmw/PyCatEQ.

First, you need to use the 300_compute_ttlut script to compute travel-time lookup tables. This script will output a traveltime field file for each station+phase pair, in addition to a tt_inventory.hdf5 file. You only need the tt_inventory.hdf5 file for the next step.

After running 300_compute_ttlut, you can run 310_reloc_deo to relocate events. This script has a norm parameter that can either be set to "EDT" to use the "equal differential time" norm (as in NonLinLoc) or "L2" to use an ordinary least squares norm. I recommend using the EDT norm.

Note that both of the above scripts can be run with the -h option to get help and require a config file, examples of which are found in the cfg directory of the PyCatEQ repository.

Hope this helps.

Cheers,
Malclm

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