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