Skip to content
Seismic data analysis tool box for volcano monitoring. Routines includes automatic localization of seismic events, computation of RSAM and SSAM, magnitude calculation and sql data management.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
aur update client_gema.py (add flag -f for umount) May 19, 2019
realtime update loc_list.html May 20, 2019
scripts update run-autopick.py May 17, 2019
.directory first commit May 6, 2019
LICENSE Create LICENSE May 8, 2019
readme.md update readme name 1 May 20, 2019

readme.md

PyGema

Seismic data analysis tool box for volcano monitoring.

Routines includes automatic localization of seismic events, computation of RSAM and SSAM, magnitude calculation and sql data management.

by Diego M. González-Vidal (diego@gema.udec.cl)

contributors: Marcelo Ramirez (marcelo@gema.udec.cl)

PRE-REQUISITES (from yay)

yay aur/pyshapelib aur/python-obspy aur/python-pyshp aur/pyshapelib community/python-basemap community/python-basemap-common community/python-mysql-connector community/python-mysqlclient community/python-pillow community/shapelib community/sshfs extra/jdk-openjdk extra/python-django extra/python-django

sudo pacman -S python-django jdk-openjdk sshfs shapelib python-pillow python-mysqlclient python-mysql-connector python-basemap-common python-basemap pyshapelib python-pyshp python-obspy pyshapelib python-django

INSTALLATION

Download the pygema package from github

git clone https://github.com/emmaPatagonia/pygema.git
sudo cp -r aur/pygema /usr/lib/python3.X/site-packages

The working space are at the folders realtime and scripts

CONFIGURATION

Add dataless files of the stations

pygema/src/dataless/NETWORK_STATION.dataless

Configure credentials, parameters, stations file and email

nano pygema/src/credentials_mysqldb_admin 
nano pygema/src/credentials_mysqldb_user
nano pygema/src/params_rsam.txt
nano pygema/src/params_ssam.txt
nano pygema/src/params_stalta.txt
nano pygema/src/stationALL.lst
nano pygema/db/email.py
nano pygema/db/credentials.py
nano pygema/db/client_gema.py

Configure BINDER NOSC for automatic localization

$ git clone https://github.com/emmaPatagonia/binder_nosc.git

or

cp -r pygema/core/BINDER_NOSC /home/user
cd /home/user/BINDER_NOSC
chmod a+x binder_nosc_AR

Then configure the parameters, velocity model and station info

nano /home/user/BINDER_NOSC/param.txt
nano /home/user/BINDER_NOSC/info.dat
nano /home/user/BINDER_NOSC/velmod.hdr

Configure NonLinLoc

git clone https://github.com/emmaPatagonia/nonlinloc.git

or

cp -r pygema/core/nonlinloc /home/user
mv nonlinloc NLL
cp -r /home/user/NLL

Then, follow this instructions

more /home/user/NLL/readme.rd

Finally, copy the execSG2KMOD2.py file to NLL

#Configure realtime routines for volcano monitoring

Configure web services files:

nano realtime/web/PyGema_Web/PyGema_Web/settings.py 
nano realtime/gema-init-monitoring

Configure syncronization with other server

nano sync.py

Execute realtime rountines

chmod a+x gema-init-monitoring
./gema-init-monitoring
You can’t perform that action at this time.