Dear all,
I am trying to read sac data and I encounter some problems. I tried the file proposed in example in the website (http://examples.obspy.org/RJOB_061005_072159.ehz.new) and obspy works fine. But when I used my data it is not working. I think that comes from how the data were constructed but I was wondering if there is a way to do something to make my file readable.
The errors obtained when I am trying to read my files are: " {{{
!python
from obspy.core import read st = read('obs03.pseg.sac') print st Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.7/site-packages/obspy.core-0.6.2-py2.7.egg/obspy/core/stream.py", line 533, in str out = out + "\n".join([tr.str(id_length) for tr in self]) File "/usr/lib/python2.7/site-packages/obspy.core-0.6.2-py2.7.egg/obspy/core/trace.py", line 373, in str return out % (self.stats) ValueError: unsupported format character '.' (0x2e) at index 10 }}}
Under gsac, the header associated to this file is:
{{{
NPTS 450000 B 0
E 3599.992 DELTA 0.008
DEPMAX 98459 DEPMIN -106333
DEPMEN -0.5771466 NZYEAR 2011
NZJDAY 107 NZHOUR 17
NZMIN 0 NZSEC 0
NZMSEC 0 KZDATE Apr 17 (107), 2011
KZTIME 17:00:00.000 KSTNM
KCMPNM SHN STLA 0
STLO 0 TIMMAX 2871.872
TIMMIN 2871.776 NVHDR 6
IFTYPE ITIME IDEP IVOLTS
IZTYPE IUNKN LPSPOL FALSE
LOVROK FALSE LCALDA FALSE
}}}
Thank you.
Best regards
EC
该提问来源于开源项目:obspy/obspy