obspy.core.stream.Stream.std

Stream.std()[source]

Calculate standard deviations of all Traces in the Stream.

Standard deviations are calculated by NumPy method std() on trace.data for 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]