obspy.core.stream._write_pickle

_write_pickle(stream, filename, protocol=2, **kwargs)[source]

Write a Python pickle of current stream.

Note

Writing into PICKLE format allows to store additional attributes appended to the current Stream object or any contained Trace.

Warning

This function should NOT be called directly, it registers via the the write() method of an ObsPy Stream object, call this instead.

Parameters:
  • stream (Stream) The ObsPy Stream object to write.
  • filename (str) Name of file to write.
  • protocol (int, optional) Pickle protocol, defaults to 2.