fid=fopen('iwrap_20s_beam2','w','b');

for i=1:1800
    fwrite(fid,latp(i), 'float32');
    fwrite(fid,lonp(i),'float32');
    fwrite(fid,time(i,4),'float32');
    fwrite(fid,time(i,5),'float32');
    fwrite(fid,time(i,6),'float32');
    fwrite(fid,alt,'float32');
    fwrite(fid,trackp,'float32');
    fwrite(fid,az_N(1,i),'float32');
    fwrite(fid,el(i),'float32');
    fwrite(fid,dBZ(:,i),'float32');
    fwrite(fid,v_corr(:,i),'float32');
end
    fclose(fid)