miili / streampick Goto Github PK
View Code? Open in Web Editor NEWA PyQt frontend to pick seismic wave arrival times in an ObsPy Stream object and export those in QuakeML format.
License: GNU General Public License v2.0
A PyQt frontend to pick seismic wave arrival times in an ObsPy Stream object and export those in QuakeML format.
License: GNU General Public License v2.0
Hi Miili;
I have adapted the code for Python 3.x. However I have encounter an issue when I try to run it:
File "/Volumes/SMOMENT/Deconvolution_Nicoya/streamPick.py", line 55, in init
self.setupUI()
File "/Volumes/SMOMENT/Deconvolution_Nicoya/streamPick.py", line 67, in setupUI
self._initPlots()
File "/Volumes/SMOMENT/Deconvolution_Nicoya/streamPick.py", line 84, in _initPlots
self.canvas = FigureCanvas(self.fig)
File "//anaconda/lib/python3.5/site-packages/matplotlib/backends/backend_qt4agg.py", line 76, in init
FigureCanvasQT.init(self, figure)
File "//anaconda/lib/python3.5/site-packages/matplotlib/backends/backend_qt4.py", line 71, in init
QtWidgets.QWidget.init(self)
TypeError: init() missing 1 required positional argument: 'figure'
Attached is the script. Any ideas where I am missing the positional argument?
Thanks
streamPick.py.zip
GitHub has simple site that should help with choosing one.
Hi, This downloaded and installed ok for me ; loaded a stream ok without problems ; and I can move back and forth along the trace as well; zoom in and out worked fine too ; filter worked fine ; BUT for some reason I had great difficulty actually creating picks. In about 20 or 30 attempts I managed 2. The attempts just didn't appear.....no idea what I'm doing incorrectly...... but as it stands I can't seem to use StreamPick although I would really like to...
Hi, I tried to use StreamPick with latest matplotlib (1.5.1) but it doesn't work out of the box.
A quick-and-dirty fix for having the window is this:
diff --git a/streamPick.py b/streamPick.py
index 00057dd..2debdda 100644
--- a/streamPick.py
+++ b/streamPick.py
@@ -206,8 +206,8 @@ class streamPick(QtGui.QMainWindow):
self.fig.clear()
self._appFilter(draw=False)
for _i, tr in enumerate(self._current_st):
- ax = self.fig.add_subplot(num_plots, 1, _i)
- ax.plot(tr.data, 'k', antialiased=True, rasterized=True, lod=False)
+ ax = self.fig.add_subplot(num_plots, 1, _i+1)
+ ax.plot(tr.data, 'k', antialiased=True, rasterized=True)#, lod=False)
ax.axhline(0, color='k', alpha=.05)
ax.set_xlim([0, tr.data.size])
ax.text(.02, .925, self._current_st[_i].id,
but I didn't look into why it works...
In any case, even with this fix, I'm not able to pick, since hotkeys (q
, w
) don't work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.