obspy.realtime.rttrace.RtTrace.verify

RtTrace.verify()

Verify current trace object against available meta data.

Example

>>> tr = Trace(data=np.array([1,2,3,4]))
>>> tr.stats.npts = 100
>>> tr.verify()  
Traceback (most recent call last):
...
Exception: ntps(100) differs from data size(4)