On the way to stable magnitude determination, still buggy!
This commit is contained in:
@@ -6,7 +6,7 @@ Revised/extended summer 2017.
|
||||
|
||||
:author: Ludger Küperkoch / MAGS2 EP3 working group
|
||||
"""
|
||||
|
||||
import pdb
|
||||
import matplotlib.pyplot as plt
|
||||
import numpy as np
|
||||
import obspy.core.event as ope
|
||||
@@ -381,8 +381,13 @@ class MomentMagnitude(Magnitude):
|
||||
# NLLoc: time_weight = 0 => do not use onset!
|
||||
if a.time_weight == 0:
|
||||
continue
|
||||
pick = a.pick_id.get_referred_object()
|
||||
station = pick.waveform_id.station_code
|
||||
if len(self.stream) <= 2:
|
||||
print("Station:", station)
|
||||
print("WARNING: No instrument corrected data available, \
|
||||
no magnitude calculation possible! Go on.")
|
||||
continue
|
||||
pick = a.pick_id.get_referred_object()
|
||||
scopy = self.stream.copy()
|
||||
wf = scopy.select(station=station)
|
||||
if not wf:
|
||||
|
||||
Reference in New Issue
Block a user