weixin_39747577 2020-11-20 20:17
浏览 0

problem with getCoordinates in obspy.xseed

Hi,

I'm having problems using getCoordinates with a particular dataless mseed file.

Code lines include : {{{

!python

dataless = Parser() dataless.read("nz.dataless.seed.regional") dataless.writeXSEED("dataless.regional.xml") ... }}} and further down dissecting for each trace.. {{{

!python

coord = dataless.getCoordinates(name) }}} where name is, for example "NZ.MCHZ.10.EHZ"

My error messages are as follows :

{{{

!python

name is NZ.MCHZ.10.EHZ Traceback (most recent call last): File "tremor_dayplot_v1.py", line 227, in coord = dataless.getCoordinates(name) File "/sp/prj/tvz95/mypython/lib/python2.6/site-packages/obspy.xseed-0.4.0-py2.6.egg/obspy/xseed/parser.py", line 475, in getCoordinates start.timestamp, AttributeError: 'str' object has no attribute 'timestamp' }}}

I can send you the dataless input files if you wish... 2.6 Mbytes for the dataless seed

该提问来源于开源项目:obspy/obspy

  • 写回答

6条回答 默认 最新

  • weixin_39747577 2020-11-20 20:17
    关注

    [megies] Looks like a time isostring got handled like an UTCDateTime object.[[BR]] I'll take a look soon, it certainly would help to have the dataless, please use: megies at geophysik.uni-muenchen.de

    评论

报告相同问题?