Index: trunk/BNC/scripts/Bnc.pm
===================================================================
--- trunk/BNC/scripts/Bnc.pm	(revision 10010)
+++ trunk/BNC/scripts/Bnc.pm	(revision 10034)
@@ -627,4 +627,5 @@
     if ( @OFF_BDSs && scalar @EPOCHs_OFF_BDS != scalar @OFF_BDSs ) { LOGDIE "number of epochs and OFF_BDSs not equal\n" }
 
+
     my %data = (
                  EPOCHS    => \@EPOCHs,
@@ -634,5 +635,5 @@
                  SATNUM    => \%SATNUM,
                  TRPs      => \@TRPs,
-                 CLKs      => \@CLKs,
+                 CLKs    => \@CLKs,
                  OFF_GLOs  => \@OFF_GLOs,
                  OFF_GALs  => \@OFF_GALs,
Index: trunk/BNC/scripts/cmbPlot.pl
===================================================================
--- trunk/BNC/scripts/cmbPlot.pl	(revision 10010)
+++ trunk/BNC/scripts/cmbPlot.pl	(revision 10034)
@@ -431,5 +431,5 @@
 $pdf->save();
 $pdf->end();
-system ("rm $inputDir/*png");
+#system ("rm $inputDir/*png");
 system("evince $inputDir/$pdf_name&");
 
Index: trunk/BNC/scripts/pppPlot.pl
===================================================================
--- trunk/BNC/scripts/pppPlot.pl	(revision 10010)
+++ trunk/BNC/scripts/pppPlot.pl	(revision 10034)
@@ -228,5 +228,5 @@
                                                      title   => "Receiver clock",
                                                      timefmt => '%s',
-                                                     style   => "points",
+                                                     style   => "linespoints",
             );
             $chartCLK->plot2d($dataset);
@@ -261,5 +261,5 @@
                                                          title   => "Receiver Offset GLONASS",
                                                          timefmt => '%s',
-                                                         style   => "points",
+                                                         style   => "linespoints",
                 );
                 $chartOFF_GLO->plot2d($dataset);    #system ("display $pngName&");
@@ -294,5 +294,5 @@
                                                          title   => "Receiver Offset Galileo",
                                                          timefmt => '%s',
-                                                         style   => "points",
+                                                         style   => "linespoints",
                 );
                 $chartOFF_GAL->plot2d($dataset);    #system ("display $pngName&");
@@ -327,5 +327,5 @@
                                                          title   => "Receiver Offset Beidou",
                                                          timefmt => '%s',
-                                                         style   => "points",
+                                                         style   => "linespoints",
                 );
                 $chartOFF_BDS->plot2d($dataset);    #system ("display $pngName&");
@@ -624,8 +624,8 @@
 
                 if ( $key_resType =~ /^c/ ) {
-                    $chartRES->set( yrange => [ " -10.0 ", " 10.0 " ] );
+                    $chartRES->set( yrange => [ " -6.0 ", " 6.0 " ] );
                 }
                 elsif ( $key_resType =~ /^l/ ) {
-                    $chartRES->set( yrange => [ " -0.10 ", " 0.10 " ] );
+                    $chartRES->set( yrange => [ " -0.06 ", " 0.06 " ] );
                 }
 
@@ -666,5 +666,5 @@
     system ("rm *.png");
     if (Common::amInteractiv ) {
-#   system ("evince $inputDir/$pdf_name");
+   system ("evince $inputDir/$pdf_name");
     }
 }    # -----  next logfile  -----
Index: trunk/BNC/scripts/run_valgrind
===================================================================
--- trunk/BNC/scripts/run_valgrind	(revision 10034)
+++ trunk/BNC/scripts/run_valgrind	(revision 10034)
@@ -0,0 +1,10 @@
+#/bin/bash
+if [ "$1" == "start" ]
+then
+  valgrind --num-callers=50 --leak-check=full ./bnc --file bnc_cmb.raw_110221 --staID "FFMJ1" --conf POST.conf --format RTCM_3 2> valgrind.txt &
+elif [ "$1" == "stop" ]
+then
+  kill -SIGINT `ps | grep memcheck | cut -b 1-6`
+else
+  echo "usage: run_valgrind start|stop"
+fi
Index: trunk/BNC/scripts/test_tcpip_client.pl
===================================================================
--- trunk/BNC/scripts/test_tcpip_client.pl	(revision 10034)
+++ trunk/BNC/scripts/test_tcpip_client.pl	(revision 10034)
@@ -0,0 +1,33 @@
+#!/usr/bin/perl -w
+
+use strict;
+use IO::Socket;
+
+# List of Parameters
+# ------------------
+my($port) = @ARGV;
+
+if (!defined($port)) {
+  die "Usage: test_tcpip_client.pl portNumber\n";
+}
+
+# Local Variables
+# ---------------
+my($serverHostName) = "localhost";
+my $server;
+
+my $retries = 10;
+while ($retries--) {
+  $server = IO::Socket::INET->new( Proto    => "tcp",
+                                   PeerAddr => $serverHostName,
+                                   PeerPort => $port);
+  last if ($server);
+}
+die "Cannot connect to $serverHostName on $port: $!" unless ($server);
+
+my $buffer;
+while (defined ($buffer = <$server>)) {
+  print $buffer;
+}
+
+
Index: trunk/BNC/scripts/tstClock.pl
===================================================================
--- trunk/BNC/scripts/tstClock.pl	(revision 10034)
+++ trunk/BNC/scripts/tstClock.pl	(revision 10034)
@@ -0,0 +1,34 @@
+#!/usr/bin/perl -w
+
+use strict;
+
+# List of Parameters
+# ------------------
+my($fileName) = @ARGV;
+
+if (!defined($fileName)) {
+  die "Usage: tstClock.pl fileName\n";
+}
+
+open(inFile,  "<$fileName") || die "Cannot open file $fileName";
+
+my %firstClk;
+
+while ( defined(my $line=<inFile>) ) {
+  if ($line =~ /Full Clock/) {
+    my @p = split(/\s+/, $line);
+    my $dateStr = $p[0];
+    my $timeStr = $p[1];
+    my $prn     = $p[4];
+    my $iod     = $p[5];
+    my $clk     = $p[6];
+    if (!defined($firstClk{$prn})) {
+      $firstClk{$prn} = $clk;
+    }
+    printf("%s %s %s  %14.4f\n", 
+           $dateStr, $timeStr, $prn, $clk - $firstClk{$prn});
+  }
+}
+
+close(inFile);
+
