Giter Site home page Giter Site logo

CC雷达读取BUG about pycinrad HOT 5 CLOSED

cyanidecn avatar cyanidecn commented on June 15, 2024
CC雷达读取BUG

from pycinrad.

Comments (5)

CyanideCN avatar CyanideCN commented on June 15, 2024

那你提交一个Pull request吧

from pycinrad.

CyanideCN avatar CyanideCN commented on June 15, 2024

我看了一下文档,你的处理方式只适用于VPPI模式,如果是单层PPI就会变成负数。目前来说我还没有碰到过这方面的bug,如果可以的话可否提供一个会出错的数据,我再研究一下。

from pycinrad.

lovechang1986 avatar lovechang1986 commented on June 15, 2024

错误分析

出错的原因在于读取的usAngle数组前11个数可能都是单调递增的,但是在12个数的时候并不等于0,如果这个数大于第一个仰角(例如0.5)并且小于其他仰角,那么就会出错了。

下面是读取CC文件错误的详细文件链接:

链接:https://pan.baidu.com/s/1wInKgziZw-ed50vWsupodg
提取码:36hc

参考代码

unsigned char ucScanMode; //扫描方式 1-RHI
// 10-PPI和ZPPI
// 1XX=VPPI(XX为扫描圈数)
......
ScanPara->num=info.ucScanMode-100;

代码分析

我是参考下面链接的一个文件,因为当时只考虑的VPPI模式,其实可以做判断,根据文件所描述的信息可以做判断,判断是RHI模式或者PPI和ZPPI模式,ucScanMode分别是1或者10.如果是都不是或者超过100的整形,那么就是VPPI。这样会比较完备。因为我当时只是考虑把这个CC雷达转换成pyart的Radar格式,所以没有考虑那么多。
因为我不是专业搞雷达的,我感觉如果是RHI模式或者ZPPI模式可能数据结构又会发生什么变化,和现在的会不一样吧。

参考doc链接

链接:https://pan.baidu.com/s/1S6Dv4d3ndmqDf2nTUncvPg
提取码:ra2c

注:百度网盘有效期7天!

以上内容供参考,我就不提交pull request了,如上所说,我不专业搞雷达,很多原理都不太懂,怕搞错了.

ps:https://github.com/vlouf/eth_radar,这个库是一个计算回波顶高的库,我看使用的是2013年老外的一片最新文献,看是否可加入到你的代码库里。

from pycinrad.

CyanideCN avatar CyanideCN commented on June 15, 2024

你给的这个数据的scanmode是0诶,看起来这个数据像是坏的

from pycinrad.

CyanideCN avatar CyanideCN commented on June 15, 2024

看了一下,是马鞍山雷达啊,这个雷达算是特例吧,格式和其他的都不太一样,我也没想好怎么解决

from pycinrad.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.