Skip to content

The purpose of this thesis is to design a Web application so that it is possible to calculate the average focal mechanism of seismic events within predefined area sources, with the help of the Stressinverse software.

License

Notifications You must be signed in to change notification settings

nikosT/mt_stress_inversion_calculator

 
 

Repository files navigation

SICaMoT: Stress Inverssion Calcuator of Moment Tensors

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.

Screenshots

image

image

image

image image

Installation

  1. 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
  1. 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.

  2. 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
  1. 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

About

The purpose of this thesis is to design a Web application so that it is possible to calculate the average focal mechanism of seismic events within predefined area sources, with the help of the Stressinverse software.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 53.4%
  • HTML 24.0%
  • JavaScript 15.7%
  • SCSS 5.7%
  • MATLAB 0.9%
  • CSS 0.3%