|
| 1 | +# |
| 2 | +# This python script (last tested 2023/08/21) should collect |
| 3 | +# 3 waveforms in SAC-format for the station KEV for the |
| 4 | +# earthquake on Novaya Zemlya on October 11, 2010, as described |
| 5 | +# in the paper https://doi.org/10.1785/0120150302 |
| 6 | +# |
| 7 | +import obspy |
| 8 | +from obspy.clients.fdsn import Client |
| 9 | +client = Client("IRIS") |
| 10 | +from obspy import UTCDateTime |
| 11 | +t = UTCDateTime("2010-10-11T22:50:21.90") |
| 12 | +[sbef, saft] = [0,360] |
| 13 | +# |
| 14 | +st = client.get_waveforms( "IU", "KEV", "10", "BHZ", t - sbef, t + saft, attach_response = True ) |
| 15 | +# st[0].stats.latitude = 69.7565 |
| 16 | +# st[0].stats.longitude = 27.0035 |
| 17 | +st.taper(max_percentage = 0.5, max_length = 1.0) |
| 18 | +st.filter('bandpass', freqmin=2.0, freqmax=8.0, corners=2, zerophase=True) |
| 19 | +st.write( "IU_KEV_BHZ_10.sac", format='SAC' ) |
| 20 | +st.plot() |
| 21 | +# |
| 22 | +st = client.get_waveforms( "IU", "KEV", "10", "BH1", t - sbef, t + saft ) |
| 23 | +st.taper(max_percentage = 0.5, max_length = 1.0) |
| 24 | +st.filter('bandpass', freqmin=2.0, freqmax=8.0, corners=2, zerophase=True) |
| 25 | +st.write( "IU_KEV_BHN_10.sac", format='SAC' ) |
| 26 | +st.plot() |
| 27 | +# |
| 28 | +st = client.get_waveforms( "IU", "KEV", "10", "BH2", t - sbef, t + saft ) |
| 29 | +st.taper(max_percentage = 0.5, max_length = 1.0) |
| 30 | +st.filter('bandpass', freqmin=2.0, freqmax=8.0, corners=2, zerophase=True) |
| 31 | +st.write( "IU_KEV_BHE_10.sac", format='SAC' ) |
| 32 | +st.plot() |
| 33 | +# |
0 commit comments