Ignore:
Timestamp:
Nov 23, 2020, 11:29:18 PM (4 years ago)
Author:
stuerze
Message:

minor changes to prevent erroneous epehemeris data sets from usage in combination

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.12/src/combination/bnccomb.cpp

    r9267 r9269  
    429429      continue;
    430430    }
    431     else if (ephLast->checkState() != t_eph::ok) {
     431    else if (ephLast->checkState() == t_eph::bad ||
     432             ephLast->checkState() == t_eph::outdated ||
     433             ephLast->checkState() == t_eph::unhealthy) {
    432434      emit newMessage("bncComb: eph not ok for "  + prn.mid(0,3).toLatin1(), true);
    433435      delete newCorr;
     
    438440        newCorr->_eph = ephLast;
    439441      }
    440       else if (ephPrev && ephPrev->IOD() == newCorr->_iod) {
     442      else if (ephPrev && ephPrev->checkState() == t_eph::ok &&
     443               ephPrev->IOD() == newCorr->_iod) {
    441444        newCorr->_eph = ephPrev;
    442445        switchToLastEph(ephLast, newCorr);
     
    722725      ColumnVector xc(6);
    723726      ColumnVector vv(3);
    724       eph->getCrd(_resTime, xc, vv, false);
    725 
     727      if (eph->getCrd(_resTime, xc, vv, false) != success) {
     728        continue;
     729      }
    726730      out << _resTime.datestr().c_str() << " "
    727731          << _resTime.timestr().c_str() << " ";
     
    774778    corr->_eph->setClkCorr(dynamic_cast<const t_clkCorr*>(&clkCorr));
    775779    corr->_eph->setOrbCorr(dynamic_cast<const t_orbCorr*>(&orbCorr));
    776     corr->_eph->getCrd(_resTime, xc, vv, true);
     780    if (corr->_eph->getCrd(_resTime, xc, vv, true) != success) {
     781      delete corr;
     782      continue;
     783    }
    777784
    778785    // Correction Phase Center --> CoM
Note: See TracChangeset for help on using the changeset viewer.