obspy.io.shapefile.core._write_shapefile

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

Write Inventory or Catalog object to a ESRI shapefile.

Parameters:
  • obj (Catalog or Inventory) ObsPy object for shapefile output
  • filename (str) Filename to write to. According to ESRI shapefile definition, multiple files with the following suffixes will be written: ”.shp”, ”.shx”, ”.dbj”, ”.prj”. If filename does not end with ”.shp”, it will be appended. Other files will be created with respective suffixes accordingly.