Changeset 9538 in ntrip for trunk/BNC/src/PPP/pppFilter.cpp


Ignore:
Timestamp:
Nov 9, 2021, 3:37:15 PM (2 years ago)
Author:
stuerze
Message:

update regarding PPP: pseudo obs tropo completely removed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP/pppFilter.cpp

    r9537 r9538  
    212212      usedLCs -= 1;  // GIM not used
    213213  }
    214   int hlpLCs = 0;
    215   if (OPT->_pseudoObsTropo) {
    216     hlpLCs = -1;
    217   }
    218214  // 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
    223217  if (OPT->_pseudoObsIono && pseudoObsIonoAvailable) {
    224218    maxObs -= 1; // pseudo obs iono with respect to refSat
     
    257251          if (tLC == t_lc::Tz0) {continue;}
    258252          ++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 Tropo
    272     // ================
    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;
    283253          usedObs.push_back(obs);
    284254          usedTypes.push_back(tLC);
     
    756726        usedLCs -= 1;  // GIM not used
    757727    }
    758     int hlpLCs = 0;
    759     if (OPT->_pseudoObsTropo) {
    760       hlpLCs = -1;
    761     }
    762728    // 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
    768731    if (OPT->_pseudoObsIono && peseudoObsIono) {
    769732      maxObs -= 1; // pseudo obs iono with respect to refSat
     
    791754      }
    792755    }
    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
    812757    if (!iObs) {
    813758      continue;
     
    888833      realUsedLCs -= 1;
    889834    }
    890     if (OPT->_pseudoObsTropo) {
    891       realUsedLCs -= 1;
    892     }
     835
    893836    trafoObs += satNum * realUsedLCs;
    894837
    895     if (OPT->_pseudoObsTropo && _datumTrafo->firstSystem(sys)) {
    896       trafoObs += 1;
    897     }
    898838    if (OPT->_pseudoObsIono && pseudoObsIono) {
    899839      trafoObs -= 1; // pseudo obs iono with respect to refSat
Note: See TracChangeset for help on using the changeset viewer.