[obspy-users] Reading stationxml inventory "Sender" error
peter.danecek at ingv.it
Tue Dec 1 19:13:29 CET 2015
the file you are trying to read is *not* what is called the “stationXML: format. I think the file you are trying to read is called “inventory XML” (or something like that) and used with SeisComP. There might be some way to convert the file within the SeisComP system.
Why you do not just use GFZ’s FDSN station service to get a valid stationXML file? This file you downloaded should be the upstream source for their FDSN service, but you get the conversion a no extra costs or effort.
> On 1 Dec 2015, at 14:37, baillard <baillard at ipgp.fr> wrote:
> Here it is.
> Le 01.12.2015 14:34, Lion Krischer a écrit :
>> Hi Christian,
>> can you upload the file somewhere or send a link to it?
>> On 01/12/15 14:30, baillard wrote:
>>> I ran a read_inventory on a station XML file downloaded from Geofon website.
>>> Unfortunately I get the following error :
>>> list_obj = readFormat(filename, **kwargs)
>>> File "/usr/lib/python2.7/dist-packages/obspy/station/stationxml.py", line 103, in read_StationXML
>>> sender = _tag2obj(root, _ns("Sender"), str)
>>> AttributeError: 'NoneType' object has no attribute 'text'
>>> Any idea on how to bypass this issue?
>>> obspy-users mailing list
>>> obspy-users at lists.swapbytes.de
>> obspy-users mailing list
>> obspy-users at lists.swapbytes.de
> obspy-users mailing list
> obspy-users at lists.swapbytes.de
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2290 bytes
Desc: not available
More information about the obspy-users