obspy.io.sac.sactrace.SACTrace.__init__

SACTrace.__init__(leven=True, delta=1.0, b=0.0, e=0.0, iztype='ib', nvhdr=6, npts=0, iftype='itime', nzyear=1970, nzjday=1, nzhour=0, nzmin=0, nzsec=0, nzmsec=0, lcalda=False, lpspol=True, lovrok=True, internal0=2.0, data=None, **kwargs)[source]

Initialize a SACTrace object using header key-value pairs and a numpy.ndarray for the data, both optional.

..rubric:: Example

>>> sac = SACTrace(nzyear=1995, nzmsec=50, data=np.arange(100))
>>> print(sac)  
Reference Time = 01/01/1995 (001) 00:00:00.050000
   iztype IB: begin time
b          = 0.0
delta      = 1.0
e          = 99.0
iftype     = itime
internal0  = 2.0
iztype     = ib
lcalda     = False
leven      = True
lovrok     = True
lpspol     = True
npts       = 100
nvhdr      = 6
nzhour     = 0
nzjday     = 1
nzmin      = 0
nzmsec     = 50
nzsec      = 0
nzyear     = 1995