obspy.sac.core.writeSAC

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

Writes a 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("test.sac", format="SAC")  

This Page