obspy.io.gse2.core._write_gse2

_write_gse2(stream, filename, inplace=False, **kwargs)[source]

Write GSE2 file from a Stream object.

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.

  • inplace (bool, optional) – If True, do compression not on a copy of the data but on the data itself - note this will change the data values and make them therefore unusable!

Example

>>> from obspy import read
>>> st = read()
>>> st.write('filename.gse', format='GSE2')