obspy.io.seiscomp.event._write_sc3ml

_write_sc3ml(catalog, filename, validate=False, verbose=False, event_removal=False, **kwargs)[source]

Write a SC3ML 0.10 file. Since a XSLT file is used to write the SC3ML file from a QuakeML file, the catalog is first converted in QuakeML.

Warning

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

Parameters:
  • catalog (Catalog) The ObsPy Catalog object to write.
  • filename (str or file) Filename to write or open file-like object.
  • validate (bool) If True, the final SC3ML file will be validated against the SC3ML schema file. Raises an AssertionError if the validation fails.
  • verbose (bool) Print validation error log if True.
  • event_removal If True, the event elements will be removed. This can be useful to associate origins with scevent when injecting SC3ML file into seiscomp.