XiaoGongWei / MG_APP

MG-APP (https://link.springer.com/article/10.1007/s10291-020-00976-1);
https://xiaogongwei10.blog.csdn.net/
95 stars 52 forks source link

[QReadAnt] How to use QReadAnt class! #4

Open XiaoGongWei opened 4 years ago

XiaoGongWei commented 4 years ago

Example

QString AntFileName = "D:\igs14_2035.atx", AntType = "ASH700936B_M SNOW";//1. Class initialization double ObsJD = 2455296.50;// start time (approximately) Julian day QReadAnt readAnt(AntFileName,AntType,ObsJD); // or QReadAnt readAnt(AntFileName); readAnt.setObsJD(AntType,ObsJD);

readAnt.getAllData();// 2. Read data files

double E = 0.7,A = 0.3;// altitude Angle and azimuth Angle double L1Offset = 0, L2Offset = 0;// save the correction of L1 and L2 line of sight (unit m) QVector FrqFlag;// FrqFlag.append("C1C"); FrqFlag.append("L1C"); FrqFlag.append("C1W"); FrqFlag.append("L1W"); readAnt.getRecvL12(E,A,&L1Offset,&L2Offset, FrqFlag);// 3. Function call method (unit m)

int Year = 2010,Month = 4,Day = 10,Hours = 0,Minuts = 0,PRN = 32; double Seconds = 0.0; double StaPos[3] = {9999,999,9999},RecPos[3] = {9999,9999,9999}; double L12OffSet[2] = {0}; QVector FrqFlag; FrqFlag.append("C1C"); FrqFlag.append("L1C"); FrqFlag.append("C1W"); FrqFlag.append("L1W"); readAnt.getSatOffSet(Year,Month,Day,Hours,Minuts,Seconds,PRN,StaPos,RecPos, L12OffSet, FrqFlag);