Changeset 10589 in ntrip
- Timestamp:
- Dec 12, 2024, 12:15:30 PM (6 hours ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/scripts/pppPlot.pl
r10585 r10589 147 147 $headline_text->text($headline); 148 148 $y = $y0; 149 my $pngName = sprintf ( "%s_NEU.png", $station );149 my $pngNameNEU = sprintf ( "%s_NEU.png", $station ); 150 150 my $chartNEU = newChart($station); 151 $chartNEU->set( output => $pngName 151 $chartNEU->set( output => $pngNameNEU); 152 152 $chartNEU->set( ylabel => "Displacements [m]", yrange => [ " -0.9 ", " 0.9 " ] ); 153 153 … … 179 179 180 180 $png = $page->gfx(); 181 LOGDIE("could not find image file: $!\n") unless -e $pngName ;182 $png->image( $pdf->image_png($pngName ), $x, $y, $width, $height ); #print "y= : $y \n"181 LOGDIE("could not find image file: $!\n") unless -e $pngNameNEU; 182 $png->image( $pdf->image_png($pngNameNEU), $x, $y, $width, $height ); #print "y= : $y \n" 183 183 184 184 ######### TRP ##################### 185 185 if ( grep ( $_ eq "ALL", @plotTypes ) ) { 186 186 DEBUG "Plot TRP"; 187 my $pngName = sprintf ( "%s_TRP.png", $station );187 my $pngNameTRP = sprintf ( "%s_TRP.png", $station ); 188 188 my $chartTRP = newChart($station); 189 $chartTRP->set( output => $pngName 189 $chartTRP->set( output => $pngNameTRP); 190 190 $chartTRP->set( ylabel => "Tropospheric Delay [m]", yrange => [ " 1.0 ", " 3.0 " ] ); 191 191 … … 206 206 } 207 207 $png = $page->gfx(); 208 LOGDIE("could not find image file: $!\n") unless -e $pngName ;209 $png->image( $pdf->image_png($pngName ), $x, $y, $width, $height );208 LOGDIE("could not find image file: $!\n") unless -e $pngNameTRP; 209 $png->image( $pdf->image_png($pngNameTRP), $x, $y, $width, $height ); 210 210 211 211 ######### RECCLK ##################### … … 223 223 $chartRECCLK->set( legend => { position => "outside right" } ); 224 224 my @datasets = (); # init datasets 225 my $pngName = sprintf ( "%s_RECCLK.png", $station);226 $chartRECCLK->set( output => $pngName 225 my $pngNameRECCLK = sprintf ( "%s_RECCLK.png", $station); 226 $chartRECCLK->set( output => $pngNameRECCLK); 227 227 $chartRECCLK->set( ylabel => "Receiver Clocks [m]" ); 228 228 # SYSTEM … … 250 250 } 251 251 $png = $page->gfx(); 252 die ("could not find image file: $!") unless -e $pngName ;253 $png->image( $pdf->image_png($pngName ), $x, $y, $width, $height );252 die ("could not find image file: $!") unless -e $pngNameRECCLK; 253 $png->image( $pdf->image_png($pngNameRECCLK), $x, $y, $width, $height ); 254 254 255 255 ######### ELE ##################### … … 272 272 # print "$key_sys \n";# print Dumper $ELE{$key_sys}; 273 273 my @datasets = (); # init datasets 274 my $pngName = sprintf ( "%s_ELE_%s.png", $station, $key_sys );275 $chartELE->set( output => $pngName 274 my $pngNameELE = sprintf ( "%s_ELE_%s.png", $station, $key_sys ); 275 $chartELE->set( output => $pngNameELE); 276 276 $chartELE->set( ylabel => "Elevation [°]", yrange => [ " 0.0 ", " 90.0 " ] ); 277 277 … … 301 301 } 302 302 $png = $page->gfx(); 303 die ("could not find image file: $!") unless -e $pngName ;304 $png->image( $pdf->image_png($pngName ), $x, $y, $width, $height );303 die ("could not find image file: $!") unless -e $pngNameELE; 304 $png->image( $pdf->image_png($pngNameELE), $x, $y, $width, $height ); 305 305 } 306 306 … … 322 322 #print "$key_sys \n"; print Dumper $AMB{$key_ambType}; 323 323 my ( @datasets_amb, @datasets_epo ); # init datasets 324 my $pngName _amb= sprintf ( "%s_AMB_%s_%s.png", $station, $key_ambType, $key_sys );325 my $pngName _epo= sprintf ( "%s_EPO_%s_%s.png", $station, $key_ambType, $key_sys );324 my $pngNameAMB = sprintf ( "%s_AMB_%s_%s.png", $station, $key_ambType, $key_sys ); 325 my $pngNameEPO = sprintf ( "%s_EPO_%s_%s.png", $station, $key_ambType, $key_sys ); 326 326 my $chartAMB = Chart::Gnuplot->new( 327 output => $pngName _amb,327 output => $pngNameAMB, 328 328 terminal => 'png', 329 329 title => $station, … … 338 338 ); 339 339 my $chartEPO = Chart::Gnuplot->new( 340 output => $pngName _epo,340 output => $pngNameEPO, 341 341 terminal => 'png', 342 342 title => $station, … … 391 391 } 392 392 $png = $page->gfx(); 393 LOGDIE("could not find image file: $!\n") unless -e $pngName _amb;394 $png->image( $pdf->image_png($pngName _amb), $x, $y, $width, $height );393 LOGDIE("could not find image file: $!\n") unless -e $pngNameAMB; 394 $png->image( $pdf->image_png($pngNameAMB), $x, $y, $width, $height ); 395 395 396 396 # number of epochs used for ambiguity … … 405 405 } 406 406 $png = $page->gfx(); 407 LOGDIE("could not find image file $pngName _epo: $!\n") unless -e $pngName_epo;408 $png->image( $pdf->image_png($pngName _epo), $x, $y, $width, $height );407 LOGDIE("could not find image file $pngNameEPO: $!\n") unless -e $pngNameEPO; 408 $png->image( $pdf->image_png($pngNameEPO), $x, $y, $width, $height ); 409 409 } 410 410 } … … 429 429 foreach my $ksys ( sort keys %ION ) { #print "$key_sys \n"; #print Dumper $ION{$key_sys}; 430 430 my @datasets; # init datasets 431 my $pngName = sprintf ( "%s_ION_%s.png", $station, $ksys );432 $chartION->set( output => $pngName 431 my $pngNameION = sprintf ( "%s_ION_%s.png", $station, $ksys ); 432 $chartION->set( output => $pngNameION); 433 433 434 434 # SATELLITE … … 454 454 } 455 455 $png = $page->gfx(); 456 die ("could not find image file: $!") unless -e $pngName ;457 $png->image( $pdf->image_png($pngName ), $x, $y, $width, $height );456 die ("could not find image file: $!") unless -e $pngNameION; 457 $png->image( $pdf->image_png($pngNameION), $x, $y, $width, $height ); 458 458 } 459 459 } … … 480 480 #print "key_sys: $key_sys \n"; #print Dumper $BIA{$key_biasType}; 481 481 my @datasets; # init datasets 482 my $pngName = sprintf ( "%s_BIAS_%s_%s.png", $station, $key_biasType, $key_sys );483 $chartBIAS->set( output => $pngName 482 my $pngNameBIA = sprintf ( "%s_BIAS_%s_%s.png", $station, $key_biasType, $key_sys ); 483 $chartBIAS->set( output => $pngNameBIA); 484 484 $chartBIAS->set( ylabel => "Receiver Bias $key_biasType [m]" ); 485 485 … … 502 502 } 503 503 $png = $page->gfx(); 504 die ("could not find image file: $!") unless -e $pngName ;505 $png->image( $pdf->image_png($pngName ), $x, $y, $width, $height );504 die ("could not find image file: $!") unless -e $pngNameBIA; 505 $png->image( $pdf->image_png($pngNameBIA), $x, $y, $width, $height ); 506 506 } 507 507 } … … 529 529 #print "key_sys: $key_sys \n"; #print Dumper $RES{$key_resType}; 530 530 my @datasets; 531 my $pngName = sprintf ( "%s_RES_%s_%s.png", $station, $key_resType, $key_sys );532 $chartRES->set( output => $pngName 531 my $pngNameRES = sprintf ( "%s_RES_%s_%s.png", $station, $key_resType, $key_sys ); 532 $chartRES->set( output => $pngNameRES); 533 533 $chartRES->set( ylabel => "Residuals $key_resType [m]" ); 534 534 … … 565 565 } 566 566 $png = $page->gfx(); 567 LOGDIE("could not find image file: $!\n") unless -e $pngName ;568 $png->image( $pdf->image_png($pngName ), $x, $y, $width, $height );567 LOGDIE("could not find image file: $!\n") unless -e $pngNameRES; 568 $png->image( $pdf->image_png($pngNameRES), $x, $y, $width, $height ); 569 569 } 570 570 }
Note:
See TracChangeset
for help on using the changeset viewer.