radarsimx / radarsimpy

Radar Simulator built with Python and C++
https://radarsimx.github.io/radarsimpy/
GNU General Public License v3.0
299 stars 64 forks source link

Insight into how simulator models noise #49

Closed kbali1297 closed 1 day ago

kbali1297 commented 5 days ago

I was working with pulse doppler radar example and wanted to find ways to detect the signal even in case of high noise. Is it possible to know how the noise is modeled in the simulator (especially the pulse doppler simulation example)?

Insights as to which distribution the noise belongs to and ways of filtering it to extract signal would be highly appreciated.

data = sim_radar(radar, targets)
baseband = data["baseband"] + data["noise"]

In the example below I have plotted the IQ and Amplitude signals to extract information as to which location the object is located (6830 m here). 06830_11actual

rookiepeng commented 5 days ago

noise generation is a part of radarsimpy, not in the closed source radarsimcpp. You can find the source code of noise generation at: https://github.com/radarsimx/radarsimpy/blob/master/src/radarsimpy/simulator.pyx#L381

The amplitude of the noise is calculate at: https://github.com/radarsimx/radarsimpy/blob/master/src/radarsimpy/radar.py#L452

kbali1297 commented 1 day ago

Thank you very much for pointing these out. I presume the noise is just random numpy array with elements according to a normal distribution.

rookiepeng commented 1 day ago

Yes, you are correct