how i can plot a raw data into time series
1 view (last 30 days)
Show older comments
respected sir, how can i plot a raw data file with respect height vs time i want to show first rangebin and with respect to time and i want to plot i in one colourand q channel with different color i used one program but is not working well clear all; close all; clc; %%% file read clear all; close all; clc;
rf=fopen('09JL2008.r2','r')
%%% header read for be=1:5 header= struct('npar',fread(rf,1,'int16'),'nwds',fread(rf,1,'int16'),'nrgb',fread(rf,1,'int16'),'nfft',fread(rf,1,'int16'),'ncoh',fread(rf,1,'int16'),'nicoh',fread(rf,1,'int16'),'ipp',fread(rf,1,'int16'),'pwd',fread(rf,1,'int16'),'cflag',fread(rf,1,'int16'),'nwin',fread(rf,1,'int16'),'w1start',fread(rf,1,'int16'),'w1len',fread(rf,1,'int16'),'w2start',fread(rf,1,'int16'),'w2len',fread(rf,1,'int16'),'year',fread(rf,1,'int16'),'month',fread(rf,1,'int16'),'day',fread(rf,1,'int16'),'hour',fread(rf,1,'int16'),'min',fread(rf,1,'int16'),'sec',fread(rf,1,'int16'),'nbeam',fread(rf,1,'int16'),'beam',fread(rf,1,'int16'),'scan',fread(rf,1,'int16'),'attn',fread(rf,1,'int16'),'noise',fread(rf,1,'int16'),'nrej',fread(rf,1,'int16'),'pthld',fread(rf,1,'int16'),'txpower',fread(rf,1,'int16'),'windfn',fread(rf,1,'int16'),'nomit',fread(rf,1,'int16'),'dtype',fread(rf,1,'int16'),'ver',fread(rf,1,'int16'),'gwind',fread(rf,1,'float'),'gwdir',fread(rf,1,'float'),'temp',fread(rf,1,'float'),'humid',fread(rf,1,'float'),'comments',fread(rf,48,'char'));
%%%data read
nrgb=150;nfft=512;
for rb=1:nrgb
for nft=1:nfft
datI(rb,nft)=fread(rf,1,'float32');
datQ(rb,nft)=fread(rf,1,'float32');
end
end
end
c=3*10^8;
sh=(c.*24*10^-6)/2;
int=((c.*16*10^-6)/2)/16;
a=1:nrgb; h=a*150; H=(sh+h)/1000; b=1:nfft;
t=1000*10^-6*64; Tim=b*t; subplot(2,1,1) contourf(Tim,H,datI) subplot(2,1,2) contourf(Tim,H,datQ)
can i write in different way and plot it
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!