User contributed snufflings collection
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cc_matrix upd to PyQt5 imports Sep 11, 2017
hyposat-snuffling hyposat: use gfortran Apr 25, 2018
okada okada: docs typo Jan 11, 2019
screenshots time_line: set margins, update figure Jun 1, 2018
vtk-map VTK: highlight active event Apr 19, 2018
.gitignore Initial commit Sep 20, 2013
LICENSE restored permission rights. Oct 30, 2013
README.md cleanup examples Nov 21, 2017
ahfullgreen.py py3 Nov 10, 2017
audio.py use pyrocko's qt compat Nov 17, 2017
beam_stack.py py3 Nov 10, 2017
catalog_stats.py py3 Sep 15, 2017
cc_relocation.py adapt to new module scheme Aug 2, 2017
corrsearch.py corrsearch: use main hp/lp Jan 11, 2019
drumplot.py drumplot: fix scaling issue Nov 29, 2017
export_waveforms.py option: save filtered traces Nov 21, 2017
extract_catalog.py adapt to new module scheme Aug 2, 2017
extract_events.py adapt to new module scheme Aug 2, 2017
fk_parstack.py adapt to new module scheme Aug 2, 2017
local_magnitude.py py3 Nov 10, 2017
notch.py adapt to new module scheme Aug 2, 2017
obspy_fk_analyse_polar.py adapt to new module scheme Aug 2, 2017
particle_motion.py particle_motion: add channels, disable manually set axis limits Nov 21, 2018
plot_traces.py merge Nov 17, 2017
psd.py psd: fix a py2/3 issue Apr 17, 2018
setup.py setup: fix missing compiler crash Dec 19, 2017
spectrogram.py spectrogram: can now save spectrogram data for external plotting Apr 17, 2018
stack_by_markers.py stack_by_markers: extend tpad Jan 11, 2019
time_line.py add stations and labels Jul 5, 2018

README.md

User Contributed Snufflings

Snufflings are plugins for seismological trace viewer Snuffler which is part of the Python framework Pyrocko.

An overview of available snufflings is given at the end of this page.

Installation

Clone this repository and change directory:

git clone https://github.com/pyrocko/contrib-snufflings.git
cd contrib-snufflings

Create symbolic links pointing from this directory into $HOME/.snufflings. The included setup.py script provides a shortcut for that:

python setup.py link [arguments]

If no arguments are given, all available snufflings will be linked. You will find the new snufflings under panels or run in Snuffler's menu.

Update

Pull updates from the repository:

git pull origin master

Help

Most snufflings include documentation which can be found in the Help menu in Snuffler.

Contribute

After cloning this repository, add your own snufflings and send a pull request.

We recommend to add a doc string at the top of each snuffling right beneath the snuffling's class name. This text will be shown when pressing the Help button on the snuffling's panel. It should give an overview of the functionalities. Wrapping this text in html code can be used to pretty up the documentation.

If you miss some feature in a snuffling, discover a bug or would like to discuss an idea for a new snuffling click on Issues and open up a New Issue.


Examples

Plot PSD

Plot power spectral densities

file: psd.py

screenshot

Cross correlation relocation

Relocate events by cross correlating waveforms

file: cc_relocation.py

screenshot

Cross correlation search

Find repeating events

file: corrsearch.py

screenshot

Cross correlation matrix

Cross correlate selected events. Results, including cross-correlation factor and time lags between maxima of the cross correlation can be stored in YAML format to ease later analysis.

directory: cc_matrix

screenshot

Listen to seismograms

Export seismograms to .wav files or listen to seismological recordings. Direct playback requires the PyQt4 bindings for Phonon. (E.g. on Debian and ubuntu available through: apt-get install python-qt4-phonon)

file: audio.py

screenshot

Time Line

Temporal overview of catalog data.

file: time_line.py

screenshot

Extract Events

Save waveforms for time windows around selected events as MSEED. This is a hybrid Snuffling which can be run from the command-line as well.

file: extract_events.py

screenshot

Export waveforms

Export selected/visible waveforms as MSEED, ASCII, SAC or YAFF files.

file: export_waveforms.py

Distance projected waveform plots

Applying a reduction velocity allows to 'shrink' the time domain. Figures can be exported in various image file formats like .png or .pdf. In order to improve the visual perception of small wiggles, positive amplitudes can be plotted in filled mode.

file: plot_traces.py

screenshot

Spectrogram

file: spectrogram.py

screenshot

Geodetic forward modelling

Visualize and output of a data trace for a rectangular dislocation source in an elastic halfspace. You will need to go to the okada dir and type make in order to compile the C-Code.

directory: okada

screenshot

Particle Motion

Plot combinations of vertical and horizontal channels of selected stations.

file: particle_motion.py

screenshot