Skip to main content

Python package for earthquake focal mechanism inversions

Project description

SKHASH

Python package for earthquake focal mechanism inversions.

Author: Robert Skoumal, U.S. Geological Survey | rskoumal@usgs.gov

This project contains Python code to compute focal mechanism solutions using first-motion polarities (traditional, consensus, and/or imputed) and S/P ratios (traditional and/or consensus).

How to Use

1. Install the latest release in your virtual environment:

# If you don't want to create beachball plots:
pip install -U SKHASH

# If you do want to create beachball plots:
pip install -U SKHASH[plots]

Python 3.8+ versions are supported.

2. Run SKHASH with your desired control file:

SKHASH path_to/control_file.txt

More information

Running examples

A variety of examples are provided in the repository. It's recommended you play around with these examples to learn about some of the features.

  1. Download the examples folder available HERE.
  2. Unzip the folder.
  3. Navigate to the examples folder you just downloaded, e.g.: cd examples
  4. Run SKHASH with the example of your choice, e.g.: SKHASH hash1/control_file.txt

Manual

Refer to the manual for additional information about running the code.

Citation

Please cite our paper if you use anything in this project:

  • Skoumal, R.J., Hardebeck, J.L., Shearer, P.M. (2024). SKHASH: A Python package for computing earthquake focal mechanisms. Seismological Research Letters, 95(4), 2519-2526. https://doi.org/10.1785/0220230329

Significant portions of this algorithm are based on HASH:

  • Hardebeck, J.L., & Shearer, P.M. (2002). A new method for determining first-motion focal mechanisms. Bulletin of the Seismological Society of America, 92(6), 2264-2276. https://doi.org/10.1785/0120010200

  • Hardebeck, J.L., & Shearer, P.M. (2003). Using S/P amplitude ratios to constrain the focal mechanisms of small earthquakes. Bulletin of the Seismological Society of America, 93(6), 2434-2444. https://doi.org/10.1785/0120020236

License and Disclaimer

License: This project is in the public domain.

Disclaimer: This software is preliminary or provisional and is subject to revision.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

skhash-0.1.0.tar.gz (57.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

skhash-0.1.0-py3-none-any.whl (63.4 kB view details)

Uploaded Python 3

File details

Details for the file skhash-0.1.0.tar.gz.

File metadata

  • Download URL: skhash-0.1.0.tar.gz
  • Upload date:
  • Size: 57.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for skhash-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5f574630e6f3724905d7d81f8df87d55c11ae13ceb4881c7864a4f8dd5822aee
MD5 0b9634ac6cabc16b678937ff9c98f008
BLAKE2b-256 a1bca0cc7309f887d9cfc1f4c06464cc191f80c2943ef4909735c4b24ab566df

See more details on using hashes here.

File details

Details for the file skhash-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: skhash-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 63.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for skhash-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eba1b5d6c441780165da08d1541976359c522904557df64363f88db4a7c1f4a1
MD5 48adf7796b2ef17853e169791fc77c1f
BLAKE2b-256 eba42e2172f6319dc01152f65bf0cb4de9c431857a1b31228970355bffdd5e0e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page