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?
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...