Seishmc
Full moment tensor inversion using Hamiltonian Monte Carlo (HMC) sampling
Install / Use
/learn @mtuqorg/SeishmcREADME
SEISHMC

SEISHMC is a Python package that is based on MTUQ and utilizes Hamiltonian Monte Carlo (HMC) algorithm to invert the full moment tensor of earthquake sources.
Installation
-
Requirements
- MTUQ (https://github.com/mtuqorg/mtuq)
- Seaborn (>= 0.11.2)
- Numpy
- Pandas
-
Install seisHMC
- For basic install:
git clone https://github.com/Liang-Ding/seishmc.git
cd seishmc
pip install -e .
- or using pip
pip install seishmc
Why HMC?
We achieve lower waveform misfits in our examples using HMC algorithm.

- DC: Double-Couple solution
- FMT: Full Moment Tensor solution
- GS: Grid Search
- HMC: Hamiltonian Monte Carlo algorithm
- (Grid search is performed using MTUQ and HMC sampling is carried out with SeisHMC.)
Examples
Overview of many examples provided by SeisHMC.
| Synthetic examples | Real-data examples | |:----------------------------------------------------------:|:-----------------------------------------------------:| | GS (DC), syn. | GS (DC) | | GS (FMT), syn. | GS (FMT) | | HMC (DC), syn. | HMC (DC) | | HMC (FMT), syn. | HMC (FMT) |
Check the gallery for more figures and result obtained using HMC algorithm.
Tutorials
Related Skills
node-connect
337.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
337.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.2kCommit, push, and open a PR
