# Converting .MSEED Into .SAC

**URL:** https://discourse.obspy.org/t/converting-mseed-into-sac/855
**Category:** Users Mailing List Archive
**Tags:** archive
**Created:** [October 6, 2019, 1:53pm UTC](https://discourse.obspy.org/t/converting-mseed-into-sac/855 "2019-10-06T13:53:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Rauf\_Hussein](https://discourse.obspy.org/letter_avatar_proxy/v4/letter/r/b9bd4f/32.png) [@Rauf\_Hussein](https://discourse.obspy.org/u/Rauf_Hussein)
#### Post date: [October 6, 2019, 1:53pm UTC](https://discourse.obspy.org/t/converting-mseed-into-sac/855/1 "2019-10-06T13:53:50Z")

</div>

Thank you all for the reply and information!

Jonathan,

The string “name” in the code is unique for each MSEED data.

Thanks,  
Rauf.

Masyitha,

Even if I indent the “for” loop, still the code converts just the first MSEED data!

Thanks,  
Rauf.

Dear Obspy Users,

Does anybody else have an idea why the attached code doesn’t work? I think the issue is with the ”tr.write” function! Do we have any other write function the that saves data as .SAC files?

Thanks again for your help,  
Rauf
