Commit 714af060 authored by Marius Kriegerowski's avatar Marius Kriegerowski
Browse files

plot: remove snuffle

parent 59c4ebe6
......@@ -298,42 +298,11 @@ def plot_detection(
def snuffle(config):
receivers = config.get_receivers()
stations = set()
for r in receivers:
n, s, l =[:3]
stations.add(model.Station(, lon=r.lon,
network=n, station=s, location=l))
markers = []
detections_path = config.detections_path
with open(config.detections_path, 'r') as f:
for line in f.readlines():
data = line.split()
i, t_d, t_t, apeak, latpeak, lonpeak, xpeak, ypeak, zpeak = data
lat, lon = orthodrome.ne_to_latlon(
float(latpeak), float(lonpeak), float(ypeak), float(xpeak))
t = util.str_to_time("%s %s" % (t_d, t_t))
label = "%s-%s" % (i, apeak)
e = model.Event(lat=lat, lon=lon, depth=float(zpeak)*1000.,
name=label, time=t)
m = gui_util.EventMarker(e)
trs = []
paths = config.data_paths
p = pile.make_pile(paths=paths, fileformat='detect')
snuffler.snuffle(p, markers=markers, stations=stations)
__all__ = [
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