A Web application to calculate the stress inversion for a group of moment tensors of seismic events within predefined geographical areas, with the help of the STRESSINVERSE and Gisola softwares. The calculations are updated as new data are identified for each defined region. For the description of the calculation areas, area sources that have been proposed in the recent past for the Greek area are used, and there is also the possibility to manually design the desired surface, thus covering more possible applications for the needs of the individual researcher. Additionally, the desired group of moment tensors can be filtered by date, magnitude, depth and rake.
- Firstly, you need to deploy the environment:
sudo apt-get update -y
sudo apt-get install -y default-libmysqlclient-dev build-essential
sudo apt-get install -y pkg-config
cd mt_stress_inversion_calculator
conda env create -f environment.yml
cd mt_stress_inversion_calculator/Stressinverse/Programs_PYTHON && chmod +x *.py
-
Then, you need to have a MySQL instance up and running. Therefore, you can install MySQL server on your PC, or run a dockerized version of it. In the latter case you need to have Docker store the data, otherwise after reboot you would need to re-run it.
-
Assuming, that Dockerized version is used, then run:
conda activate gisola
cd mt_stress_inversion_calculator
mkdir mysql-docker && cd mysql-docker
docker-compose up -d
- Run the application
conda activate gisola
cd mt_stress_inversion_calculator
flask run --debug
If it takes too long because it loads all old events found, you should limit it accordingly at obs.py file lines 116, 117.
If duplicated MTs, do in terminal docker compose down; docker compose up -d