



下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
functionHeadO=ReadObsHead[fname,fpath]=uigetfile('*.*O','選擇一個O文件');HeadO.O_filename=strcat(fpath,fname);fid=fopen(HeadO.O_filename,'rt');if(fid==-1)msgbox('文件不存在','警告','warn');return;endk=0;while(1)s=fgets(fid);if(strfind(s,'RINEXVERSION'))HeadO.Rtype=str2double(s(6:10));elseif(strfind(s,'APPROXPOSITIONXYZ'))HeadO.XYZ(1)=str2double(s(1:14));HeadO.XYZ(2)=str2double(s(15:28));HeadO.XYZ(3)=str2double(s(29:42));elseif(strfind(s,'MARKERNAME'))HeadO.staname=s(1:4);elseif(strfind(s,'MARKERNUMBER'))HeadO.stanum=s(1:4);elseif(strfind(s,'#/TYPESOFOBSERV'))HeadO.PRNtype='G';HeadO.nObstype=str2double(s(6));fori=1:HeadO.nObstypeHeadO.Obs{i}={s(i*6+5:i*6+6)};endelseif(strfind(s,'SYS/#/OBSTYPES'))k=k+1;HeadO.PRNtype(k)=char(s(1));HeadO.nObstype(k)=str2double(s(5:6));if(HeadO.nObstype(k)>13)fori=1:13HeadO.Obs{k,i}=s(i*4+4:i*4+6);ends=fgets(fid);fori=1:HeadO.nObstype(k)-13HeadO.Obs{k,i+13}=s(i*4+4:i*4+6);endelsefori=1:HeadO.nObstype(k)HeadO.Obs{k,i}=s(i*4+4:i*4+6);endendelseif(strfind(s,'ENDOFHEADER'))break;endend下面為讀取數(shù)據(jù)程序,供參考
%ReadRINEXObservationData
nepoch=0;
nobs=0;
nlli=0;
rnx.epoch=[];
rnx.obs=[];
rnx.lli=[];
while1
iffeof(fid)==1,break,end
line=fgetl(fid);
ifisempty(deblank(line)),break,end
ifversion<3
%Version2RINEX
%getepochflagandnumberofsatellites
EpStr=line(1:26);
EpFlg=sscanf(line(27:29),'%d');
NumSat=sscanf(line(30:32),'%d');
ifEpFlg>1
%epochflags
%
0-o.k.
%
1-powerfailurebetweenpreviousandcurrentepoch
%eventflags(epochflagcontinued)
%
2-startmovingantenna
%
3-newsiteoccupation(endofkinematicdata);atleastarecord
%
withanewmarkernamemustfollow
%
4-newheaderinfofollows
%
5-externalevent(epochissignificant)
%
6-cyclesliprecordsfollow(sameformatasobservations)
%
%thenumberofrecordswhichfollowisgivenbyNumSat
fori=1:NumSat
line=fgetl(fid);
end
continue
end
%getepochtime
t=sscanf(EpStr,'%f',6)';
ift(1)<80
t(1)=2000+t(1);
else
t(1)=1900+t(1);
end
%keyboard
%-adaptionrvbree25112008---
%
date
=datenum(t(1),t(2),t(3));%Theserialdatenumbersfrom1-Jan-0000tothedayofobservation
%
gpsweek
=fix((date-datenum(1980,1,6))/7);
%
secsinweek
=(date-datenum(1980,1,6)-gpsweek*7)*24*3600+t(4)*3600+t(5)*60+t(6);
%
%
EpTime
=secsinweek;
%
GPSW
=gpsweek;
%EpTime=datenum(t(1),t(2),t(3),t(4),t(5),t(6));
%----endadaption-----------------------------------------
%EpTime=datenum(t(1),t(2),t(3),t(4),t(5),t(6));
%readoptionalclockerror***wedonotneedtheclockerror***
%ClkOffset=sscanf(line(69:end),'%f');
%getsatelliteid's
%-sprncontainsthe3lettercodesforthesatellites
%-prncontainstheuniversalsatelliteid's
sprn=line(33:min(end,68));
forj=2:ceil(NumSat/12)
line2=fgetl(fid);
sprn=[sprnline2(33:min(end,68))];
end
prn=rxsatnum(sprn);
%gettheobservations,lliandsnrforallsatellites
obs=zeros(NumSat,NumRxObs);
fori=1:NumSat
line=fgetl(fid);line=[lineblanks(80-length(line))];
forj=2:ceil(NumRxObs/5)
line2=fgetl(fid);
line=[lineline2blanks(80-length(line2))];
end
%gettheobservations
p=0;
forj=1:NumRxObs
obsi=sscanf(line(p+1:p+14),'%f');
%testformissingobservations
ifisempty(obsi)|obsi==0,obsi=NaN;,end
obs(i,j)=obsi;
p=p+16;
end
%getthelli(lossoflockindicator)forcarrierphasedata
forjj=1:length(icarrier)
j=icarrier(jj);
flg=double(line((j-1)*16+15))-48;
ifrem(flg,2)
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 吉林省長春市南關(guān)區(qū)2024-2025學(xué)年下學(xué)期八年級期末考試物理試卷(含解析)
- 2025至2030年中國物聯(lián)網(wǎng)生態(tài)圈行業(yè)市場深度分析及投資戰(zhàn)略咨詢報告
- 2025至2030年中國排油煙機行業(yè)市場深度研究及投資戰(zhàn)略咨詢報告
- 2025至2030年中國汽車膜行業(yè)市場調(diào)查研究及發(fā)展趨勢預(yù)測報告
- 2025至2030年中國辦公桌行業(yè)發(fā)展監(jiān)測及市場發(fā)展?jié)摿︻A(yù)測報告
- MySQL數(shù)據(jù)庫應(yīng)用實戰(zhàn)教程(慕課版)(第2版)實訓(xùn)指導(dǎo)-7-11 降序索引
- 實踐育人導(dǎo)向下初中數(shù)學(xué)單元應(yīng)用型作業(yè)設(shè)計研究
- “讀繪寫”:小學(xué)低年級語文閱讀教學(xué)的新模式
- 個人委托人事代理協(xié)議書
- oracle合同銷售銷售協(xié)議
- 導(dǎo)游服務(wù)行業(yè)相關(guān)項目經(jīng)營管理報告
- 【特變電工-我的大學(xué)讀后感2100字】
- CJJ94-2009 城鎮(zhèn)燃氣室內(nèi)工程施工與質(zhì)量驗收規(guī)范
- 患者登記與管理制度
- 代理商區(qū)域保護協(xié)議書范本
- 初中英語比較級和最高級專項練習(xí)題含答案
- 《護理綜合實訓(xùn)》 課程標(biāo)準(zhǔn)
- 校園超市經(jīng)營投標(biāo)方案(技術(shù)方案)
- 2024量子人工智能技術(shù)白皮書-量子信息網(wǎng)絡(luò)產(chǎn)業(yè)聯(lián)盟-2024.1
- 專利資產(chǎn)評估指導(dǎo)意見講解
- 3-4歲幼兒園小學(xué)美術(shù)PPT課件教案教程創(chuàng)意幼教手工《解不開的九連環(huán)》
評論
0/150
提交評論