obspy.sac.core.writeSACXY

writeSACXY(stream, filename, **kwargs)[source]

Writes a alphanumeric SAC file.

Warning

This function should NOT be called directly, it registers via the the write() method of an ObsPy Stream object, call this instead.

Parameters:
  • stream (Stream) The ObsPy Stream object to write.
  • filename (str) Name of file to write.

Example

>>> from obspy import read
>>> st = read()
>>> st.write("testxy.sac", format="SACXY")  

This Page