PYTHON读原始文件,显示Range-Doppler

rate = 1.464844  # 斜率为1时1点对应的距离
xx_group = np.linspace(1, chirp, chirp, dtype=int)
yy_group = np.linspace(1, range, range, dtype=int)
point_group = np.linspace(1, point, point, dtype=int)

count_i = 1
for count_i in range(frame):
    time1 = time.time()
    # 打开.bin文件
    count_i = count_i + 1
    b = open("ETH—" + str(count_i) + ".bin", 'rb')
    print(count_i)

    # data三维数组
    n = [[[0] * antenna for x in range(point)] for x in range(chirp)]
    for j in range(chirp):
        for k in range(point):
            for l in range(antenna):
                data = b.read(3)  # 每次输出3个字节
                temp_imag_int = data.hex()[0:3]  # 12位一个数,先虚后实
                temp_real_int = data.hex()[3:6]
                n[j][k][i] = complex(temp_real_int, temp_imag_int)
    # 做RD数据处理
    plt.clf()
    fig = plt.gcf()  # 获取当前图

    fia = np.squeeze(radarcube[:, :, 2])
    Y0 = fft(fia, point)
    Y0_tmp = Y0 - Y0.mean(axis=0)  
    m = fft(Y0_tmp, chirp, axis=0)
    Y1 = fftshift(fft(Y0_tmp, 16, axis=0), axes=0)
    Y1_abs = abs(Y1)
    zz_group = Y1_abs[:, 1:range]  # 74个数 1-74
    a2 = Axes3D(fig)
    X, Y = np.meshgrid(yy_group * rate, xx_group)
    a2.plot_surface(X, Y, zz_group)

    plt.pause(0.00001)  # 暂停时间
    plt.ioff()  # 关闭画图窗口Z
    time2 = time.time()
    print(time2 - time1)
plt.show()

在雷达领域中,range-doppler估计是一种用于分析目标运动的方法。它结合了目标的距离和多普勒频移信息,以估计目标的位置和速度。根据引用\[2\]中提到的《The Micro-Doppler Effect in Radar》一书,range-doppler估计是多普勒效应的一种应用。多普勒效应是指当目标相对于雷达发射器或接收器运动时,雷达接收到的信号频率会发生变化。range-doppler估计利用这种频率变化来推断目标的运动状态。具体的算法和实现细节可以参考引用\[1\]中提到的代码实现部分。 #### 引用[.reference_title] - *1* *2* [The Micro-Doppler Effect in Radar —— HumanWalkingModel代码解](https://blog.csdn.net/Dandan2530/article/details/129931968)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [论文阅:RADDet: Range-Azimuth-Doppler based Radar Object Detectionfor Dynamic Road Users](https://blog.csdn.net/qq_46460131/article/details/130539519)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值