Skip to content

Instantly share code, notes, and snippets.

View jrleeman's full-sized avatar

John Leeman jrleeman

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file has been truncated, but you can view the full file.
DateTime,Latitude,Longitude,Depth,Magnitude,MagType,NbStations,Gap,Distance,RMS,Source,EventID
1980/01/01 01:24:37.20,12.3530,95.1920,20.00,5.10,Mb,97,,,0.00,NEI,198001014001
1980/01/01 02:45:54.00,27.2610,60.2590,33.00,5.30,Mb,123,,,0.00,NEI,198001014003
1980/01/01 04:56:03.40,38.6020,69.5200,33.00,4.20,Mb,7,,,0.00,NEI,198001014005
1980/01/01 07:53:30.62,60.1800,-152.2200,92.00,4.10,ML,0,,,,AK,
1980/01/01 11:18:20.20,-15.9580,26.0850,33.00,4.10,Mb,6,,,0.00,NEI,198001014009
1980/01/01 12:46:18.80,-17.8390,168.0850,61.00,4.80,Mb,6,,,0.00,NEI,198001014010
1980/01/01 13:48:04.20,13.8040,-90.7330,59.00,4.60,Mb,23,,,0.00,NEI,198001014011
1980/01/01 14:46:19.20,6.8390,-73.0660,163.00,4.70,Mb,14,,,0.00,NEI,198001014012
1980/01/01 15:55:59.60,-15.6210,26.3150,33.00,4.20,Mb,6,,,0.00,NEI,198001014013
@jrleeman
jrleeman / FFT.ipynb
Created August 18, 2015 15:09
Musing about the correct normalization factors for an amplitude spectrum.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jrleeman
jrleeman / _XRD_SAL1744.md
Last active August 29, 2015 14:27
XRD Results and Analysis for Whillan's Ice Stream till sample SAL1744.

This gist contains data and analysis of SAL1744 with XRD.

@jrleeman
jrleeman / Compressibility.ipynb
Last active August 29, 2015 14:26
Parameter relationship calculations for T_070_360_SAL1744
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jrleeman
jrleeman / Step_Dependence.ipynb
Created July 22, 2015 15:03
Showing how requesting different solution times will change the answer for slider displacement.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jrleeman
jrleeman / RSF_Slider_Displacement.ipynb
Created July 21, 2015 20:50
Notes looking slider displacement computation and spring stiffness
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jrleeman
jrleeman / acoustics_sorter.py
Created May 30, 2015 14:14
Sorts acoustics records into folders to make management easier.
import os
import re
cwd = os.getcwd()
fnames = os.listdir(cwd)
# Find the log files
log_pattern = re.compile('^.*log.txt')
log_files = filter(log_pattern.search, fnames)
@jrleeman
jrleeman / sac_converter.py
Created May 29, 2015 14:49
Convert Lab Format Data to SAC
import numpy as np
import os
import sys
from obspy.core import *
from datetime import datetime
class recordSet(object):
def __init__(self, path):
self.traces = []
@jrleeman
jrleeman / pp_control_file.py
Created April 15, 2015 12:11
Make pore pressure oscillation control files for the PSU biax.
import numpy as np
import sys
period = input("Period [sec]: ")
n_cycles = input("Number of Cycles: ")
fs = input("Update Rate [Hz]: ")
amp = input("Amplitude [MPa]: ")
print "\n\nCalibrations:\nL: 0.146059 V/MPa\nH: 1.4702 V/MPa\n"
gain = raw_input("[L]ow or [H]igh Gain: ")