obspy.signal.invsim.paz_to_freq_resp

paz_to_freq_resp(poles, zeros, scale_fac, t_samp, nfft, freq=False)[source]

Convert Poles and Zeros (PAZ) to frequency response.

The output contains the frequency zero which is the offset of the trace.

Parameters:
  • poles (list[complex]) – The poles of the transfer function

  • zeros (list[complex]) – The zeros of the transfer function

  • scale_fac (float) – Gain factor

  • t_samp (float) – Sampling interval in seconds

  • nfft (int) – Number of FFT points of signal which needs correction

Return type:

numpy.ndarray complex128

Returns:

Frequency response of PAZ of length nfft