MCPcopy Create free account
hub / github.com/SGL-UT/gnsstk / Process

Function Process

core/tests/GNSSCore/Tropdump.cpp:593–635  ·  view source on GitHub ↗

------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

591//------------------------------------------------------------------------------------
592//------------------------------------------------------------------------------------
593int Process(void)
594{
595try {
596 GlobalData& GD=GlobalData::Instance();
597
598 LOG(INFO) << setw(8) << GD.pTrop->name() << " Trop model"
599 << fixed << setprecision(4)
600 << " has zenith delays: dry = " << setw(6) << GD.pTrop->dry_zenith_delay()
601 << " wet = " << setw(6) << GD.pTrop->wet_zenith_delay() << " meters";
602
603 LOG(INFO) << "drytotal = drymap*(dry zenith delay), wettotal = wetmap*(wet zenith delay)";
604
605 LOG(INFO) << setw(8) << "Name"
606 << " " << setw(5) << "elev"
607 << " " << setw(11) << "drymap"
608 //<< " " << setw(8) << "drydelay"
609 << " " << setw(8) << "drytotal"
610 << " " << setw(8) << "wetmap"
611 //<< " " << setw(8) << "wetdelay"
612 << " " << setw(8) << "wettotal"
613 << " " << setw(8) << "total(m)";
614
615 double elev(GD.elevmin);
616 while(elev <= GD.elevmax) {
617 LOG(INFO) << setw(8) << GD.pTrop->name() << fixed << setprecision(2)
618 << " " << setw(5) << elev << setprecision(4)
619 << " " << setw(11) << GD.pTrop->dry_mapping_function(elev)
620 //<< " " << setw(8) << GD.pTrop->dry_zenith_delay()
621 << " " << setw(8)
622 << GD.pTrop->dry_zenith_delay()*GD.pTrop->dry_mapping_function(elev)
623 << " " << setw(8) << GD.pTrop->wet_mapping_function(elev)
624 //<< " " << setw(8) << GD.pTrop->wet_zenith_delay()
625 << " " << setw(8)
626 << GD.pTrop->wet_zenith_delay()*GD.pTrop->wet_mapping_function(elev)
627 << " " << setw(8) << GD.pTrop->correction(elev);
628
629 elev += GD.delev;
630 }
631
632 return 0;
633}
634catch(Exception& e) { GNSSTK_RETHROW(e); }
635} // end Process()
636
637//------------------------------------------------------------------------------------
638//------------------------------------------------------------------------------------

Callers 1

mainFunction · 0.85

Calls 6

nameMethod · 0.45
dry_zenith_delayMethod · 0.45
wet_zenith_delayMethod · 0.45
dry_mapping_functionMethod · 0.45
wet_mapping_functionMethod · 0.45
correctionMethod · 0.45

Tested by

no test coverage detected