obspy.core.stream.Stream.__iadd__

Stream.__iadd__(other)[source]

Add two streams with self += other.

It will extend the current Stream object with the traces of the given Stream. Traces will not be copied but references to the original traces will be appended.

Parameters

other (Stream or Trace) – Stream or Trace object to add.

Example

>>> stream = Stream([Trace(), Trace(), Trace()])
>>> len(stream)
3
>>> stream += Stream([Trace(), Trace()])
>>> len(stream)
5
>>> stream += Trace()
>>> len(stream)
6