- Stream.write(filename, format, **kwargs)¶
Save stream into a file.
>>> from obspy import read >>> st = read() >>> st.write("example.mseed", format="MSEED")
Writing single traces into files with meaningful filenames can be done e.g. using trace.id
>>> for tr in st: ... tr.write(tr.id + ".MSEED", format="MSEED")
Additional ObsPy modules extend the parameters of the write() method. The following table summarizes all known formats currently available for ObsPy.
Please refer to the Linked Function Call of each module for any extra options available.