[fix] do not calculate moment magnitude for S phases

This commit is contained in:
Sebastian Wehling-Benatelli 2016-09-20 09:54:14 +02:00
parent f34262d931
commit c73435dec3

View File

@ -988,6 +988,8 @@ class MainWindow(QMainWindow):
settings.setValue("inventoryFile", fninv) settings.setValue("inventoryFile", fninv)
settings.sync() settings.sync()
for a in o.arrivals: for a in o.arrivals:
if a.phase in 'sS':
continue
pick = a.pick_id.get_referred_object() pick = a.pick_id.get_referred_object()
station = pick.waveform_id.station_code station = pick.waveform_id.station_code
wf = self.get_data().getWFData().select(station=station) wf = self.get_data().getWFData().select(station=station)