Closed rigelifland closed 5 years ago
I'm not sure I understand what you mean. The magnitude of the complex number is the amplitude, and the angle of the complex number is the phase. So np.abs(arrival_amplitude)
should be giving you the correct magnitude.
Yes, of course. I got embarassingly confused about this.
No worries, thanks!
The amplitude is calculated:
y = np.abs(arrival_amplitude)
, but abs takes the magnitude of the complex arrival_amplitude. It should only be using the real part of the amplitude as the complex portion discribes the phase:y = np.abs(np.real(arrival_amplitude))