# Calling stream.remove\_response without response info

**URL:** <https://discourse.obspy.org/t/calling-stream-remove-response-without-response-info/1212>\
**Category:** Usage Questions\
**Tags:** archive\
**Created:** [March 18, 2021, 7:26am UTC](https://discourse.obspy.org/t/calling-stream-remove-response-without-response-info/1212 "2021-03-18T07:26:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kasper\_van\_Wijk](https://discourse.obspy.org/user_avatar/discourse.obspy.org/kasper_van_wijk/32/404_2.png) [@Kasper\_van\_Wijk](https://discourse.obspy.org/u/Kasper_van_Wijk)\
**Post date:** [March 18, 2021, 7:26am UTC](https://discourse.obspy.org/t/calling-stream-remove-response-without-response-info/1212/1 "2021-03-18T07:26:11Z")

</div>

Why does the following code not warn me there is no response file/info?  
from obspy import read  
st=read()  
st.remove\_response()

The reason I am asking, is because I had a strange experience today: I was using

st = client.get\_waveforms(attach\_response=True)

and was getting waveform data, but no response info, still:

st.remove\_response()

passed without errors or warnings.

best,  
Kasper

---

<div class="post-metadata">

**Author:** ![trichter](https://discourse.obspy.org/user_avatar/discourse.obspy.org/trichter/32/226_2.png) [@trichter](https://discourse.obspy.org/u/trichter)\
**Post date:** [March 18, 2021, 7:43am UTC](https://discourse.obspy.org/t/calling-stream-remove-response-without-response-info/1212/2 "2021-03-18T07:43:20Z")

</div>

Are you sure there is no response information attached for the downloaded data? Maybe its kind of erroneous identity response?  
The example stream already has a response attached.

```python
In [1]: stream = read()
In [2]: del stream[0].stats.response
In [3]: stream.remove_response()
ValueError: No response information found. Use `inventory` parameter to specify an inventory with response information.

```

---

<div class="post-metadata">

**Author:** ![Kasper\_van\_Wijk](https://discourse.obspy.org/user_avatar/discourse.obspy.org/kasper_van_wijk/32/404_2.png) [@Kasper\_van\_Wijk](https://discourse.obspy.org/u/Kasper_van_Wijk)\
**Post date:** [March 18, 2021, 7:48am UTC](https://discourse.obspy.org/t/calling-stream-remove-response-without-response-info/1212/3 "2021-03-18T07:48:10Z")

</div>

Ah! That explains probably most of my question. I did not know that read() included response info.

Is it possible that in my “real” problem today the FDSN service worked for the data part, but not for the response file? Can there be such a hick-up in FDSN service? For the record, the same data request for data+response works now, so I actually cannot reproduce the issue.

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![trichter](https://discourse.obspy.org/user_avatar/discourse.obspy.org/trichter/32/226_2.png) [@trichter](https://discourse.obspy.org/u/trichter)\
**Post date:** [March 18, 2021, 7:53am UTC](https://discourse.obspy.org/t/calling-stream-remove-response-without-response-info/1212/4 "2021-03-18T07:53:59Z")

</div>

Maybe. That is what I meant with “erroneous response”. But hard to tell if it’s not reproducible.

Good, that it works now.
