I'm trying to convert sac to wav format, eg
My code below creates a wav file of 141KB but it’s a flat line.
from obspy.core import read
st = read(‘http://examples.obspy.org/RJOB_061005_072159.ehz.new’)
st.write(‘myfile.wave’, format=‘WAV’, framerate=7000)
The input is a seismogram so I don't expect a flat output. Any suggestions?
This looks like a bug to me, so I've opened a ticket to track this
issue, see https://github.com/obspy/obspy/issues/791.
for what I remember of my tests writing WAV, the data has to be normalized to some value in order to match WAV specification, and this is not done internally by obspy, resulting in the error mentionned : a buggy file...
Le 10/05/2014 13:54, Tobias Megies a �crit :