obspy.io.seiscomp.event._write_sc3ml
- _write_sc3ml(catalog, filename, validate=False, verbose=False, event_removal=False, **kwargs)[source]
Write a SCXML 0.13 event file. Since a XSLT file is used to write the SCXML 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 ObsPyCatalog
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 SCXML file will be validated against the SCXML 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 SCXML file into seiscomp.