https://github.com/lmizrahi/etas
for interfacing with the floatCSEP software
preliminary ETAS for Iceland
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: leila.mizrahi@sed.ethz.ch.
runnable_code/scripts to be run for parameter inversion or catalog simulationch_forecast.pyestimates ETAS parameters and creates 100 simulations using the Swiss catalogestimate_mc.pyestimates constant completeness magnitude for a set of magnitudesinvert_etas.pycalibrates ETAS parameters based on an input catalog (option for varying mc available)simulate_catalog.pysimulates a synthetic catalogsimulate_catalog_continuation.pysimulates 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 runinvert_etas.pybeforehand.
config/configuration files for running the scripts inrunnable_code/- names should be self-explanatory.
input_data/input data to run example inversions and simulationscalifornia_shape.npyshape of polygon around Californiach_catalog.csvSwiss catalog 1972 - 2021, used bych_forecast.pych_rect.npyshape of rectangle around Switzerlandexample_catalog.csvto be inverted byinvert_etas.pyexample_catalog_mc_var.csvto be inverted byinvert_etas.pywhen varying mc mode is usedmagnitudes.npyexample magnitudes for mc estimation
output_data/does not contain anything.- your output goes here
etas/
python -m venv venv
source venv/bin/activate
pip install -e .[all]