obspy.sac.sacio.SacIO.WriteSacXY

SacIO.WriteSacXY(fh)[source]

Write SAC XY file (ascii)

Parameters:fh open file or file-like object.
>>> from obspy.sac import SacIO 
>>> with open('test.sac', 'rb') as fh:
...     tr = SacIO(fh) 
>>> with open('test2.sac', 'wb') as fh:
...     tr.WriteSacXY(fh) 
>>> with open('test2.sac', 'wb') as fh:
...     tr.IsValidXYSacFile(fh) 
True