Changeset 10388 in ntrip for trunk/BNC/scripts/pppPlot.pl


Ignore:
Timestamp:
Mar 12, 2024, 3:10:17 PM (7 weeks ago)
Author:
stuerze
Message:

changes regarding PPP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/scripts/pppPlot.pl

    r10385 r10388  
    107107    my ( $station, $file ) = Bnc::parsePPPLogfile( $file, $sampling );
    108108    my $EPOCH       = $file->{'EPOCH'};
     109    my $EPOCH_OFF_GPS = $file->{'EPOCH_OFF_GPS'};
    109110    my $EPOCH_OFF_GLO = $file->{'EPOCH_OFF_GLO'};
    110111    my $EPOCH_OFF_GAL = $file->{'EPOCH_OFF_GAL'};
     
    243244        }
    244245
     246        ######### OFF_GPS #####################
     247        if ( grep ( $_ eq "ALL", @plotTypes ) ) {
     248            if ( scalar @{ $file->{'OFF_GPS'} } < 1 ) {
     249                DEBUG "No OFF_GPS found";
     250            }
     251            else {
     252                DEBUG "Plot OFF_GPS";
     253                my $pngName  = sprintf ( "%s_OFF_G.png", $station );
     254                my $chartOFF_GPS = newChart($station);
     255                $chartOFF_GPS->set( output => $pngName );
     256                $chartOFF_GPS->set( ylabel => "Offset GPS [m]" );
     257
     258                $dataset = Chart::Gnuplot::DataSet->new(
     259                                                         xdata   => $EPOCH_OFF_GPS,
     260                                                         ydata   => $file->{'OFF_GPS'},
     261                                                         title   => "Receiver Offset GPS",
     262                                                         timefmt => '%s',
     263                                                         style   => "linespoints",
     264                );
     265                $chartOFF_GPS->plot2d($dataset);    #system ("display $pngName&");
     266                $y = $y - $dy;
     267
     268                if ( $y < 30 / mm ) {
     269                    $page = $pdf->page();
     270                    $page->mediabox('A4');
     271                    $y = $y0;
     272                }
     273                $png = $page->gfx();
     274                LOGDIE("could not find image file: $!\n") unless -e $pngName;
     275                $png->image( $pdf->image_png($pngName), $x, $y, $width, $height );
     276            }
     277        }
     278
    245279
    246280        ######### OFF_GLO #####################
     
    257291
    258292                $dataset = Chart::Gnuplot::DataSet->new(
    259                                                          #xdata   => $EPOCH_OFF_GLO,
    260                                                          xdata   => $EPOCH,
     293                                                         xdata   => $EPOCH_OFF_GLO,
    261294                                                         ydata   => $file->{'OFF_GLO'},
    262295                                                         title   => "Receiver Offset GLONASS",
     
    291324
    292325                $dataset = Chart::Gnuplot::DataSet->new(
    293                                                          #xdata   => $EPOCH_OFF_GAL,
    294                                                          xdata   => $EPOCH,
     326                                                         xdata   => $EPOCH_OFF_GAL,
    295327                                                         ydata   => $file->{'OFF_GAL'},
    296328                                                         title   => "Receiver Offset Galileo",
     
    325357
    326358                $dataset = Chart::Gnuplot::DataSet->new(
    327                                                          #xdata   => $EPOCH_OFF_BDS,
    328                                                          xdata   => $EPOCH,
     359                                                         xdata   => $EPOCH_OFF_BDS,
    329360                                                         ydata   => $file->{'OFF_BDS'},
    330361                                                         title   => "Receiver Offset Beidou",
Note: See TracChangeset for help on using the changeset viewer.