obspy.io.quakeml.core._write_quakeml

_write_quakeml(catalog, filename, validate=False, nsmap=None, **kwargs)[source]

Writes a QuakeML file.

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, optional) – If True, the final QuakeML file will be validated against the QuakeML schema file. Raises an AssertionError if the validation fails.

  • nsmap (dict, optional) – Additional custom namespace abbreviation mappings (e.g. {“edb”: “http://erdbeben-in-bayern.de/xmlns/0.1”}).