obspy.sac.sacio.SacIO.ReadSacFile

SacIO.ReadSacFile(fname)[source]

Read read in the header and data in a SAC file

The header is split into three arrays - floats, ints, and strings and the data points are returned in the array seis

Parameters:f filename (SAC binary)
>>> from obspy.sac import SacIO 
>>> tr = SacIO() 
>>> tr.ReadSacFile('test.sac') 

This is equivalent to:

>>> tr = SacIO('test.sac')  

This Page