[obspy-users] convert sac to wav

RJ rndj11 at gmail.com
Fri May 9 23:01:55 CEST 2014

Dear list,

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?


More information about the obspy-users mailing list