Skip to content

Instantly share code, notes, and snippets.

@jamm1985
jamm1985 / catalog.py
Last active July 24, 2020 06:27
Aggregate (count) catalog data by year/month and plot it
"""
File: catalog.py
Author: Andrey Stepnov
Email: myjamm@gmail.com, a.stepnov@geophystech.ru
Github: https://github.com/jamm1985
Description: Aggregate (count) catalog data by year/month and plot it
Catalog sources: https://earthquake.usgs.gov, https://eqalert.ru
"""
@jamm1985
jamm1985 / .vimrc
Last active December 14, 2023 03:30
Vim configuration as Python IDE (and also C, tex/latex and Julia)
" -- global section --
" colors
syntax enable
" colorscheme vimbrains "~/.vim/colors/vimbrains.vim (fallback colors)
" modern vim
set nocompatible
set backspace=indent,eol,start
@jamm1985
jamm1985 / wave_plots.py
Last active July 25, 2020 04:50
Simple waveforms (from various earthquakes) plot with trace differentiation, normalization.
"""
File: wave_plots.py
Author: Andrey Stepnov
Email: a.stepnov@geophystech.ru, myjamm@gmail.com
Github: https://github.com/jamm1985
Description: puts waveforms from different earthquakes in single plot using obspy and matplotlib
"""
from obspy import read
from obspy import UTCDateTime
@jamm1985
jamm1985 / rainfall_regression.py
Created July 24, 2020 02:42
Gets data from XLSX, does explanatory analysis and performs OLS regression
"""
File: rainfall_regression.py
Author: Andrey Stepnov
Email: a.stepnov@geophystech.ru, myjamm@gmail.com
Github: https://github.com/jamm1985
Description: Gets data from XLSX, does explanatory analysis and performs OLS regression
"""
import matplotlib.pylab as plt
import pandas as pd
@jamm1985
jamm1985 / landslide_rainfall_logit.py
Last active August 16, 2021 06:35
Perform logistic regression for landslide prediction based on rainfall measurements
"""
File: landslide_rainfall_logit.py
Author: Andrey Stepnov
Email: a.stepnov@geophystech.ru, myjamm@gmail.com
Github: https://github.com/jamm1985
Description: Perform logistic regression for landslide prediction
based on rainfall measurements.
Classification tests, plots and metrics!
"""
@jamm1985
jamm1985 / lab_7_ecdf_bootstrap.ipynb
Created November 27, 2021 09:52
Lab_7_ecdf_bootstrap.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jamm1985
jamm1985 / lab_5_linear_regression.ipynb
Created November 28, 2021 12:28
Lab_5_linear_regression.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jamm1985
jamm1985 / lab_8_hypotesis_testing_part_i.ipynb
Last active December 9, 2021 11:35
Lab_8_hypotesis_testing_part_I.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jamm1985
jamm1985 / lab_9_hypotesis_testing_part_ii.ipynb
Created December 15, 2021 12:14
Lab_9_hypotesis_testing_part_II.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jamm1985
jamm1985 / _magnitude_det_rate_estimation_mle.ipynb
Last active January 13, 2022 12:25
magnitude_det_rate_estimation_mle.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.