obspy.io.kml - Keyhole Markup Language (KML) write support for ObsPy

This module provides write support for the Keyhole Markup Language (KML) format.

Write support works via the ObsPy plugin structure for Catalog and Inventory:

>>> from obspy import read_inventory, read_events
>>> inv = read_inventory()  # load example data
>>> inv.write("my_stations.kml", format="KML")  
>>> cat = read_events()  # load example data
>>> cat.write("my_events.kml", format="KML")  

For details on further parameters see inventory_to_kml_string() and catalog_to_kml_string().

copyright:The ObsPy Development Team (devs@obspy.org)
license:GNU Lesser General Public License, Version 3 (https://www.gnu.org/copyleft/lesser.html)


core Keyhole Markup Language (KML) output support in ObsPy