Skip to content

Instantly share code, notes, and snippets.

View d-chambers's full-sized avatar

Derrick Chambers d-chambers

View GitHub Profile
@d-chambers
d-chambers / read_stream_profile.ipynb
Created July 23, 2017 05:39
profiling obspy read_stream
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@d-chambers
d-chambers / meta_fixture.ipynb
Created December 2, 2017 01:30
some thoughts on meta fixtures and lazy fixtures
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@d-chambers
d-chambers / utcdate_weirdness.ipynb
Created January 5, 2018 19:26
Some strange behavior in obspy 1.1.0 UTCDateTime object
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@d-chambers
d-chambers / process_trigs.ipynb
Created February 22, 2018 20:34
wrangling output of obspy coincidence trigger
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@d-chambers
d-chambers / time_cat.ipynb
Created April 15, 2018 06:49
profiling proposed changes in obspy PR 2091
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@d-chambers
d-chambers / json_catalog_io_profile.ipynb
Created September 2, 2018 17:15
simple catalog json read/write test
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@d-chambers
d-chambers / mill.ipynb
Created January 19, 2021 21:45
Milling about
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@d-chambers
d-chambers / read_rsf.py
Last active March 17, 2022 22:13
Reading RSF (Madagascar) files into numpy arrays.
# Example modified from here: https://github.com/ahay/src/issues/130
from subprocess import run
import m8r
import numpy as np
# create example data
run('sfspike n1=5 n2=5 k1=3 > spike.rsf', shell=True)
# Read rsf file