# obspy.core.trace.Trace.remove_response¶

Trace.remove_response(inventory=None, output='VEL', water_level=60, pre_filt=None, zero_mean=True, taper=True, taper_fraction=0.05, plot=False, fig=None, **kwargs)[source]

Deconvolve instrument response.

Uses the adequate obspy.core.inventory.response.Response from the provided obspy.core.inventory.inventory.Inventory data. Raises an exception if the response is not present.

Note that there are two ways to prevent overamplification while convolving the inverted instrument spectrum: One possibility is to specify a water level which represents a clipping of the inverse spectrum and limits amplification to a certain maximum cut-off value (water_level in dB). The other possibility is to taper the waveform data in the frequency domain prior to multiplying with the inverse spectrum, i.e. perform a pre-filtering in the frequency domain (specifying the four corner frequencies of the frequency taper as a tuple in pre_filt).

Note

Any additional kwargs will be passed on to obspy.core.inventory.response.Response.get_evalresp_response(), see documentation of that method for further customization (e.g. start/stop stage).

Note

Using remove_response() is equivalent to using simulate() with the identical response provided as a (dataless) SEED or RESP file and when using the same water_level and pre_filt (and options sacsim=True and pitsasim=False which influence very minor details in detrending and tapering).

Example

>>> from obspy import read, read_inventory
>>> tr = st[0].copy()
>>> tr.remove_response(inventory=inv)
<...Trace object at 0x...>
>>> tr.plot()


Using the plot option it is possible to visualize the individual steps during response removal in the frequency domain to check the chosen pre_filt and water_level options to stabilize the deconvolution of the inverted instrument response spectrum:

>>> from obspy import read, read_inventory