Changeset 6427 in ntrip for trunk/BNC/src/orbComp
- Timestamp:
- Dec 24, 2014, 5:09:33 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/orbComp/sp3Comp.cpp
r6426 r6427 49 49 using namespace std; 50 50 51 bool excludeSat(const t_prn& prn) { 52 if (prn.system() == 'R') { 53 return true; 54 } 55 else { 56 return false; 57 } 58 } 59 51 60 // Constructor 52 61 //////////////////////////////////////////////////////////////////////////// … … 311 320 set<t_prn> clkSats; 312 321 for (set<t_prn>::const_iterator it = clkSatsAll.begin(); it != clkSatsAll.end(); it++) { 313 if (it->system() == system ) {322 if (it->system() == system && !excludeSat(*it)) { 314 323 clkSats.insert(*it); 315 324 } … … 331 340 for (map<t_prn, ColumnVector>::const_iterator it = dr.begin(); it != dr.end(); it++) { 332 341 const t_prn& prn = it->first; 333 const ColumnVector& rao = it->second; 334 out << setprecision(6) << epo->_tt.mjddec() << ' ' << prn.toString() << ' ' 335 << setw(7) << setprecision(4) << rao[0] << ' ' 336 << setw(7) << setprecision(4) << rao[1] << ' ' 337 << setw(7) << setprecision(4) << rao[2] << " "; 338 stat[prn.toString()]._rao += SP(rao, rao); // Schur product 339 stat[prn.toString()]._nr += 1; 340 stat[all]._rao += SP(rao, rao); 341 stat[all]._nr += 1; 342 if (dc.find(prn) != dc.end()) { 343 double clkRes = dc.find(prn)->second; 344 double clkResRed = clkRes - it->second[0]; // clock minus radial component 345 out << setw(7) << setprecision(4) << clkRes << ' ' 346 << setw(7) << setprecision(4) << clkResRed; 347 stat[prn.toString()]._dc += clkRes * clkRes; 348 stat[prn.toString()]._dcRed += clkResRed * clkResRed; 349 stat[prn.toString()]._nc += 1; 350 stat[all]._dc += clkRes * clkRes; 351 stat[all]._dcRed += clkResRed * clkResRed; 352 stat[all]._nc += 1; 353 } 354 else { 355 out << " . . "; 356 } 357 out << " " << setw(2) << int(prn) << endl; 342 if (!excludeSat(prn)) { 343 const ColumnVector& rao = it->second; 344 out << setprecision(6) << epo->_tt.mjddec() << ' ' << prn.toString() << ' ' 345 << setw(7) << setprecision(4) << rao[0] << ' ' 346 << setw(7) << setprecision(4) << rao[1] << ' ' 347 << setw(7) << setprecision(4) << rao[2] << " "; 348 stat[prn.toString()]._rao += SP(rao, rao); // Schur product 349 stat[prn.toString()]._nr += 1; 350 stat[all]._rao += SP(rao, rao); 351 stat[all]._nr += 1; 352 if (dc.find(prn) != dc.end()) { 353 double clkRes = dc.find(prn)->second; 354 double clkResRed = clkRes - it->second[0]; // clock minus radial component 355 out << setw(7) << setprecision(4) << clkRes << ' ' 356 << setw(7) << setprecision(4) << clkResRed; 357 stat[prn.toString()]._dc += clkRes * clkRes; 358 stat[prn.toString()]._dcRed += clkResRed * clkResRed; 359 stat[prn.toString()]._nc += 1; 360 stat[all]._dc += clkRes * clkRes; 361 stat[all]._dcRed += clkResRed * clkResRed; 362 stat[all]._nc += 1; 363 } 364 else { 365 out << " . . "; 366 } 367 out << " " << setw(2) << int(prn) << endl; 368 } 358 369 } 359 370 delete epo;
Note:
See TracChangeset
for help on using the changeset viewer.