# plot_diff **Repository Path**: rx-ted/plot_diff ## Basic Information - **Project Name**: plot_diff - **Description**: 整理数据,AOA项目其中数据格式是npy,想办法将npy转换Excel格式。 - **Primary Language**: Python - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-11-24 - **Last Updated**: 2022-07-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # plot_diff #### 介绍 整理数据,AOA项目其中数据格式是npy,想办法将npy转换Excel格式。 #### 软件架构 vscode python 3.9.5 #### function 功能 ##### 整理数据 从npy数据转化cv数据 | Ant_polar | tag_polar | x | horizontal_value | horizontal_degree | real | imag | vertical_value | vertical_degree | real | imag | sum_vh | m_azi | m_ele | | --------- | --------- | --- | ---------------- | ----------------- | ------------ | ----------- | -------------- | --------------- | ----------- | ------------ | ----------- | ----- | ----- | | V | 0 | 0 | 0.117809787 | 172.0770264 | -0.116685212 | 0.016239069 | 0.982656956 | 21.96543694 | 0.911325574 | 0.367560118 | 0.979493839 | 0 | 64 | | H | 90 | 10 | 0.284833074 | 2.732982635 | 0.284509093 | 0.013581257 | 0.841194689 | 327.9445305 | 0.712941647 | -0.446455687 | 0.788738385 | 8 | 74 | | | #### using 使用 ```python # 全部数据 python plot_excel.py # 全部数据且固定振幅 python plot_excel_amp.py # 全部数据且固定角度 python plot_excel_angle.py # 选择部分的固定振幅 python plot_excel_amp.py -l 0,35 # 0方位角 35俯仰角 # 选择部分的固定角度 python plot_excel_angle.py -l 0,35 # 0方位角 35俯仰角 # 不会使用,查看帮助 python plot_execel_amp.py -h python plot_execel_angle.py -h ``` #### notice 注意 1、在amp文件中,temp = np.zeros(12, dtype=np.complex64) # 一定要添加这句话,就算不添加,也要np.copy()复制效果 为什么是12个,有两种原因,第一,因为机器上有12通道,负责12个方向记录;第二原因是查看npy的shape是(180,45,2,12),根据大小,分配12个 ```python # 一种方法 temp = np.zeros(12, dtype=np.complex64) # 一定要添加这句话,就算不添加,也要np.copy()复制效果 # 另一种方法 temp = np.copy(vec_a3) # 若没有上述方法直接注释掉,得到cv数据里第一行和以后行一致,不符合要求,没有达到我的要求。 ``` 2、画图,代码不上传了。 3、根据npy数据想要动态变化画图,想要生成一个动画。(不上传) #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)