Corrected bug with coefficients for gaussiandotnorm and gaussiandotdot waveforms.

这个提交包含在:
Craig Warren
2016-01-27 16:07:36 +00:00
父节点 5fab5887d7
当前提交 65683fc4ff

查看文件

@@ -45,11 +45,11 @@ class Waveform:
""" """
# Coefficients for certain waveforms # Coefficients for certain waveforms
if self.type == 'gaussian' or self.type == 'gaussiandot' or self.type == 'gaussiandotnorm': if self.type == 'gaussian' or self.type == 'gaussiandot' or self.type == 'gaussiandotdot':
chi = 1 / self.freq chi = 1 / self.freq
zeta = 2 * np.pi * np.pi * self.freq * self.freq zeta = 2 * np.pi * np.pi * self.freq * self.freq
delay = time - chi delay = time - chi
elif self.type == 'gaussiandotdot' or self.type == 'gaussiandotdotnorm' or self.type == 'ricker': elif self.type == 'gaussiandotnorm' or self.type == 'gaussiandotdotnorm' or self.type == 'ricker':
chi = np.sqrt(2) / self.freq chi = np.sqrt(2) / self.freq
zeta = np.pi * np.pi * self.freq * self.freq zeta = np.pi * np.pi * self.freq * self.freq
delay = time - chi delay = time - chi