obspy.core.stream.Stream.append
- Stream.append(trace)[source]
Append a single Trace object to the current Stream object.
- Parameters:
trace –
Trace
object.
Example
>>> from obspy import read, Trace >>> st = read() >>> tr = Trace() >>> tr.stats.station = 'TEST' >>> st.append(tr) <...Stream object at 0x...> >>> print(st) 4 Trace(s) in Stream: BW.RJOB..EHZ | 2009-08-24T00:20:03.000000Z ... | 100.0 Hz, 3000 samples BW.RJOB..EHN | 2009-08-24T00:20:03.000000Z ... | 100.0 Hz, 3000 samples BW.RJOB..EHE | 2009-08-24T00:20:03.000000Z ... | 100.0 Hz, 3000 samples .TEST.. | 1970-01-01T00:00:00.000000Z ... | 1.0 Hz, 0 samples