# Obspy Python Help

**URL:** <https://discourse.obspy.org/t/obspy-python-help/764>\
**Category:** Users Mailing List Archive\
**Tags:** archive\
**Created:** [March 24, 2018, 12:33pm UTC](https://discourse.obspy.org/t/obspy-python-help/764 "2018-03-24T12:33:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xue\_Nan\_Lawrence\_Liu](https://discourse.obspy.org/letter_avatar_proxy/v4/letter/x/a88e4f/32.png) [@Xue\_Nan\_Lawrence\_Liu](https://discourse.obspy.org/u/Xue_Nan_Lawrence_Liu)\
**Post date:** [March 24, 2018, 12:33pm UTC](https://discourse.obspy.org/t/obspy-python-help/764/1 "2018-03-24T12:33:31Z")

</div>

To whom it may concern,

I am a research student currently working on seismic data analysis from the University of Western Australia, and I am very new to python let alone Obspy and therefore would like to seek for some help on this matter.

Regards,

Lawrence

---

<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:** [March 26, 2018, 8:23am UTC](https://discourse.obspy.org/t/obspy-python-help/764/2 "2018-03-26T08:23:47Z")

</div>

Hi Lawrence,

I don’t have all the files so I did not run your example and cannot tell what went wrong. It would be great if you can set-up a small self-containing example with data and open an issue on github ([GitHub - obspy/obspy: ObsPy: A Python Toolbox for seismology/seismological observatories.](http://github.com/obspy/obspy)) so we can investigate the problem.

Note that you are trying to remove the response of one seismometer and adding the response of another seismometer. A valid use case but not what you want according to your description. Assuming you have miniseed and dataless SEED files (which judging from your code you have), you can do:

> > > import obspy

> > > st = obspy.read(“file.mseed”)

> > > inv = obspy.read\_inventory(“file.seed”)

> > > st.remove\_response(inventory=inv, …)

Please have a look at the documentation for all available parameters as they have a big influence on the final result: [obspy.core.trace.Trace.remove\_response — ObsPy 1.4.2 documentation](http://docs.obspy.org/packages/autogen/obspy.core.trace.Trace.remove_response.html)

Also please feel free to visit our chat room () for questions as this 🙂

Cheers!

Lion
