Changeset 10259 in ntrip for trunk/BNC/scripts/Bnc.pm
- Timestamp:
- Nov 27, 2023, 3:58:48 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/scripts/Bnc.pm
r10233 r10259 493 493 my $epochSec = 0; 494 494 my $epochDiff = 0; 495 my ( @hlp, @N, @E, @U, %SATNUM, @TRPs, @ G_CLKs, @R_CLKs, @E_CLKs, @C_CLKs);496 my ( @EPOCHs, @EPOCHs_ G_CLK, @EPOCHs_R_CLK, @EPOCHs_E_CLK, @EPOCHs_C_CLK);495 my ( @hlp, @N, @E, @U, %SATNUM, @TRPs, @CLKs, @OFF_GLOs, @OFF_GALs, @OFF_BDSs); 496 my ( @EPOCHs, @EPOCHs_CLK, @EPOCHs_OFF_GLO, @EPOCHs_OFF_GAL, @EPOCHs_OFF_BDS ); 497 497 my ( %AMB, %RES, %ELE, %ION, %BIA ); 498 498 my ( $station, $lki, $sys, $sat, $amb ); … … 584 584 push @{ $BIA{$lki}{$sys}{DATA} }, $hlp[4] + $hlp[5]; 585 585 } 586 elsif ( $ln =~ /\bREC_CLK G\b/ ){587 push ( @EPOCHs_ G_CLK, $epochSec);588 push ( @G_CLKs, $hlp[3] + $hlp[4] );589 } 590 elsif ( $ln =~ /\b REC_CLK R\b/ ){591 push ( @EPOCHs_ R_CLK, $epochSec);592 push ( @R_CLKs, $hlp[3] + $hlp[4] );593 } 594 elsif ( $ln =~ /\b REC_CLK E\b/ ){595 push ( @EPOCHs_ E_CLK, $epochSec);596 push ( @E_CLKs, $hlp[3] + $hlp[4] );597 } 598 elsif ( $ln =~ /\b REC_CLK C\b/ ){599 push ( @EPOCHs_ C_CLK, $epochSec);600 push ( @C_CLKs, $hlp[3] + $hlp[4] );586 elsif ( $ln =~ /\bREC_CLK\b/ ) { 587 push ( @EPOCHs_CLK, $epochSec ); 588 push ( @CLKs, $hlp[2] + $hlp[3] ); 589 } 590 elsif ( $ln =~ /\bOFF_GLO\b/ ) { # 2015-08... OFF_GLO 52.6806 -3.8042 +- 9.0077 591 push ( @EPOCHs_OFF_GLO, $epochSec ); 592 push ( @OFF_GLOs, $hlp[2] + $hlp[3] ); 593 } 594 elsif ( $ln =~ /\bOFF_GAL\b/ ) { # 2015-08... OFF_GAL 52.6806 -3.8042 +- 9.0077 595 push ( @EPOCHs_OFF_GAL, $epochSec ); 596 push ( @OFF_GALs, $hlp[2] + $hlp[3] ); 597 } 598 elsif ( $ln =~ /\bOFF_BDS\b/ ) { # 2015-08... OFF_BDS 52.6806 -3.8042 +- 9.0077 599 push ( @EPOCHs_OFF_BDS, $epochSec ); 600 push ( @OFF_BDSs, $hlp[2] + $hlp[3] ); 601 601 } 602 602 elsif ( $ln =~ /\bSATNUM\b/ ) { # 2015-09... SATNUM G 8 … … 620 620 . ", TRPs:" 621 621 . scalar @TRPs 622 . ", GPS CLKs:"623 . scalar @G_CLKs624 . ", GLO CLKs:"625 . scalar @R_CLKs626 . ", GAL CLKs:"627 . scalar @E_CLKs628 . ", BDS CLKs:"629 . scalar @E_CLKs630 622 ); 631 if ( $nof_epochs != scalar @N ) { LOGDIE "number of epochs and residuals not equal\n" } 632 if ( $nof_epochs != scalar @TRPs ) { LOGDIE "number of epochs and TRPs not equal\n" } 633 if ( @G_CLKs && scalar @EPOCHs_G_CLK != scalar @G_CLKs ) {LOGDIE "number of epochs and G_CLKs not equal\n";} 634 if ( @R_CLKs && scalar @EPOCHs_R_CLK != scalar @R_CLKs ) {LOGDIE "number of epochs and R_CLKs not equal\n";} 635 if ( @E_CLKs && scalar @EPOCHs_E_CLK != scalar @E_CLKs ) {LOGDIE "number of epochs and E_CLKs not equal\n";} 636 if ( @C_CLKs && scalar @EPOCHs_C_CLK != scalar @C_CLKs ) {LOGDIE "number of epochs and C_CLKs not equal\n";} 623 if ( $nof_epochs != scalar @N ) { LOGDIE "number of epochs and residuals not equal\n" } 624 if ( $nof_epochs != scalar @TRPs ) { LOGDIE "number of epochs and TRPs not equal\n" } 625 if ( @CLKs && scalar @EPOCHs_CLK != scalar @CLKs ) { LOGDIE "number of epochs and CLKs not equal\n" } 626 if ( @OFF_GLOs && scalar @EPOCHs_OFF_GLO != scalar @OFF_GLOs ) { LOGDIE "number of epochs and OFF_GLOs not equal\n" } 627 if ( @OFF_GALs && scalar @EPOCHs_OFF_GAL != scalar @OFF_GALs ) { LOGDIE "number of epochs and OFF_GALs not equal\n" } 628 if ( @OFF_BDSs && scalar @EPOCHs_OFF_BDS != scalar @OFF_BDSs ) { LOGDIE "number of epochs and OFF_BDSs not equal\n" } 629 637 630 if ( !$station ) { WARN "could not grep stationname from file: $file\n" } 638 631 … … 644 637 SATNUM => \%SATNUM, 645 638 TRPs => \@TRPs, 646 G_CLKs => \@G_CLKs,647 R_CLKs => \@R_CLKs,648 E_CLKs => \@E_CLKs,649 C_CLKs => \@C_CLKs,639 CLKs => \@CLKs, 640 OFF_GLOs => \@OFF_GLOs, 641 OFF_GALs => \@OFF_GALs, 642 OFF_BDSs => \@OFF_BDSs, 650 643 RES => \%RES, 651 644 AMB => \%AMB,
Note:
See TracChangeset
for help on using the changeset viewer.