Skip to content

obspy remove_sensitivity problem with the tsunami monitoring gauges after the FDSN station upgrade to StationXML1.2 #144

@elidana

Description

@elidana

Reporting here an issue found by one of our users.

This has been noted after the recent upgrade of the FDSN station webservice to deliver StationXML 1.2 (see https://github.com/GeoNet/help/blob/main/data-access-changes/fdsn-station.md for details)

I am trying to plot buoy data from GEONET. The following code snippet worked a few months ago:

from obspy.clients.fdsn import Client
from obspy import UTCDateTime

client = Client("GEONET")
starttime = UTCDateTime("2025-07-29T20:00:00.000")

endtime = starttime + 3600*24

network='NZ'
station='CHIT'
location ='41'

st = client.get_waveforms(network=network, location=location, station=station, channel="LTZ",starttime=starttime, endtime=endtime,attach_response=True)

st.remove_sensitivity()
st.plot()

The error I am getting is:

AttributeError: 'NoneType' object has no attribute 'value'

and the data are not converted from V to m.
This can be seen if you print
st[0].stats.response

Any idea what I am doing wrong?

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions