pyrocko.pz

Reader for SAC pole-zero files.

See also enhanced_sacpz.

Functions

read_sac_zpk([filename, file, string, ...])

Read SAC pole-zero file.

read_to_pyrocko_response([filename, file, ...])

Read SAC pole-zero file into Pyrocko response object.

read_to_stationxml_response(input_unit, ...)

Read SAC pole-zero file into StationXML response object.

read_sac_zpk(filename=None, file=None, string=None, get_comments=False)[source]

Read SAC pole-zero file.

Returns:

(zeros, poles, constant) or (zeros, poles, constant, comments) if get_comments is True.

read_to_pyrocko_response(filename=None, file=None, string=None)[source]

Read SAC pole-zero file into Pyrocko response object.

Returns:

Response as a :py:class:~pyrocko.trace.PoleZeroResponse` object.

read_to_stationxml_response(input_unit, output_unit, normalization_frequency=1.0, filename=None, file=None, string=None)[source]

Read SAC pole-zero file into StationXML response object.

Parameters:
  • input_unit (str) – Input unit to be reported in the StationXML response.

  • output_unit (str) – Output unit to be reported in the StationXML response.

  • normalization_frequency (float) – Frequency where the normalization factor for the StationXML response should be computed.

Returns:

Response as a :py:class:~pyrocko.io.stationxml.Response` object with a single pole-zero response stage.