obspy.io.kml.core._write_kml

_write_kml(obj, filename, **kwargs)[source]

Write Inventory or Catalog object to a KML file. For additional parameters see inventory_to_kml_string() and catalog_to_kml_string().

Parameters:
  • obj (Catalog or Inventory) – ObsPy object for KML output

  • filename (str) – Filename to write to. Suffix “.kml” will be appended if not already present.