Does anybody know how to output the data from the obspy function spectrogram (not only as an image file)?
Description of work flow:
1.read in one seismic trace (SEGY format) - OK
calculate and plot the spectrogram using obspy.imaging.spectrogram - OK
output the image of the spectrogram as a PNG file - OK
output the data points, as floating numbers - NOT POSSIBLE ??
My code is the following:
st_spec=st.spectrogram(log=True, wlen=0.02, samp_rate=32000, per_lap=0.9, outfile=“st_spec_image”)
The error message, is the following: