This repository provides code for estimation of Gutenberg-Richter law
Example of estimating
You can set up calculating environment and run code as following.
- setting up environment Install python(3.10.7+) packages by
pip install -r requirements.txt
If you use Docker environment, you can start using Dockerfile
by
docker build -t pfgr .
docker run --name pfgr-c -it pfgr /bin/bash
- run code
If you have data (CSV format) with column
date_time
,magnitude
, you can run code as following
python3 run.py [--data DATA] [--num_particle NUM_PARTICLE] [--m_lower M_LOWER]
- results
Results of estimating
$b$ value are put at the directory./result/
as CSV file.
Models implemented in this code are described at our paper. Below models are supported.
- Exponential distribution
- Truncated GR distribution
- Random walk model
- Random walk with truncated Normal distribution model