- 积分
- 264
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2011-10-28
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2013-5-18 11:50:54
|
显示全部楼层
又是那隻貓 发表于 2013-5-13 23:34
请问能不能将matlab读取雷达基数据的程序共享一下呢 ,以及一些相关的程序,非常感谢,目前正在学习中{:eb5 ...
function ReadDataHead(fid)
global state;%径向数据状态
global azimuth%方位角
global elevation%仰角
global nstep%体扫内的仰角数
global firstdistanceR%反射率数据的第一个距离库的实际距离
global firstdistanceV%多普勒数据的第一个距离库的实际距离
global gatewidR%反射率数据的距离库长
global gatewidV%多普勒的距离库长
global gatenumR%反射率的距离库数
global gatenumV%多普勒的距离库数
global Rpoint%反射率数据指针(偏离雷达数据信息头的字节数),表示第一个反射率数据的位置
global Vpoint%速度数据指针(偏离雷达数据信息头的字节数),表示第一个速度数据的位置
global Wpoint%谱宽数据指针(偏离雷达数据信息头的字节数),表示第一个谱宽数据的位置
global mode%体扫(VCP)模式
global resolution;%多普勒速度分辨率
global Nyquistvelo;%Nyquist速度(最大不模糊速度)
head=fread(fid,128,'uchar');%读文件头的重要信息
head=head';
state=head(41)+head(42)*256;
azimuth=(head(37)+head(38)*256)/8.*(180./4096);
elevation=(head(43)+head(44)*256)/8.*(180./4096);
nstep=head(45)+head(46)*256;
firstdistanceR=head(47)+head(48)*256;
firstdistanceV=head(49)+head(50)*256;
gatewidR=head(51)+head(52)*256;
gatewidV=head(53)+head(54)*256;
gatenumR=head(55)+head(56)*256;
gatenumV=head(57)+head(58)*256;
Rpoint=head(65)+head(66)*256;
Vpoint=head(67)+head(68)*256;
Wpoint=head(69)+head(70)*256;
mode=head(73)+head(74)*256;
resolution=head(71)+head(72)*256;%2表示表示0.5米/秒,4表示表示1.0米/秒
Nyquistvelo=(head(89)+head(90)*256)/100.;%最大不模糊速度 |
|