Remove instrument response and export file

I was wondering if there is a way to export or save the corrected waveform as a txt file. I need to use a txt file as an input file for my own Matlab code. The txt file should be included :the first column for time, the second column for E-W corrected velocity, and the fourth column for vertical velocity. I would appreciate it if someone could help me.

from obspy import UTCDateTime
from obspy.clients.fdsn import Client
client = Client(‘IRIS’)
t = UTCDateTime(“2013-05-17T13:41:56”)
st = client.get_waveforms(“WU”, “ALFO”, “”, “HH?”, t, t + 6 * 60, attach_response=True)
st.remove_response(output=‘VEL’, water_level=60)


You could simply write your data in TSPAIR format:

Hi , Thank you for your reply. I used TSPAIR and manually substituted time from zero to the end of time instead of using UTCDateTime with DT time steps. Is there any way to get the strike, dip, and rake of the source earthquake?
I appreciate it

That’s a bit out of the scope of obspy usage questions :wink:

That’s not a simple task and there are tons of approaches and sofware for it, e.g. focmec, hash/hashpy, grond, …