9.3 KiB
9.3 KiB
In [ ]:
%matplotlib inline
import matplotlib.pyplot as plt
plt.style.use('ggplot')
plt.rcParams['figure.figsize'] = 12, 8In [ ]:
from obspy import UTCDateTime
from obspy.clients.fdsn import Client
client = Client("IRIS")
t = UTCDateTime("2011-03-11T05:46:23") # Tohoku
st = client.get_waveforms("II", "PFO", "*", "LHZ",
t + 10 * 60, t + 30 * 60)
print(st)
st.plot()In [ ]:
t = UTCDateTime("2011-03-11T05:46:23") # Tohoku
catalog = client.get_events(starttime=t - 100, endtime=t + 24 * 3600,
minmagnitude=7)
print(catalog)
catalog.plot();In [ ]:
event = catalog[0]
origin = event.origins[0]
# Münster
lon = 7.63
lat = 51.96
inventory = client.get_stations(longitude=lon, latitude=lat,
maxradius=2.5, level="station")
print(inventory)In [ ]:
inventory = client.get_stations(network="OE", station="DAVA",
level="station")
print(inventory)In [ ]:
inventory = client.get_stations(network="OE", station="DAVA",
level="channel")
print(inventory)In [ ]:
t = UTCDateTime("2011-03-11T05:46:23") # Tohoku
st = client.get_waveforms("II", "PFO", "*", "LHZ",
t + 10 * 60, t + 30 * 60, attach_response=True)
st.plot()
st.remove_response()
st.plot()In [ ]:
client.get_events(starttime=t-100, endtime=t+24*3600, minmagnitude=7,
filename="/tmp/requested_events.xml")
client.get_stations(network="OE", station="DAVA", level="station",
filename="/tmp/requested_stations.xml")
client.get_waveforms("II", "PFO", "*", "LHZ", t + 10 * 60, t + 30 * 60,
filename="/tmp/requested_waveforms.mseed")
!ls -lrt /tmp/requested*In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
