GithubHelp home page GithubHelp logo

sireeshgit / loki Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wulwife/loki

0.0 0.0 0.0 136.73 MB

earthquake LOcation by waveform staKIng

License: GNU General Public License v3.0

Python 58.49% C 41.51%

loki's Introduction

LOKI

LOKI (LOcation of seismic events through traveltime staKIng) is a code that performs earthquake detection and location using waveform coherence analysis (waveform stacking).

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Installation

It is always good habit to create (or work) in environments. For more information please see conda or pipenv

For example:

$ conda create -n loki python=3.7
$ conda activate loki

To use LOKI you will need:

  • GCC6 or later versions or any C compiler that supports OpenMP calls
  • Python3 libraries, numpy (needed also at installation stage) and obspy

The software now comes with an installer! simply digit:

$ # activate the envionment (optional)
$ pip install numpy  # v1.18 or higher (needed for C-compilation)
$ cd WHERE_LOKI_IS_STORED
$ pip install .

NB: before running the pip install command, make sure to change accordingly the os.environ["CC"] variable with a compiler that supports OpenMP calls.

Testing

If installation didn't throw any error, you should be fine. If you still want to double-check, the ultimiate installation, you could find a tests dir with an executable script. Run it anc compare the output results with the expected_results dir. Results will be equals up to significant float digits.

Usage

To use LOKI you could use the carbon-print RunLoki.py script (in bin folder). You could copy it anywhere in the system, just make sure to make it executable. Open the file to change the configuration's options at your preference.

Citing

Please cite the following articles in documents showing outputs of LOKI:

For location:

  • Grigoli et al. 2013, Automated seismic event location via traveltime stacking: An application to mining induced seismicity, Seismological Research Letters, https://doi.org/10.1785/0220120191

  • Grigoli et al 2014, Automated seismic event location by waveform coherence analysis, Geophysical Journal international, https://doi.org/10.1093/gji/ggt477

  • Grigoli et al. 2016, Automated microseismic event location using Master-Event Waveform Stacking, Scientific Reports, https://doi.org/10.1038/srep25744

For detection:

  • Grigoli et al. 2018, Pick-and waveform-based techniques for real-time detection of induced seismicity, Geophysical Journal International, https://doi.org/10.1093/gji/ggy019

Author contact details:

Copyright(C) 2013 Francesco Grigoli

Author: Francesco Grigoli

Mail: [email protected] or [email protected]

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

loki's People

Contributors

fmassin avatar speedshi avatar wulwife avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.