



下載本文檔
版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領
文檔簡介
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)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 有機肥料在提升土壤微生物對作物生長調(diào)節(jié)物質(zhì)產(chǎn)生中的作用考核試卷
- 簡易呼吸器的使用 2
- 靜脈血液標本采集指南
- 遼寧輕工職業(yè)學院《大學生創(chuàng)新創(chuàng)業(yè)與就業(yè)指導》2023-2024學年第一學期期末試卷
- 洛陽職業(yè)技術學院《計算機網(wǎng)絡管理與安全》2023-2024學年第二學期期末試卷
- 江蘇省啟東市2024-2025學年高三下學期第二次模擬考試(期中)數(shù)學試題含解析
- 江蘇電子信息職業(yè)學院《大學生職業(yè)生涯規(guī)劃與就業(yè)指導(二)》2023-2024學年第二學期期末試卷
- 期貴州省畢節(jié)市重點中學2025屆初三第一次質(zhì)量檢測試題物理試題含解析
- 遼寧省丹東33中學2024-2025學年初三下學期模擬(二)測試英語試題含答案
- XX學校課程改革與校本課程開發(fā)實施匯報范文
- 山東省臍帶血合同協(xié)議
- 2025-2030全球及中國自主汽車芯片行業(yè)市場現(xiàn)狀供需分析及市場深度研究發(fā)展前景及規(guī)劃可行性分析研究報告
- 四川宜賓環(huán)球集團有限公司招聘筆試題庫2025
- 浙江國企招聘2025杭州蕭山環(huán)境投資建設集團有限公司招聘12人筆試參考題庫附帶答案詳解
- 湖北省武漢市六校聯(lián)考2024-2025學年高二下學期4月期中考試化學試題(含答案)
- 小學藏文基礎知識課件下載
- 美術合作協(xié)議書合同模板
- 大學英語四級考試2024年6月真題(第1套)閱讀
- 第十五講新時代與中華民族共同體建設2012- -中華民族共同體概論專家大講堂課件
- 廣東省深圳市名校聯(lián)考2023-2024學年高一下學期數(shù)學期中考試試題(含答案)
- 中國革命戰(zhàn)爭的戰(zhàn)略問題(全文)
評論
0/150
提交評論