pygrt.pygrn

file:

pygrn.py

author:

Zhu Dengda (zhudengda@mail.iggcas.ac.cn)

date:

2024-07-24

该文件包括 Python端使用的格林函数 pygrt.pygrn.PyGreenFunction

class pygrt.pygrn.PyGreenFunction(name: str, nt: int, dt: float, upsampling_n: int, freqs: ndarray, wI: float, dist: float, depsrc: float, deprcv: float)[源代码]

基类:object

__init__(name: str, nt: int, dt: float, upsampling_n: int, freqs: ndarray, wI: float, dist: float, depsrc: float, deprcv: float)[源代码]
参数:
  • name – source-type (EX,VF,HF,DD,DS,SS) + component (Z,R,T)

  • nt – number of time points

  • dt – time interval (s)

  • upsampling_n – upsampling factor

  • freqs – frequency array (Hz)

  • wI – imaginary angular frequency wI,omega = w - j*wI

  • dist – epicentral distance (km)

  • depsrc – source depth (km)

  • deprcv – receiver depth (km)

plot_response()[源代码]

plot the frequency response, including amplitude response and phase response

freq2time(T0: float, travtP: float, travtS: float, mult: float = 1.0, skipImagComps: bool = False)[源代码]

Convert the Green’s function from the frequency domain to the time domain and return it in the form of obspy.Trace

参数:

T0 – The offset (secs) of the starttime w.r.t the event origin, for example, T0=5 denotes recording began 5 seconds after the origin.

返回:

  • tr: obspy.Trace Green’s function