obspy.core.stream.Stream.std

Stream.std()[source]

Method to get the standard deviations of amplitudes in all trace in the stream.

Standard deviations are calculated by NumPy method std() on trace.data of every trace in the stream.

Returns:List of standard deviations of all traces.

Example

>>> from obspy import Trace, Stream
>>> tr1 = Trace(data=np.array([0, -3, 9, 6, 4]))
>>> tr2 = Trace(data=np.array([0.3, -3.5, 9.0, 6.4, 4.3]))
>>> st = Stream(traces=[tr1, tr2])
>>> st.std()
[4.2614551505325036, 4.4348618918744247]

This Page