# obspy.realtime.rttrace.RtTrace.attach_response¶

RtTrace.attach_response(inventories)

Search for and attach channel response to the trace as Trace.stats.response. Raises an exception if no matching response can be found. To subsequently deconvolve the instrument response use Trace.remove_response().

>>> from obspy import read, read_inventory
>>> tr = st[0]