[add] linear detrend for manual picking...

This commit is contained in:
Marcel Paffrath 2018-02-22 16:31:01 +01:00
parent 39b925f475
commit 9e74ff04c2
2 changed files with 3 additions and 1 deletions

View File

@ -1 +1 @@
b076-dirty 39b9-dirty

View File

@ -2016,6 +2016,7 @@ class PickDlg(QDialog):
if filterphase: if filterphase:
filteroptions = self.getFilterOptions(filterphase).parseFilterOptions() filteroptions = self.getFilterOptions(filterphase).parseFilterOptions()
try: try:
data.detrend('linear')
data.filter(**filteroptions) data.filter(**filteroptions)
#wfdata.filter(**filteroptions)# MP MP removed filtering of original data #wfdata.filter(**filteroptions)# MP MP removed filtering of original data
except ValueError as e: except ValueError as e:
@ -2095,6 +2096,7 @@ class PickDlg(QDialog):
wfdata = self.getWFData().copy().select(channel=channel) wfdata = self.getWFData().copy().select(channel=channel)
if filteroptions: if filteroptions:
try: try:
wfdata.detrend('linear')
wfdata.filter(**filteroptions) wfdata.filter(**filteroptions)
except ValueError as e: except ValueError as e:
self.qmb = QtGui.QMessageBox(QtGui.QMessageBox.Icon.Information, self.qmb = QtGui.QMessageBox(QtGui.QMessageBox.Icon.Information,