您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 质量控制/管理 > 基于Matlab读取标准RINEX格式的GPS星历数据
GPS(GlobalPositioningSystem),、、、,、。,RINEX(TheReceiverIndependentExchangeFormat)。,RINEX,VisualBasicVi-sualC++,,,,GPS,[1]。MatlabRINEX。11.1,,:、、、,:1);2)(/),;3)。1.2RINEXRINEXASCII,[3]。:、()、、。:1);2);3)。RINEX:1):GPS;2):GPS;3):;4)GLONASS:GLONASS;5)GEO:GPS(GEO);6):。RINEX,8+3,ssssdddf.yyt[2]。1。MatlabRINEXGPS1,2(1.,710025;2.96275471003):RINEX。RINEX,MatlabRINEX,。GPS,。:(GPS);RINEX;;Matlab;:TN961:A1674-6236(2010)08-0023-03ReadingstandardRINEXformatforGPSephemerisdatabasedonMatlabZHANGNi1,WANGBiao-biao2(1.NorthInstituteofInformationEngineeringXi’anTechnologicalUniversity,Xi’an710025,China;2.Unit96275ofPLA,Luoyang471003,China)Abstract:ThestandardRINEXformatfilesisusedinGPSephemerisdataprocessingcommonlyininternational.TheRINEXstandardDataformatwasintroduced,andamethodusingthematrixadvantagesofMATLABtoreadRINEXformatfileswasproposedandrealizedinthispaper.TheapplicationofthismethodmakesthereadingofGPSephemerisdataeasier,andtheusingofthisdatainthereaserchofengineeringpracticeismoreconvenient.Keywords:GlobalPositioningSystem(GPS);RINEX;ephemerisdata;Matlab;matrix:2010-03-15:201003068:(1981—),,,,。:。1RINEXFig.1NamedRuleofRINEXformatfileElectronicDesignEngineering18Vol.188No.820108Aug.2010-23-《》20108RINEX、、。RINEX2:。,80。RINEX,,“ENDOFHEADER”。61~80,1~60。RINEX,,[4]。,,。,RINEX。1.3,,。,。,。RINEX、、、、、、。、。2RINEXRINEX、。MatlabRINEXMatlab。,(“ENDOFHEADER”),,。RINEX,“ENDOFHEADER”。2.1,“ENDOFHEADER”,,,Matlab,(38,、),,。:1)struct[5],:navdata=struct(‘prn’,NaN,‘year’,NaN,‘month’,NaN,‘day’,NaN,‘hour’,NaN,‘minute’,NaN,‘second’,NaN,‘af0’,NaN,‘af1’,NaN,‘af2’,NaN,‘aode’,NaN,‘crs’,NaN,‘dn’,NaN,‘Manomaly’,NaN,‘cuc’,NaN,‘ecc’,NaN,‘cus’,NaN,‘art’,NaN,‘toe’,NaN,‘cic’,NaN,‘om0’,NaN,‘cis’,NaN,‘i0’,NaN,‘crc’,NaN,‘w’,NaN,‘omd’,NaN,‘idt’,NaN,‘cflg12’,NaN,‘weekno’,NaN,‘pflg12’,NaN,‘svaccuracy’,NaN,‘svhealth’,NaN,‘tgd’,NaN,‘aodc’,NaN,‘transmit’,NaN,‘spare1’,NaN,‘spare2’,NaN,‘spare3’,NaN);,‘prn’,‘year’,....,NaN,38,RINEX,。2),[6]findstr“ENDOFHEADER”,。:fid=fopen(ephemerisfile,);head_lines=0;while1head_lines=head_lines+1;line=fgetl(fid);answer=findstr(line,'ENDOFHEADER');if~isempty(answer)breakendend3),,,,:noeph=-1;while1noeph=noeph+1;line=fgetl(fid);ifline==-1breakendendnoeph=noeph/8;%pseuorandomcodefrewind(fid);forl=1:head_linesline=fgetl(fid);endfori=1:noephline=fgetl(fid);%firstlinenavdata(i).prn=str2num(line(1:2));y=str2num(line(3:6));ify79navdata(i).year=y+1900;elsenavdata(i).year=y+2000;endnavdata(i).month=str2num(line(7:9));-24-navdata(i).day=str2num(line(10:12));navdata(i).hour=str2num(line(13:15));navdata(i).minute=str2num(line(16:18));navdata(i).second=str2num(line(19:22));navdata(i).af0=str2num(line(23:41));navdata(i).af1=str2num(line(42:60));navdata(i).af2=str2num(line(61:79));line=fgetl(fid);%secondlinenavdata(i).aode=str2num(line(4:22));navdata(i).crs=str2num(line(23:41));navdata(i).dn=str2num(line(42:60));navdata(i).Manomaly=str2num(line(61:79))。4)status=fclose(fid)。2.2,:nav-data(1)。2,1。Matlab,,:FN=fieldnames(navdata);size=size(FN);navdata.year;nav_data=cell(c,noeph+1);forn=1:sizefori=2:noeph+1%navcell=char(navdata.year)nav_data{n,1}=char(FN(n));nav_data{n,i}=navdata(i-1).(char(FN(n)));endend3。MatlabRINEX,,,,,Matlab,,,,。3MatlabRINEX,,,,,Matlab,。:[1],,.GPSRINEX[J].,2009(6):41-43.CHENDong-yin,LIULi-long,CHENLei.Anobject-orientedmethodofreadingRINEXformatdatinGPSnavigationtech-nology[J].GeomaticsandSpatialInformationTechnology,2009(6):41-43.[2]GurtnerW.RINEX:Thereceiverindependentexchangefor-mat:Version2.10[M]Canada:AstronomicalInstituteUniver-sityofBerne,2002.[3],.GPS(OEM)RINEX[J].,2009(10):18-21.MENGGuang-xiang,GUOBiao-ming.ThetransformationfromGPSreceiver(OEM)binarydatatoRINEXfile[J].En-gineeringofSurveyyingandMapping,2009(10):18-21.[4],.GPS-OEMRINEX[J].,2006(4):26-27.CHENGGui-zhen,DAIJian-jun.ThetransformationfromGPS-OEMorignaldatatoRINEXFormat[J].Surveyingtech-nicalequipment,2006(4):26-27.[5].Matlab6.5[M].:,2004.[6]ChapmanStephenJ.MatlabProgrammingforengineers[M].:,2003.21Fig.2ReadingresultofparameterofsatlieteNO.13Fig.3Readingresultofephemerisdata,MatlabRINEXGPS-25-
本文标题:基于Matlab读取标准RINEX格式的GPS星历数据
链接地址:https://www.777doc.com/doc-4907318 .html