obspy.core.inventory.inventory.Inventory.write

Inventory.write(path_or_file_object, format, **kwargs)[source]

Writes the inventory object to a file or file-like object in the specified format.

Parameters:
  • path_or_file_object File name or file-like object to be written to.
  • format The format of the written file.