# RESP files

**URL:** <https://discourse.obspy.org/t/resp-files/710>\
**Category:** Users Mailing List Archive\
**Tags:** archive\
**Created:** [October 31, 2017, 7:19pm UTC](https://discourse.obspy.org/t/resp-files/710 "2017-10-31T19:19:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dirk](https://discourse.obspy.org/letter_avatar_proxy/v4/letter/d/87869e/32.png) [@Dirk](https://discourse.obspy.org/u/Dirk)\
**Post date:** [October 31, 2017, 7:19pm UTC](https://discourse.obspy.org/t/resp-files/710/1 "2017-10-31T19:19:03Z")

</div>

Hi,

I have RESP files containing channel responses in SEED format and a list of stations with coordinates. How can I join the information in OBSPY to generate datalessSEED volumes or SeisComP3 XML which are complete for the station and include all channels?

Cheers,  
Dirk

---

<div class="post-metadata">

**Author:** ![LionKrischer](https://discourse.obspy.org/user_avatar/discourse.obspy.org/lionkrischer/32/219_2.png) [@LionKrischer](https://discourse.obspy.org/u/LionKrischer)\
**Post date:** [October 31, 2017, 7:48pm UTC](https://discourse.obspy.org/t/resp-files/710/2 "2017-10-31T19:48:35Z")

</div>

Hi Dirk,

> > > import obspy

> > > inv = obspy.read\_inventory("RESP\_file")

This reads a RESP file to an `Inventory` object but the coordinates will  
be missing. You'll have to manually add them to their respective fields.  
If you have multiple RESP files you might have multiple `Inventory`  
objects. You can join them by just adding them together.

ObsPy currently cannot write `Inventory` objects to dataless SEED or  
seiscomp XML files - it can only read them - so you'd have to write to  
StationXML. Pull requests to add write support for any of these formats  
would of course be very welcome 🙂

If you are fine with working with one of our lower level objects you can  
use the `Parser` object from `obspy.io.xseed`. This can read RESP files,  
you add the coordinates and then write out SEED files. Internally the  
RESP/SEED reading is based on first parsing to the `Parser` object and  
then converting to an `Inventory` object. This was really painful to  
implement so I doubt we'll implement the other way around without  
someone really pushing for it.

Cheers!

Lion

---

<div class="post-metadata">

**Author:** ![Dirk](https://discourse.obspy.org/letter_avatar_proxy/v4/letter/d/87869e/32.png) [@Dirk](https://discourse.obspy.org/u/Dirk)\
**Post date:** [November 1, 2017, 12:16pm UTC](https://discourse.obspy.org/t/resp-files/710/3 "2017-11-01T12:16:15Z")

</div>

Hi Lion,

thanks for the answer. Having correct meta data is always crucial and has always been a pain. I appreciate that ObsPy can now also work with NRL and I recommend our SMP [1] for keeping the meta data clean and up-to-date.

Dirk

[1] smp.gempa.de
