obspy.core.trace.Trace.__mul__

Trace.__mul__(num)[source]

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