obspy.core.stream.Stream.copy
- Stream.copy()[source]
Return a deepcopy of the Stream object.
- Return type
- Returns
Copy of current stream.
Examples
Create a Stream and copy it
>>> from obspy import read >>> st = read() >>> st2 = st.copy()
The two objects are not the same:
>>> st is st2 False
But they have equal data (before applying further processing):
>>> st == st2 True
The following example shows how to make an alias but not copy the data. Any changes on
st3
would also change the contents ofst
.>>> st3 = st >>> st is st3 True >>> st == st3 True