Created
May 26, 2021 16:50
-
-
Save braunfuss/1941b488fd633a582497f6c86d680fe4 to your computer and use it in GitHub Desktop.
Download data and visualize for the Strassburg event on 26.05.2021 using pyrocko
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pyrocko.client import fdsn | |
from pyrocko import util, io, trace, model | |
from pyrocko.io import quakeml | |
fdsn.g_timeout = 60. | |
# Start and end time | |
tmin = util.stt('2021-05-26 13:40:00') | |
tmax = util.stt('2021-05-26 14:22:00') | |
# Stations in the resarch network "south palatinate" | |
selection = [ | |
('GR', 'TMO*', '*', 'EH*', tmin, tmax), | |
('*', 'INS*', '*', 'EH*', tmin, tmax), | |
] | |
request_waveform = fdsn.dataselect(site='bgr', selection=selection) | |
# write the incoming data stream to 'traces.mseed' | |
with open('event_wantzenau.mseed', 'wb') as file: | |
file.write(request_waveform.read()) | |
traces = io.load('event_wantzenau.mseed') | |
trace.snuffle(traces) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment