obspy.io.stationxml.core._write_stationxml

_write_stationxml(inventory, file_or_file_object, validate=False, nsmap=None, level='response', **kwargs)[source]

Writes an inventory object to a buffer.

Parameters
  • inventory (Inventory) – The inventory instance to be written.

  • file_or_file_object – The file or file-like object to be written to.

  • validate (bool) – If True, the created document will be validated with the StationXML schema before being written. Useful for debugging or if you don’t trust ObsPy. Defaults to False.

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