You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 7, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 7, 2024. It is now read-only.
The reflection factor returned consists of the positive frequencies. You could indeed do a convolution if you create an impulse response out of the spectrum. Using np.fft.irfft should give you a usable impulse response. Alternatively, when stacking positive and negative frequencies you can use np.fft.iffthttps://github.com/FRidh/auraliser/blob/master/auraliser/propagation.py#L38.
Isn't ir_reflection function you mentioned equivalent to impulse_response for any spectrum? I mean, since you assume that the frequencies are mirrored, they should give identical results.
Bounday should not accept a zero frequency or? Therefore, I cannot use np.fft.rfftfreq(ntaps, d=1. / Fs) as the input, because it starts with zero. How to alleviate this? Currently, I set a very small number, say 1e-10, as the first frequency component.
reflection_factor_spherical_wave is numerically unstable for large frequencies.
atmosphere.pyhas an impulse response function that I can convolve with the signal to obtain an attenuated signal.How to use the
reflection.pymodule?Thank you.
Best,
Danylo