# Remove instrument response and export file

**URL:** https://discourse.obspy.org/t/remove-instrument-response-and-export-file/1967
**Category:** Usage Questions
**Created:** [June 26, 2024, 3:50pm UTC](https://discourse.obspy.org/t/remove-instrument-response-and-export-file/1967 "2024-06-26T15:50:28Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Nas94](https://discourse.obspy.org/user_avatar/discourse.obspy.org/nas94/32/838_2.png) [@Nas94](https://discourse.obspy.org/u/Nas94)
#### Post date: [June 26, 2024, 3:50pm UTC](https://discourse.obspy.org/t/remove-instrument-response-and-export-file/1967/1 "2024-06-26T15:50:28Z")

</div>

Hello,  
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)  
st.plot()

Thanks

---

<div class="post-metadata">

### Author: ![megies](https://discourse.obspy.org/user_avatar/discourse.obspy.org/megies/32/9_2.png) [@megies](https://discourse.obspy.org/u/megies)
#### Post date: [June 28, 2024, 12:19pm UTC](https://discourse.obspy.org/t/remove-instrument-response-and-export-file/1967/2 "2024-06-28T12:19:35Z")

</div>

You could simply write your data in `TSPAIR` format:

> **[obspy.io.ascii.core — ObsPy 1.4.1.post0+393.g271569d37b.obspy.master...](https://docs.obspy.org/master/packages/autogen/obspy.io.ascii.core.html#module-obspy.io.ascii.core)**

---

<div class="post-metadata">

### Author: ![Nas94](https://discourse.obspy.org/user_avatar/discourse.obspy.org/nas94/32/838_2.png) [@Nas94](https://discourse.obspy.org/u/Nas94)
#### Post date: [July 1, 2024, 3:35pm UTC](https://discourse.obspy.org/t/remove-instrument-response-and-export-file/1967/3 "2024-07-01T15:35:19Z")

</div>

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

---

<div class="post-metadata">

### Author: ![megies](https://discourse.obspy.org/user_avatar/discourse.obspy.org/megies/32/9_2.png) [@megies](https://discourse.obspy.org/u/megies)
#### Post date: [July 4, 2024, 12:38pm UTC](https://discourse.obspy.org/t/remove-instrument-response-and-export-file/1967/4 "2024-07-04T12:38:45Z")

</div>

> [@Nas94](#):
>
> Is there any way to get the strike, dip, and rake of the source earthquake?

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

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