# Error in the NRL database?

**URL:** <https://discourse.obspy.org/t/error-in-the-nrl-database/884>\
**Category:** Users Mailing List Archive\
**Tags:** archive\
**Created:** [April 24, 2020, 12:03am UTC](https://discourse.obspy.org/t/error-in-the-nrl-database/884 "2020-04-24T00:03:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Goldman\_Mark\_R](https://discourse.obspy.org/letter_avatar_proxy/v4/letter/g/a9a28c/32.png) [@Goldman\_Mark\_R](https://discourse.obspy.org/u/Goldman_Mark_R)\
**Post date:** [April 24, 2020, 12:03am UTC](https://discourse.obspy.org/t/error-in-the-nrl-database/884/1 "2020-04-24T00:03:36Z")

</div>

Hello,

I'm using the NRL routines based on the below website:

> **[Creating a StationXML file from Scratch — ObsPy 1.4.2 documentation](https://docs.obspy.org/tutorial/code_snippets/stationxml_file_from_scratch.html)**

However, there is an error either on the Obspy end or the IRIS end, because when I try to pull a 36db gain RESPONSE file, I get the 0db RESPONSE file:

Python Code:

&nbsp;&nbsp;&nbsp;print(nrl.dataloggers["DTCC (manufacturers of SmartSolo"]["SmartSolo IGU-16"]["0 dB (1)"]["500"]["Minimum Phase"]["Off"])  
&nbsp;&nbsp;&nbsp;print(nrl.dataloggers["DTCC (manufacturers of SmartSolo"]["SmartSolo IGU-16"]["36 dB (64)"]["500"]["Minimum Phase"]["Off"])

Results (the same RESPONSE file):

('SmartSolo IGU-16, 0 dB gain, 500 sps, minimum phase final filters, low cut off', '[http://ds.iris.edu/NRL/dataloggers/dtcc/igu16/RESP.XX.DT046..DPZ.SSOLO\_IGU16.1.500.MP.OFF](http://ds.iris.edu/NRL/dataloggers/dtcc/igu16/RESP.XX.DT046..DPZ.SSOLO_IGU16.1.500.MP.OFF)’)  
('SmartSolo IGU-16, 0 dB gain, 500 sps, minimum phase final filters, low cut off', '[http://ds.iris.edu/NRL/dataloggers/dtcc/igu16/RESP.XX.DT046..DPZ.SSOLO\_IGU16.1.500.MP.OFF](http://ds.iris.edu/NRL/dataloggers/dtcc/igu16/RESP.XX.DT046..DPZ.SSOLO_IGU16.1.500.MP.OFF)’)

Would this be an error on the Obspy end or the NRL end?

Thanks,

Mark  
M.R. Goldman  
Geophysicist  
Earthquake Science Center  
U.S. Geological Survey  
350 N. Akron Rd.,  
Mountain View, CA, 94035

---

<div class="post-metadata">

**Author:** ![megies](https://discourse.obspy.org/user_avatar/discourse.obspy.org/megies/32/9_2.png) [@megies](https://discourse.obspy.org/u/megies)\
**Post date:** [April 24, 2020, 9:10am UTC](https://discourse.obspy.org/t/error-in-the-nrl-database/884/2 "2020-04-24T09:10:05Z")

</div>

Hi Mark,

from a first look, that indeed looks like it's a bug in ObsPy's NRL  
client, I opened a ticket for it on github:

> <https://github.com/obspy/obspy/issues/2604>
>
> Reported on the users mailing list:
> 
> \---
> 
> I'm using the NRL routines based o…n the below website:
> 
> https://docs.obspy.org/tutorial/code\_snippets/stationxml\_file\_from\_scratch.html
> 
> However, there is an error either on the Obspy end or the IRIS end, because when I try to pull a 36db gain RESPONSE file, I get the 0db RESPONSE file:
> 
> Python Code:
> 
> \`\`\`python
> print(nrl.dataloggers\["DTCC (manufacturers of SmartSolo"\]\["SmartSolo IGU-16"\]\["0 dB (1)"\]\["500"\]\["Minimum Phase"\]\["Off"\])
> print(nrl.dataloggers\["DTCC (manufacturers of SmartSolo"\]\["SmartSolo IGU-16"\]\["36 dB (64)"\]\["500"\]\["Minimum Phase"\]\["Off"\])
> \`\`\`
> 
> Results (the same RESPONSE file):
> 
> \`\`\`
> ('SmartSolo IGU-16, 0 dB gain, 500 sps, minimum phase final filters, low cut off', 'http://ds.iris.edu/NRL/dataloggers/dtcc/igu16/RESP.XX.DT046..DPZ.SSOLO\_IGU16.1.500.MP.OFF')
> ('SmartSolo IGU-16, 0 dB gain, 500 sps, minimum phase final filters, low cut off', 'http://ds.iris.edu/NRL/dataloggers/dtcc/igu16/RESP.XX.DT046..DPZ.SSOLO\_IGU16.1.500.MP.OFF')﻿
> \`\`\`
> 
> \---
> 
> This looks like an actual bug and actually pretty severe so this should be fixed on 1.2.x maintenance branch.

Thanks for reporting!

cheers,  
Tobias

---

<div class="post-metadata">

**Author:** ![megies](https://discourse.obspy.org/user_avatar/discourse.obspy.org/megies/32/9_2.png) [@megies](https://discourse.obspy.org/u/megies)\
**Post date:** [April 24, 2020, 9:44am UTC](https://discourse.obspy.org/t/error-in-the-nrl-database/884/3 "2020-04-24T09:44:44Z")

</div>

Hi Mark,

nevermind, it's some wrong links in the NRL actually (pheewwww). I'll  
forward the issue to Mary Templeton at IRIS.

best.  
Tobias

---

<div class="post-metadata">

**Author:** ![Goldman\_Mark\_R](https://discourse.obspy.org/letter_avatar_proxy/v4/letter/g/a9a28c/32.png) [@Goldman\_Mark\_R](https://discourse.obspy.org/u/Goldman_Mark_R)\
**Post date:** [April 24, 2020, 6:14pm UTC](https://discourse.obspy.org/t/error-in-the-nrl-database/884/4 "2020-04-24T18:14:13Z")

</div>

Thank you very much!  
Mark

M.R. Goldman  
Geophysicist  
Earthquake Science Center  
U.S. Geological Survey  
350 N. Akron Rd.,  
Mountain View, CA, 94035

&nbsp;&nbsp;&nbsp;&nbsp;Hi Mark,

&nbsp;&nbsp;&nbsp;&nbsp;nevermind, it's some wrong links in the NRL actually (pheewwww). I'll  
&nbsp;&nbsp;&nbsp;&nbsp;forward the issue to Mary Templeton at IRIS.

&nbsp;&nbsp;&nbsp;&nbsp;best.  
&nbsp;&nbsp;&nbsp;&nbsp;Tobias
