Commit 0c2ada2c authored by doetschj's avatar doetschj
Browse files

Remove only stations with all coordinates equal to zero for localizing

parent a8d2c2d1
......@@ -238,7 +238,7 @@ class Event(ObsPyEvent):
trig_ch = []
tobs = []
for i in self.picks:
if self.param['General']['sensor_coords'][int(i.waveform_id['station_code'])-1, 0]:
if np.max(np.abs(self.param['General']['sensor_coords'][int(i.waveform_id['station_code'])-1, :])):
trig_ch.append(int(i.waveform_id['station_code']) - 1)
tobs.append((i.time - self.wf_stream.traces[0].stats["starttime"]) * 1000)
npicks = len(tobs)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment