obspy.realtime.rttrace.RtTrace.__mul__

RtTrace.__mul__(num)

Create a new Stream containing num copies of this trace.

Parameters:num (int) Number of copies.
Returns:New ObsPy Stream object.

Example

>>> from obspy import read
>>> tr = read()[0]
>>> st = tr * 5
>>> len(st)
5