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

Write GSE2 file from a Stream object.


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

  • 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!


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