Changeset 10388 in ntrip for trunk/BNC/scripts/pppPlot.pl
- Timestamp:
- Mar 12, 2024, 3:10:17 PM (7 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/scripts/pppPlot.pl
r10385 r10388 107 107 my ( $station, $file ) = Bnc::parsePPPLogfile( $file, $sampling ); 108 108 my $EPOCH = $file->{'EPOCH'}; 109 my $EPOCH_OFF_GPS = $file->{'EPOCH_OFF_GPS'}; 109 110 my $EPOCH_OFF_GLO = $file->{'EPOCH_OFF_GLO'}; 110 111 my $EPOCH_OFF_GAL = $file->{'EPOCH_OFF_GAL'}; … … 243 244 } 244 245 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 245 279 246 280 ######### OFF_GLO ##################### … … 257 291 258 292 $dataset = Chart::Gnuplot::DataSet->new( 259 #xdata => $EPOCH_OFF_GLO, 260 xdata => $EPOCH, 293 xdata => $EPOCH_OFF_GLO, 261 294 ydata => $file->{'OFF_GLO'}, 262 295 title => "Receiver Offset GLONASS", … … 291 324 292 325 $dataset = Chart::Gnuplot::DataSet->new( 293 #xdata => $EPOCH_OFF_GAL, 294 xdata => $EPOCH, 326 xdata => $EPOCH_OFF_GAL, 295 327 ydata => $file->{'OFF_GAL'}, 296 328 title => "Receiver Offset Galileo", … … 325 357 326 358 $dataset = Chart::Gnuplot::DataSet->new( 327 #xdata => $EPOCH_OFF_BDS, 328 xdata => $EPOCH, 359 xdata => $EPOCH_OFF_BDS, 329 360 ydata => $file->{'OFF_BDS'}, 330 361 title => "Receiver Offset Beidou",
Note:
See TracChangeset
for help on using the changeset viewer.