Changeset 10383 in ntrip for trunk/BNC/scripts
- Timestamp:
- Mar 11, 2024, 12:52:02 PM (9 months ago)
- Location:
- trunk/BNC/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/scripts/Bnc.pm
r10259 r10383 493 493 my $epochSec = 0; 494 494 my $epochDiff = 0; 495 my ( @hlp, @N, @E, @U, %SATNUM, @TRP s, @CLKs, @OFF_GLOs, @OFF_GALs, @OFF_BDSs);496 my ( @EPOCH s, @EPOCHs_CLK, @EPOCHs_OFF_GLO, @EPOCHs_OFF_GAL, @EPOCHs_OFF_BDS );495 my ( @hlp, @N, @E, @U, %SATNUM, @TRP, @CLK, @OFF_GLO, @OFF_GAL, @OFF_BDS); 496 my ( @EPOCH, @EPOCH_CLK, @EPOCH_OFF_GLO, @EPOCH_OFF_GAL, @EPOCH_OFF_BDS ); 497 497 my ( %AMB, %RES, %ELE, %ION, %BIA ); 498 498 my ( $station, $lki, $sys, $sat, $amb ); … … 530 530 531 531 if ( $ln =~ /\bdN\b/ ) { 532 push ( @EPOCH s, $epochSec ); # besser $epo ?532 push ( @EPOCH, $epochSec ); # besser $epo ? 533 533 $old_epochSec = $epochSec; 534 534 535 #2015-08-27_13:59:50.000 DIEP1 X = 3842152.9054 +- 0.0242 Y = 563402.0331 +- 0.0176 Z = 5042888.5182 +- 0.0319 dN = 0.0130 +- 0.0193 dE = -0.0032 +- 0.0178 dU = -0.0248 +- 0.0349535 #2015-08-27_13:59:50.000 DIEP1 X = 3842152.9054 +- 0.0242 Y = 563402.0331 +- 0.0176 Z = 5042888.5182 +- 0.0319 dN = 0.0130 +- 0.0193 dE = -0.0032 +- 0.0178 dU = -0.0248 +- 0.0349 536 536 $station = $hlp[1]; 537 537 … … 585 585 } 586 586 elsif ( $ln =~ /\bREC_CLK\b/ ) { 587 push ( @EPOCH s_CLK, $epochSec );588 push ( @CLK s, $hlp[2] + $hlp[3] );587 push ( @EPOCH_CLK, $epochSec ); 588 push ( @CLK, $hlp[2] + $hlp[3] ); 589 589 } 590 590 elsif ( $ln =~ /\bOFF_GLO\b/ ) { # 2015-08... OFF_GLO 52.6806 -3.8042 +- 9.0077 591 push ( @EPOCH s_OFF_GLO, $epochSec );592 push ( @OFF_GLO s, $hlp[2] + $hlp[3] );591 push ( @EPOCH_OFF_GLO, $epochSec ); 592 push ( @OFF_GLO, $hlp[2] + $hlp[3] ); 593 593 } 594 594 elsif ( $ln =~ /\bOFF_GAL\b/ ) { # 2015-08... OFF_GAL 52.6806 -3.8042 +- 9.0077 595 push ( @EPOCH s_OFF_GAL, $epochSec );596 push ( @OFF_GAL s, $hlp[2] + $hlp[3] );595 push ( @EPOCH_OFF_GAL, $epochSec ); 596 push ( @OFF_GAL, $hlp[2] + $hlp[3] ); 597 597 } 598 598 elsif ( $ln =~ /\bOFF_BDS\b/ ) { # 2015-08... OFF_BDS 52.6806 -3.8042 +- 9.0077 599 push ( @EPOCH s_OFF_BDS, $epochSec );600 push ( @OFF_BDS s, $hlp[2] + $hlp[3] );599 push ( @EPOCH_OFF_BDS, $epochSec ); 600 push ( @OFF_BDS, $hlp[2] + $hlp[3] ); 601 601 } 602 602 elsif ( $ln =~ /\bSATNUM\b/ ) { # 2015-09... SATNUM G 8 … … 604 604 } 605 605 elsif ( $ln =~ /\bTRP\b/ ) { # 2015-08... TRP 2.3803 +0.1009 +- 0.0324 606 push ( @TRP s, $hlp[2] + $hlp[3] );606 push ( @TRP, $hlp[2] + $hlp[3] ); 607 607 } 608 608 } # ----- next line ----- … … 611 611 close $fh; 612 612 613 my $nof_epochs = scalar @EPOCH s;613 my $nof_epochs = scalar @EPOCH; 614 614 DEBUG( "$station: epochs:$nof_epochs, North displac.: " 615 615 . scalar @N … … 618 618 . ", Up displac.: " 619 619 . scalar @U 620 . ", TRP s:"621 . scalar @TRP s620 . ", TRP:" 621 . scalar @TRP 622 622 ); 623 if ( $nof_epochs != scalar @N ) 624 if ( $nof_epochs != scalar @TRP s ) { LOGDIE "number of epochs and TRPsnot equal\n" }625 if ( @CLK s && scalar @EPOCHs_CLK != scalar @CLKs ) { LOGDIE "number of epochs and CLKsnot equal\n" }626 if ( @OFF_GLO s && scalar @EPOCHs_OFF_GLO != scalar @OFF_GLOs ) { LOGDIE "number of epochs and OFF_GLOsnot equal\n" }627 if ( @OFF_GAL s && scalar @EPOCHs_OFF_GAL != scalar @OFF_GALs ) { LOGDIE "number of epochs and OFF_GALsnot equal\n" }628 if ( @OFF_BDS s && scalar @EPOCHs_OFF_BDS != scalar @OFF_BDSs ) { LOGDIE "number of epochs and OFF_BDSsnot equal\n" }623 if ( $nof_epochs != scalar @N ) { LOGDIE "number of epochs and residuals not equal\n" } 624 if ( $nof_epochs != scalar @TRP ) { LOGDIE "number of epochs and TRP not equal\n" } 625 if ( @CLK && scalar @EPOCH_CLK != scalar @CLK ) { LOGDIE "number of epochs and CLK not equal\n" } 626 if ( @OFF_GLO && scalar @EPOCH_OFF_GLO != scalar @OFF_GLO ) { LOGDIE "number of epochs and OFF_GLO not equal\n" } 627 if ( @OFF_GAL && scalar @EPOCH_OFF_GAL != scalar @OFF_GAL ) { LOGDIE "number of epochs and OFF_GAL not equal\n" } 628 if ( @OFF_BDS && scalar @EPOCH_OFF_BDS != scalar @OFF_BDS ) { LOGDIE "number of epochs and OFF_BDS not equal\n" } 629 629 630 630 if ( !$station ) { WARN "could not grep stationname from file: $file\n" } 631 631 632 632 my %data = ( 633 EPOCH S => \@EPOCHs,634 N 635 E 636 U 637 SATNUM 638 TRP s => \@TRPs,639 CLK s => \@CLKs,640 OFF_GLO s => \@OFF_GLOs,641 OFF_GAL s => \@OFF_GALs,642 OFF_BDS s => \@OFF_BDSs,643 RES 644 AMB 645 ELE 646 ION 647 BIA 633 EPOCH => \@EPOCH, 634 N => \@N, 635 E => \@E, 636 U => \@U, 637 SATNUM => \%SATNUM, 638 TRP => \@TRP, 639 CLK => \@CLK, 640 OFF_GLO => \@OFF_GLO, 641 OFF_GAL => \@OFF_GAL, 642 OFF_BDS => \@OFF_BDS, 643 RES => \%RES, 644 AMB => \%AMB, 645 ELE => \%ELE, 646 ION => \%ION, 647 BIA => \%BIA, 648 648 ); 649 649 -
trunk/BNC/scripts/pppPlot.pl
r10259 r10383 106 106 # ----------------------------------------------------------------------------- 107 107 my ( $station, $file ) = Bnc::parsePPPLogfile( $file, $sampling ); 108 my $EPOCH S = $file->{'EPOCHS'};109 my $EPOCH S_OFF_GLO = $file->{'EPOCHS_OFF_GLO'};110 my $EPOCH S_OFF_GAL = $file->{'EPOCHS_OFF_GAL'};111 my $EPOCH S_OFF_BDS = $file->{'EPOCHS_OFF_BDS'};112 my $EPOCH S_CLK = $file->{'EPOCHS_CLK'};108 my $EPOCH = $file->{'EPOCH'}; 109 my $EPOCH_OFF_GLO = $file->{'EPOCH_OFF_GLO'}; 110 my $EPOCH_OFF_GAL = $file->{'EPOCH_OFF_GAL'}; 111 my $EPOCH_OFF_BDS = $file->{'EPOCH_OFF_BDS'}; 112 my $EPOCH_CLK = $file->{'EPOCH_CLK'}; 113 113 my %AMB = %{ $file->{'AMB'} }; 114 114 my %RES = %{ $file->{'RES'} }; … … 128 128 $u = pdl( $file->{'U'} ); 129 129 ( $mean, $prms, $median, $min, $max, $adev, $rms_u ) = stats($u); 130 $trp = pdl( $file->{'TRP s'} );130 $trp = pdl( $file->{'TRP'} ); 131 131 ( $mean, $prms, $median, $min, $max, $adev, $rms_trp ) = stats($trp); 132 132 $str_rms_n = sprintf ( " %.2f ", $rms_n ); … … 158 158 159 159 my $dataN = Chart::Gnuplot::DataSet->new( 160 xdata => $EPOCH S,160 xdata => $EPOCH, 161 161 ydata => $file->{'N'}, 162 162 title => "Displacements N, RMS + -$str_rms_n m", … … 165 165 ); 166 166 my $dataE = Chart::Gnuplot::DataSet->new( 167 xdata => $EPOCH S,167 xdata => $EPOCH, 168 168 ydata => $file->{'E'}, 169 169 title => "Displacements E, RMS + -$str_rms_e m", … … 172 172 ); 173 173 my $dataU = Chart::Gnuplot::DataSet->new( 174 xdata => $EPOCH S,174 xdata => $EPOCH, 175 175 ydata => $file->{'U'}, 176 176 title => "Displacements U, RMS + -$str_rms_u m", … … 187 187 ######### TRP ##################### 188 188 if ( grep ( $_ eq "ALL", @plotTypes ) ) { 189 DEBUG "Plot TRP s";189 DEBUG "Plot TRP"; 190 190 my $pngName = sprintf ( "%s_TRP.png", $station ); 191 191 my $chartTRP = newChart($station); … … 194 194 195 195 my $dataTRP = Chart::Gnuplot::DataSet->new( 196 xdata => $EPOCH S,197 ydata => $file->{'TRP s'},196 xdata => $EPOCH, 197 ydata => $file->{'TRP'}, 198 198 title => "Tropospheric Delay, RMS + -$str_rms_trp m", 199 199 timefmt => '%s', … … 213 213 214 214 ######### CLK ##################### 215 if ( scalar @{ $file->{'CLK s'} } < 1 ) {216 DEBUG "No CLK sfound";215 if ( scalar @{ $file->{'CLK'} } < 1 ) { 216 DEBUG "No CLK found"; 217 217 } 218 218 else { 219 DEBUG "Plot CLK s";219 DEBUG "Plot CLK"; 220 220 $pngName = sprintf ( "%s_CLK.png", $station ); 221 221 my $chartCLK = newChart($station); … … 224 224 225 225 $dataset = Chart::Gnuplot::DataSet->new( 226 xdata => $EPOCH S,227 ydata => $file->{'CLK s'},226 xdata => $EPOCH, 227 ydata => $file->{'CLK'}, 228 228 title => "Receiver clock", 229 229 timefmt => '%s', … … 246 246 ######### OFF_GLO ##################### 247 247 if ( grep ( $_ eq "ALL", @plotTypes ) ) { 248 if ( scalar @{ $file->{'OFF_GLO s'} } < 1 ) {249 DEBUG "No OFF_GLO sfound";248 if ( scalar @{ $file->{'OFF_GLO'} } < 1 ) { 249 DEBUG "No OFF_GLO found"; 250 250 } 251 251 else { 252 DEBUG "Plot OFF_GLO s";252 DEBUG "Plot OFF_GLO"; 253 253 my $pngName = sprintf ( "%s_OFF_R.png", $station ); 254 254 my $chartOFF_GLO = newChart($station); … … 257 257 258 258 $dataset = Chart::Gnuplot::DataSet->new( 259 xdata => $EPOCH S_OFF_GLO,260 ydata => $file->{'OFF_GLO s'},259 xdata => $EPOCH_OFF_GLO, 260 ydata => $file->{'OFF_GLO'}, 261 261 title => "Receiver Offset GLONASS", 262 262 timefmt => '%s', … … 279 279 ######### OFF_GAL ##################### 280 280 if ( grep ( $_ eq "ALL", @plotTypes ) ) { 281 if ( scalar @{ $file->{'OFF_GAL s'} } < 1 ) {282 DEBUG "No OFF_GAL sfound";281 if ( scalar @{ $file->{'OFF_GAL'} } < 1 ) { 282 DEBUG "No OFF_GAL found"; 283 283 } 284 284 else { 285 DEBUG "Plot OFF_GAL s";285 DEBUG "Plot OFF_GAL"; 286 286 my $pngName = sprintf ( "%s_OFF_E.png", $station ); 287 287 my $chartOFF_GAL = newChart($station); … … 290 290 291 291 $dataset = Chart::Gnuplot::DataSet->new( 292 xdata => $EPOCH S_OFF_GAL,293 ydata => $file->{'OFF_GAL s'},292 xdata => $EPOCH_OFF_GAL, 293 ydata => $file->{'OFF_GAL'}, 294 294 title => "Receiver Offset Galileo", 295 295 timefmt => '%s', … … 312 312 ######### OFF_BDS ##################### 313 313 if ( grep ( $_ eq "ALL", @plotTypes ) ) { 314 if ( scalar @{ $file->{'OFF_BDS s'} } < 1 ) {315 DEBUG "No OFF_BDS sfound";314 if ( scalar @{ $file->{'OFF_BDS'} } < 1 ) { 315 DEBUG "No OFF_BDS found"; 316 316 } 317 317 else { 318 DEBUG "Plot OFF_BDS s";318 DEBUG "Plot OFF_BDS"; 319 319 my $pngName = sprintf ( "%s_OFF_C.png", $station ); 320 320 my $chartOFF_BDS = newChart($station); … … 323 323 324 324 $dataset = Chart::Gnuplot::DataSet->new( 325 xdata => $EPOCH S_OFF_BDS,326 ydata => $file->{'OFF_BDS s'},325 xdata => $EPOCH_OFF_BDS, 326 ydata => $file->{'OFF_BDS'}, 327 327 title => "Receiver Offset Beidou", 328 328 timefmt => '%s',
Note:
See TracChangeset
for help on using the changeset viewer.