obspy.io.sac.sacpz._write_sacpz

_write_sacpz(inventory, file_or_file_object)[source]

Writes an inventory object to a SACPZ file.

Note

The channel DIP in the SACPZ comment fields is specified like defined by SEED (positive down from horizontal).

Warning

This function should NOT be called directly, it registers via the the write() method of an ObsPy Inventory object, call this instead.

Parameters:
  • inventory (Inventory) The inventory instance to be written.
  • file_or_file_object The file or file-like object to be written to.