[obspy-users] Reading stationxml inventory "Sender" error

Lion Krischer krischer at geophysik.uni-muenchen.de
Wed Dec 2 11:03:46 CET 2015


ObsPy will soon be able to also read those files: 
https://github.com/obspy/obspy/pull/1182


On 01/12/15 19:13, Peter Danecek wrote:
> Hi Christian,
>
> 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.
>
> Good luck!
> ~petr
>
>
>> On 1 Dec 2015, at 14:37, baillard <baillard at ipgp.fr> wrote:
>>
>> Here it is.
>>
>> Ch.
>>
>>
>>
>> Le 01.12.2015 14:34, Lion Krischer a écrit :
>>> Hi Christian,
>>>
>>> can you upload the file somewhere or send a link to it?
>>>
>>> Cheers!
>>>
>>> Lion
>>>
>>>
>>> On 01/12/15 14:30, baillard wrote:
>>>> Hi,
>>>>
>>>> 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?
>>>>
>>>> Regards,
>>>>
>>>> Christian
>>>> _______________________________________________
>>>> obspy-users mailing list
>>>> obspy-users at lists.swapbytes.de
>>>> http://lists.swapbytes.de/mailman/listinfo/obspy-users
>>> _______________________________________________
>>> obspy-users mailing list
>>> obspy-users at lists.swapbytes.de
>>> http://lists.swapbytes.de/mailman/listinfo/obspy-users
>> <EVN_inventory.xml>_______________________________________________
>> obspy-users mailing list
>> obspy-users at lists.swapbytes.de
>> http://lists.swapbytes.de/mailman/listinfo/obspy-users
>
>
> _______________________________________________
> obspy-users mailing list
> obspy-users at lists.swapbytes.de
> http://lists.swapbytes.de/mailman/listinfo/obspy-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.swapbytes.de/pipermail/obspy-users/attachments/20151202/5e0bf006/attachment.html>


More information about the obspy-users mailing list