Published July 19, 2023 | Version v1
Software Open

Scripts to reproduce the results of "The precursory phase of large earthquakes" (Science, 2023)

  • 1. IRD

Description

This repository contains the scripts to reproduce the results of Bletery and Nocquet (Science, 2023).

Directories had to be zipped to be downloaded. Please start by unzipping them.
Complementary figures to the one published can be found (without running any script) in the following directories: eq_stack_figures (individual stacks of the 90 earthquakes), eq_stack_figures_excluded (stacks of the 4 earthquakes excluded from the study because of obvious offsets in the 2-day period preceding the events), test_figures (figures of the random tests for which r>1.82), figures_tohoku_test (figures of random tests for which the RMS reduction of a sinusoidal fit > 60%).

If you wish to run the scripts and reproduce the results, you will first need to install the pyacs and pyeq libraries. All the instructions can be found on the following GitHub repository: https://github.com/JMNocquet/pyacs36.

Then run the following scripts (you can skip the heavy downloading and subsequent steps by unzipping the station_location.zip file as well as the data_byEQ folder):

./make_station_list.py # Take a list of earthquakes (downloaded and reformated from the SCARDEC database: http://scardec.projects.sismo.ipgp.fr/). The list used in the article is composed of all earthquakes with depth < 60 km from 01 01 2000 to 12 31 2020 (time period covered by the catalog at the time of the work).

sort download_data.sh | uniq > download_data_uniq.sh # Suppress duplicate requests to avoid downloading the same files multiple times

chmod +x download_data_uniq.sh

./download_data_uniq.sh # Download UNR data (the total size of the data to download is > 20 GB, this will take some time)

./unzip_UNR_data.sh # Unzip annual files into daily files

./extract_UNR_time_series.py # Extract 48 h time series before the earthquakes

./make_synthetics.py # Calculate the synthetic displacements expected from hypothetical precursory slip

./make_dot_product.py # Calculate the dot products and stack them by earthquake

Plot the results in the notebook file:

jupyter notebook make_stack.ipynb # Calculate global stack and generates Figures 2-3, S1-S6

./make_files_4_map_plot.py # Generate files to plot Figure 1

./mapplot.gmt # Generate Figure 1 (needs gmt installed)

Make the test to estimate how frequently the signal we observe could randomly arise from noise:

./make_test_1.py # Calculate dot product stack for every earthquake for 4 "fake earthquakes" per day during 1 year

./make_test_2.py # Draw random combinations of "fake earthquakes" to estimate how frequently the signal we observe could randomly arise from noise

Make the test to estimate how frequently the signal we observe before Tohoku could randomly arise from noise (in notebook):

jupyter notebook tohoku_test.ipynb

Files

data_byEQ.zip

Files (76.5 MB)

Name Size Download all
md5:17be7922d2ce74c68cdd05e473cb6e26
40.2 MB Preview Download
md5:b69b49f217b4c190e40d5310439dd728
5.6 kB Preview Download
md5:a6553f9f8833268a5c76d7be16f84fd0
1.4 MB Preview Download
md5:dc73e380c68e7bb89e938d6d5ae61721
62.7 kB Preview Download
md5:b293e01e6d528a10fd3390dd215996f7
3.9 kB Download
md5:120fcc349f3c654e472c6ca299781238
949.2 kB Preview Download
md5:22d799ea026e60aee3f4afe9988a805f
356.3 kB Preview Download
md5:c45c39e9653be2e74a9aa50aab9beda6
15.3 kB Preview Download
md5:a9886f8d6dd8aafd28e4752589618ab6
4.4 kB Download
md5:c71b9db1b2876024076671eb6290a3e8
2.0 kB Download
md5:1d16cf7d27599f381664178b947d706b
3.5 MB Preview Download
md5:6b578681b52890f0885c926b8833cc20
4.4 kB Download
md5:bfc23bdfc9d852796a6b66c95dd8b0bf
2.0 kB Download
md5:46ec8fc0888222afd2af5c57fd4334f8
5.8 kB Download
md5:0b4980334283aa01503fefb3f21e11b6
3.9 kB Download
md5:312cff6537f3e23535993161be13415c
7.3 kB Download
md5:32cc1c8dcdcd081cdb5876785a8f5053
5.5 kB Preview Download
md5:c771e05d99646a5bdc3d472a6fbe9414
16.9 kB Preview Download
md5:5a044e2707b651233b92d67abc2ac0a1
11.4 kB Preview Download
md5:69676f554ce304b03b6f575d7feb7857
200.2 kB Preview Download
md5:9be4b2c936a83ef1bce491ed2f1d3072
15.1 MB Preview Download
md5:f322d63616fcf58df10f8b48fe68f0cc
14.6 MB Preview Download
md5:98d3496a79b3e96ae0b16dde0ff574ec
7.5 kB Preview Download
md5:6223036fe70c2c599517dae49c5b7ccc
105 Bytes Download

Additional details

Funding

S_5 – S5: Synchronous Slow Slip &amp; Seismic Swarm ANR-19-CE31-0003
Agence Nationale de la Recherche
EARLI – Detection of Early seismic signal using ARtificiaL Intelligence 949221
European Commission

References

  • Bletery and Nocquet (2023), The precursory phase of large earthquakes