/StreamPick

A PyQt frontend to pick seismic wave arrival times in an ObsPy Stream object and export those in QuakeML format.

Primary LanguagePythonGNU General Public License v2.0GPL-2.0

StreamPick

A leightweight PyQt frontend to pick seismic wave arrival times in traces contained in an ObsPy Stream object. For further processing the picks can be treated in ObsPy or exported to QuakeML format (see obspy.core.event and https://quake.ethz.ch/quakeml/).

Running the Program

A Stream object is created and passed to streamPick.

from obspy import read
from streamPick import *

st = read('test.mseed')
new_picks = streamPick(st)

new_picks.getPicks()
>>> List of obspy.core.event.Pick objects

You can save the picks as a QuakeML catalog. And handle the catalog through ObsPy:

from obspy.core import event

cat = event.readEvents('myPicks.xml')

Usage

StreamPick Gui. Navigate through the timeseries with the Mouse wheel: Click and Drag the plot to move in time, use the mouse wheel to zoom in and out.

streamPick-gui

Mouse click and key Q sets P-Wave, W S-Wave arrival. Click and push T for custom wave phase, hit R to remove picks from trace.

Check out About for more useful hotkeys:

streamPick-about

Installation

There sure are numerous methods add a module to Python. Check these out:

Clone from the GitHub repository

git clone https://github.com/miili/StreamPick.git
from streamPick import *

see above

Through Python PIP

pip install https://github.com/miili/StreamPick/archive/master.zip

Dependencies

streamPick relies on:

  • PyQt4
  • ObsPy (tested v0.8.4)
  • NumPy (tested v1.7.1)
  • SciPy (tested v0.12.0)
  • Matplotlib (tested v1.1.1rc)

Development

Things to be missed

  • Wadati Diagram
  • Manageable list of Picks

Contributing

Everybody is welcome to contribute! :)

Please follow ObsPy's styles https://github.com/obspy/obspy/wiki#developer-corner

Bitdeli Badge