Changeset 9538 in ntrip for trunk/BNC/src/PPP
- Timestamp:
- Nov 9, 2021, 3:37:15 PM (3 years ago)
- Location:
- trunk/BNC/src/PPP
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppClient.cpp
r9537 r9538 232 232 } 233 233 } 234 if (_opt->_pseudoObsTropo) { 235 vector<t_pppSatObs*>::iterator it = obsVector.begin(); 236 while (it != obsVector.end()) { 237 t_pppSatObs* satObs = *it; 238 if (satObs->isReference()) { 239 satObs->setPseudoObsTropo(); 240 } 241 it++; 242 } 243 } 234 244 235 /* 245 236 vector<t_pppSatObs*>::iterator it = obsVector.begin(); -
trunk/BNC/src/PPP/pppFilter.cpp
r9537 r9538 212 212 usedLCs -= 1; // GIM not used 213 213 } 214 int hlpLCs = 0;215 if (OPT->_pseudoObsTropo) {216 hlpLCs = -1;217 }218 214 // max Obs 219 unsigned maxObs = obsVector.size() * (usedLCs + hlpLCs); 220 if (OPT->_pseudoObsTropo && _datumTrafo->firstSystem(sys)) { 221 maxObs += 1; 222 } 215 unsigned maxObs = obsVector.size() * usedLCs; 216 223 217 if (OPT->_pseudoObsIono && pseudoObsIonoAvailable) { 224 218 maxObs -= 1; // pseudo obs iono with respect to refSat … … 257 251 if (tLC == t_lc::Tz0) {continue;} 258 252 ++iObs; 259 usedObs.push_back(obs);260 usedTypes.push_back(tLC);261 for (unsigned iPar = 0; iPar < nPar; iPar++) {262 const t_pppParam* par = params[iPar];263 AA[iObs][iPar] = par->partial(_epoTime, obs, tLC, refPrn);264 }265 ll[iObs] = obs->obsValue(tLC) - obs->cmpValue(tLC) - DotProduct(_x0, AA.Row(iObs+1));266 PP[iObs] = 1.0 / (obs->sigma(tLC) * obs->sigma(tLC));267 }268 }269 }270 271 // pseudo Obs Tropo272 // ================273 if (OPT->_pseudoObsTropo && _datumTrafo->firstSystem(sys)) {274 bool _pseudoObsTropoConsidered = false;275 for (unsigned ii = 0; ii < obsVector.size(); ii++) {276 if (_pseudoObsTropoConsidered) {break;}277 t_pppSatObs* obs = obsVector[ii];278 for (unsigned jj = 0; jj < usedLCs; jj++) {279 const t_lc::type tLC = LCs[jj];280 if (tLC != t_lc::Tz0) {continue;}281 ++iObs;282 _pseudoObsTropoConsidered = true;283 253 usedObs.push_back(obs); 284 254 usedTypes.push_back(tLC); … … 756 726 usedLCs -= 1; // GIM not used 757 727 } 758 int hlpLCs = 0;759 if (OPT->_pseudoObsTropo) {760 hlpLCs = -1;761 }762 728 // max Obs 763 unsigned maxObs = obsVector.size() * (usedLCs + hlpLCs); 764 765 if (OPT->_pseudoObsTropo && _datumTrafo->firstSystem(sys)) { 766 maxObs += 1; 767 } 729 unsigned maxObs = obsVector.size() * usedLCs; 730 768 731 if (OPT->_pseudoObsIono && peseudoObsIono) { 769 732 maxObs -= 1; // pseudo obs iono with respect to refSat … … 791 754 } 792 755 } 793 // pseudo Obs Tropo 794 // ================ 795 if (OPT->_pseudoObsTropo && _datumTrafo->firstSystem(sys)) { 796 bool pseudoObsTropoConsidered = false; 797 for (unsigned ii = 0; ii < obsVector.size(); ii++) { 798 if (pseudoObsTropoConsidered) {break;} 799 t_pppSatObs* obs = obsVector[ii]; 800 for (unsigned jj = 0; jj < usedLCs; jj++) { 801 const t_lc::type tLC = LCs[jj]; 802 if (tLC != t_lc::Tz0) {continue;} 803 ++iObs; 804 pseudoObsTropoConsidered = true; 805 for (unsigned iPar = 0; iPar < nPar; iPar++) { 806 const t_pppParam* par = params[iPar]; 807 AA[iObs][iPar] = par->partial(_epoTime, obs, tLC, refPrn); 808 } 809 } 810 } 811 } 756 812 757 if (!iObs) { 813 758 continue; … … 888 833 realUsedLCs -= 1; 889 834 } 890 if (OPT->_pseudoObsTropo) { 891 realUsedLCs -= 1; 892 } 835 893 836 trafoObs += satNum * realUsedLCs; 894 837 895 if (OPT->_pseudoObsTropo && _datumTrafo->firstSystem(sys)) {896 trafoObs += 1;897 }898 838 if (OPT->_pseudoObsIono && pseudoObsIono) { 899 839 trafoObs -= 1; // pseudo obs iono with respect to refSat
Note:
See TracChangeset
for help on using the changeset viewer.