Changeset 9864 in ntrip for trunk/BNC/scripts
- Timestamp:
- Oct 31, 2022, 9:49:03 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/scripts/compareSP3Plot.pl
r9836 r9864 1 1 #!/usr/bin/env perl 2 2 # ======================================================================== 3 # c mbPlot.pl3 # compareSP3Plot.pl 4 4 # ======================================================================== 5 5 # … … 25 25 use File::Basename; 26 26 use Date::Manip; 27 use Time::Piece 1.30; 27 28 use List::MoreUtils qw( minmax ); 28 29 use experimental 'smartmatch'; 29 30 use Gps_Date; # Bernese31 30 32 31 # ----------------------------------------------------------------------------- … … 61 60 # generate data sets for gnuplot 62 61 # ----------------------------------------------------------------------------- 63 my $old_epochSec = 0; 64 my $epochSec = 0; 65 my $epochDiff = 0; 62 my $epoSec = 0; 66 63 # for pdf generation 67 64 my ($png, $page, $headline, $headline_text); … … 73 70 my (%COMPARISON); 74 71 my (@array); 75 my ($sys, $sat, $epo, $ mjd, $radial, $along, $out, $drange, $clk, $clkRed);72 my ($sys, $sat, $epo, $radial, $along, $out, $drange, $clk, $clkRed); 76 73 # ----------------------------------------------------------------------------- 77 74 # create pdf for plot results … … 89 86 if ( $_ !~ /^!/) { #print "$_\n"; 90 87 @array = split(/\s+/, $_); 91 $ mjd = $array[0];92 $epo = gps_date("-mjd","$mjd","-o %Y-%m-%d_%H:%M:%S");93 $sys = substr $array[1], 0, 1;88 $epo = $array[0]; #print "$epo\n"; 89 $epo =~s/(\.\d*)//; #print "$epo\n"; 90 $sys = substr $array[1], 0, 1; 94 91 $sat = $array[1];#print "$sat\n"; 95 92 $radial = $array[2];#print "$radial\n"; … … 213 210 if (("ALL" ~~ @plotTypes ) || ("CLK" ~~ @plotTypes)) { 214 211 print "Plot CLOCK and CLOCK REDUCED BY RADIAL COMPONENT ...\n"; 215 my $yrange = 10.0;212 my $yrange = 0.6; 216 213 $page = $pdf->page(); $page->mediabox('A4'); 217 214 $headline = sprintf("Clock residuals and reduced clock residuals(%s)", $inputFilename); … … 229 226 my $chart_c = Chart::Gnuplot->new( 230 227 output => $pngName_c, terminal => 'png',title => "Clock only", 231 ylabel => "Clock Residuals [m]", #yrange => ["-$yrange", "$yrange"],228 ylabel => "Clock Residuals [m]", yrange => ["-$yrange", "$yrange"], 232 229 xlabel => "Time [h]", timeaxis => 'x', xtics => {labelfmt => '%H:%M', rotate => '-270',}, 233 230 legend => { position => "outside right",}, … … 235 232 my $chart_r = Chart::Gnuplot->new( 236 233 output => $pngName_r, terminal => 'png',title => "Clock minus radial component", 237 ylabel => "Clock Residuals [m]", #yrange => ["-$yrange", "$yrange"],234 ylabel => "Clock Residuals [m]", yrange => ["-$yrange", "$yrange"], 238 235 xlabel => "Time [h]", timeaxis => 'x', xtics => {labelfmt => '%H:%M', rotate => '-270',}, 239 236 legend => { position => "outside right",}, … … 286 283 $pdf->end(); 287 284 system("rm *png"); 288 #system(" okular$inputDir/$pdf_name&");285 #system("evince $inputDir/$pdf_name&"); 289 286 } 290 287 291 288 292 #foreach my $t(@array) {print"$t \n ";}293 #print Dumper \%AMB;294 289 ######################################### 295 290 sub help { … … 306 301 DESCRIPTION: 307 302 308 Script to p plot BNC's PPP logfiles303 Script to plot BNC's SP3 Comparison Results 309 304 310 305 EOI_HILFE
Note:
See TracChangeset
for help on using the changeset viewer.