Skip to content

Instantly share code, notes, and snippets.

Lion Krischer krischer

Block or report user

Report or block krischer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@krischer
krischer / relative_calibration.ipynb
Last active Mar 15, 2019
Synthetic relative calibration example
View relative_calibration.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@krischer
krischer / get_all_stations.py
Created Apr 5, 2017
Asynchronously download information about all stations worldwise and write them to a JSON file.
View get_all_stations.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Requires Python >= 3.5, aiohttp, and pandas.
$ pip install aiohttp pandas
Upon running it will create a file 'networks_stations.json' which contains all
stations it could find across FDSN web service capable data centers. For each
station it contains the epochs and coordinates.
@krischer
krischer / CPUTempCollector.py
Created Jan 31, 2017
Custom Diamond Collectors
View CPUTempCollector.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Custom collector for
Requires PySensors.
:copyright:
Lion Krischer, 2017
:license:
@krischer
krischer / add_blockette_1000.py
Created Apr 14, 2016
Adding Blockette 1000 to MiniSEED files without one.
View add_blockette_1000.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Script adding Blockette 1000 to MiniSEED files that have been written without
one. It will discard all other blockettes and furthermore requires at least 8
bytes between the fixed header and the beginning of the data.
Requirements: Python >= 2.7
View lab_instrument_response.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View syngine_sourcewidth.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@krischer
krischer / amplitudes.ipynb
Last active Feb 24, 2016
Based on an idea by Torsten Dahm
View amplitudes.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@krischer
krischer / syngine_tutorial.ipynb
Created Feb 23, 2016
Enhanced Syngine Tutorial with ObsPy
View syngine_tutorial.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@krischer
krischer / syngine_perf.py
Created Feb 10, 2016
Performace Tester for Syngine
View syngine_perf.py
# Requires Python 3 and numpy and requests.
# `ping` and `curl` must be available and usable
#
# Measured times are the time to the first received
# byte of the response.
from __future__ import print_function
import math
import os
import random
View test_all_obspy_imports.sh
IMPORTS="
obspy.ah.core;_get_AH_version
obspy.ah.core;_unpack_string
obspy.ah.core;is_AH
obspy.ah.core;read_AH
obspy.ah.core;read_AH1
obspy.ah.core;read_AH2
obspy.ah;core
obspy.arclink.client;ArcLinkException
obspy.arclink.client;Client
You can’t perform that action at this time.