obspy.core.trace.Trace.std

Trace.std()[source]

Method to get the standard deviation of amplitudes in the trace.

Returns

Standard deviation of trace.data.

Standard deviation is calculated by NumPy method std() on trace.data.

Example

>>> tr = Trace(data=np.array([0, -3, 9, 6, 4]))
>>> tr.std()
4.2614551505325036
>>> tr = Trace(data=np.array([0.3, -3.5, 9.0, 6.4, 4.3]))
>>> tr.std()
4.4348618918744247