Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 1.15 KB

README.md

File metadata and controls

40 lines (29 loc) · 1.15 KB

ERHF

Eqt-REAL-Hypoinverse-Flow (ERHF) to detect and locate earthquakes

This flow follows the structure of ESPRH (https://github.com/MrXiaoXiao/ESPRH)

uses some perl/python scripts from LOC-FLOW (https://github.com/Dal-mzhang/LOC-FLOW)

and provide the same example data as seisloc (https://pypi.org/project/seisloc/0.0.8/)

1. Download dependencies

EQTransformer: git clone https://github.com/smousavi05/EQTransformer

REAL: git clone https://github.com/Dal-mzhang/REAL

Hypoinverse: https://www.usgs.gov/software/hypoinverse-earthquake-location

Please compile REAL and Hypoinverse source scripts and get two executable files (hyp1.40 and REAL)

2. Install necessary python packages in a new environmnt

conda create -n ERHF python=3.7
conda activate ERHF
conda install pyyaml obspy pandas h5py=2.10 tqdm tensorflow=1.14 gmt=6.2
git clone https://github.com/JunhaoSong/ERHF
cd ERHF

3. Edit configuration.yaml, prepare velocity model, hypoinverse command file

python step01_run_Eqt_detection.py
python step02_run_REAL_association.py
python step03_run_Hypoinv_absloc.py

4. Visulize results

cd Plot
bash plot_detected_eqs.sh