Skip to content

Instantly share code, notes, and snippets.

View cossatot's full-sized avatar

Richard Styron cossatot

View GitHub Profile
@cossatot
cossatot / rupture_probabilities.ipynb
Created April 22, 2017 10:16
jupyter notebook for calculating fault rupture probabilites (or likelihoods)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cossatot
cossatot / eqs.csv
Created August 10, 2016 17:16
A few earthquake locations for reproducing a scikit-learn bug
Longitude Latitude
-176.96 -29.25
96.86 15.09
-178.22 -20.08
141.9 35.76
-174.21 -21.35
152.67 -4.57
-179.13 -18.36
143.37 11.7
152.89 -4.59
@cossatot
cossatot / new_python_qgis_colorramps.xml
Created July 27, 2016 15:41
New Python perceptually-uniform colormaps as color ramps for QGIS
<!DOCTYPE qgis_style>
<qgis_style version="0">
<symbols/>
<colorramps>
<colorramp type="gradient" name="Magma">
<prop k="color1" v="0,0,3,255"/>
<prop k="color2" v="251,252,191,255"/>
<prop k="stops" v="0.04;4,4,21,255:0.08;14,10,42,255:0.12;26,16,65,255:0.16;40,17,89,255:0.20;57,15,110,255:0.23;74,16,121,255:0.27;90,21,126,255:0.31;105,28,128,255:0.35;121,34,129,255:0.39;137,40,129,255:0.43;153,45,127,255:0.47;169,50,124,255:0.51;185,55,120,255:0.55;202,62,114,255:0.59;217,70,106,255:0.62;230,81,98,255:0.66;240,96,93,255:0.70;247,113,91,255:0.74;251,132,96,255:0.78;253,151,104,255:0.82;254,170,116,255:0.86;254,188,130,255:0.90;253,207,146,255:0.94;253,225,163,255:0.98;252,243,181,255"/>
</colorramp>
<colorramp type="gradient" name="Inferno">
@cossatot
cossatot / wrightwood_recurrence.ipynb
Last active July 22, 2016 07:09
Jupyter notebook showing recurrence interval and earthquake timing calculations for the San Andreas Fault at Wrightwood.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cossatot
cossatot / wrightwood_eq_times.csv
Created July 22, 2016 05:59
Earthquake timing data for the southern San Andreas from Biasi et al (2002) and Scharer et al (2010)
eq age_mean age_5 age_95
W350 -2915 -2974 -2883
W380 -2746 -2807 -2695
W390 -2657 -2742 -2601
W402 -2610 -2670 -2569
W410 -2503 -2561 -2450
W460 -2309 -2373 -2247
W520 -2253 -2314 -2198
W550.2 -2128 -2184 -2088
W570 -2049 -2136 -1988
@cossatot
cossatot / periodic_topo.ipynb
Last active November 19, 2015 16:46
periodic topo calculations
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cossatot
cossatot / lanf_manuscript_notebook.ipynb
Created January 19, 2014 02:50
IPython notebook of the submitted version of the "Estimated likelihood of observing a large earthquake on a continental low-angle normal fault, and implications for low-angle normal fault activity" paper by Richard Styron and Eric Hetland recently submitted to Geophysical Research Letters.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cossatot
cossatot / eq_mohr.ipynb
Created November 13, 2013 16:08
mohr circle over eq cycle play
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cossatot
cossatot / new_wenchuan_correlations
Created September 4, 2013 18:35
stress and slip correlations for the Yutian eq
This file has been truncated, but you can view the full file.
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{