- _write_sac_xy(stream, filename, **kwargs)¶
Writes a alphanumeric SAC file.
- stream (Stream) The ObsPy Stream object to write.
- filename (str, open file, or file-like object) Name of file to write. In case an open file or file-like object is passed, this function only supports writing Stream objects containing a single Trace. This is a limitation of the SAC file format. An exception will be raised in case it’s necessary.
>>> from obspy import read >>> st = read() >>> st.write("testxy.sac", format="SACXY")