I am a newbee to obspy and have a “dumb” question for removing instrumental response. However, my sac codes and python codes seem to give different waveforms. What’s wrong with my python codes? Thanks.
Here is my python codes:
from obspy.fdsn import Client
from obspy import UTCDateTime
client = Client()
t = UTCDateTime("2010-08-10T05:35:46")
st = client.get_waveforms("TA", "R11A", "", "BHZ", t, t + 100 * 60,attach_response=True)
st_raw = st.copy()
st.remove_response()
st_raw.plot()
st.plot()
Here is my sac codes:
r TA.R11A.BHZ
rmean
rtrend
taper
trans from polezero subtype SAC.TA.R11A to none freq 0.001 0.002 0.1 0.2
w over
Thank you for your reply. The final waveforms from two methods (attached) are similar now, but the amplitude are quite different. Do you have any idea what might have caused this?
Python codes:
from obspy.core import read
from obspy.fdsn import Client
from obspy import UTCDateTime
I just realized that the y axis of output from python must be displacement, to be consistent with sac output (transfer to none). Thus i added this to the python codes: