- RtTrace.write(filename, format=None, **kwargs)
Save current trace into a file.
filename (str) – The name of the file to write.
format (str, optional) – The format of the file to write. See
obspy.core.stream.Stream.write()method for possible formats. If format is set to
Noneit will be deduced from file extension, whenever possible.
kwargs – Additional keyword arguments passed to the underlying waveform writer method.
>>> tr = Trace() >>> tr.write("out.mseed", format="MSEED")
formatargument can be omitted, and the file format will be deduced from file extension, whenever possible.