utils.interpolate_wf_fd#
Back to Module page
Summary#
get log-log interpolant of amp & lin of phase with old_f[0] >= 0,
Signature#
def interpolate_wf_fd(old_f, old_wf, log_in = False)
Name |
Type |
Default |
Description |
|---|---|---|---|
|
(ordered) array of rfft frequencies >= 0 (in Hz) where waveform is saved |
||
|
len(old_f) array with frequency domain waveform h(f) OR log waveform log(h) = np.log(np.abs(h)) + 1j\*np.unwrap(np.angle(h)) => set log_in=True –> BE SURE TO UNWRAP PHASE if log_in !!! |
||
|
False |
bool indicating if old_wf is log(h) => real, imag = amp, unwrapped_phase |
Output variables#
Return annotation |
Docstring type |
Description |
|---|---|---|
|
Function that takes frequencies (Hz) & returns waveform at those frequencies |
Docstring#
get log-log interpolant of amp & lin of phase with old_f[0] >= 0,
:param old_f: (ordered) array of rfft frequencies >= 0 (in Hz) where waveform is saved
:param old_wf: len(old_f) array with frequency domain waveform h(f)
OR log waveform log(h) = np.log(np.abs(h)) + 1j*np.unwrap(np.angle(h)) => set log_in=True
--> BE SURE TO UNWRAP PHASE if log_in !!!
:param log_in: bool indicating if old_wf is log(h) => real, imag = amp, unwrapped_phase
:return: Function that takes frequencies (Hz) & returns waveform at those frequencies