Giter Site home page Giter Site logo

etas's Introduction

ETAS: Epidemic-Type Aftershock Sequence

DOI

This code was written for the following articles:

Leila Mizrahi, Shyam Nandan, Stefan Wiemer 2021;
The Effect of Declustering on the Size Distribution of Mainshocks.
Seismological Research Letters; doi: https://doi.org/10.1785/0220200231

The option for (space-time-)varying completeness magnitude in the parameter inversion is described in:

Leila Mizrahi, Shyam Nandan, Stefan Wiemer 2021;
Embracing Data Incompleteness for Better Earthquake Forecasting. (Section 3.1)
Journal of Geophysical Research: Solid Earth; doi: https://doi.org/10.1029/2021JB022379


To cite the code, plase use its DOI, and if appropriate, please cite the article(s).
For more documentation on the code, see the (electronic supplement of the) articles.
For Probabilistic, Epidemic-Type Aftershock Incomplenteness, see PETAI.
In case of questions or comments, contact me: [email protected].

To install, run pip install git+https://github.com/lmizrahi/etas

Contents:

  • runnable_code/ scripts to be run for parameter inversion or catalog simulation
    • ch_forecast.py estimates ETAS parameters and creates 100 simulations using the Swiss catalog
    • estimate_mc.py estimates constant completeness magnitude for a set of magnitudes
    • invert_etas.py calibrates ETAS parameters based on an input catalog (option for varying mc, and option to fix certain parameters available)
    • simulate_catalog.py simulates a synthetic catalog
    • simulate_catalog_continuation.py simulates a continuation of a catalog, after the parameters have been inverted. if you run this many times, you get a forecast. this only works if you run invert_etas.py beforehand.
    • visualize_fit.py makes plots which visualize the model fit to the data. this only works if you run invert_etas.py beforehand, and set store_pij = True.
  • config/ configuration files for running the scripts in runnable_code/
    • names should be self-explanatory.
  • input_data/ input data to run example inversions and simulations
    • california_shape.npy shape of polygon around California
    • ch_catalog.csv Swiss catalog 1972 - 2021, used by ch_forecast.py
    • ch_rect.npy shape of rectangle around Switzerland
    • example_catalog.csv to be inverted by invert_etas.py
    • example_catalog_mc_var.csv to be inverted by invert_etas.py when varying mc mode is used
    • magnitudes.npy example magnitudes for mc estimation
  • output_data/ does not contain anything.
    • your output goes here
  • etas/
    • here is where all the important functions algorithms are defined

etas's People

Contributors

lmizrahi avatar schmidni avatar martahan 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.