from obspy import read import matplotlib.pyplot as plt st = read("seismic_data.mseed") st.plot() plt.show()
from obspy import read from obspy.signal.filter import bandpass st = read("seismic_data.mseed") st_filtered = st.copy() st_filtered.filter('bandpass', freqmin=2, freqmax=8) st.plot() st_filtered.plot()
from obspy import read import matplotlib.pyplot as plt st = read("seismic_data.mseed") st.spectrogram() plt.show()This code reads in a MiniSEED file and calculates a spectrogram of the seismic data, which shows the frequency content of the signal over time. Package library: ObsPy