Index: branches/BNC_2.12/src/satObs.cpp
===================================================================
--- branches/BNC_2.12/src/satObs.cpp	(revision 8691)
+++ branches/BNC_2.12/src/satObs.cpp	(revision 8693)
@@ -18,5 +18,5 @@
 }
 
-// 
+//
 ////////////////////////////////////////////////////////////////////////////
 void t_clkCorr::writeEpoch(ostream* out, const QList<t_clkCorr>& corrList) {
@@ -43,5 +43,5 @@
 }
 
-// 
+//
 ////////////////////////////////////////////////////////////////////////////
 void t_clkCorr::readEpoch(const string& epoLine, istream& inStream, QList<t_clkCorr>& corrList) {
@@ -62,5 +62,5 @@
     getline(inStream, line);
     istringstream in(line.c_str());
-    
+
     in >> corr._prn >> corr._iod >> corr._dClk >> corr._dotDClk >> corr._dotDotDClk;
     if (corr._prn.system() == 'E') {
@@ -85,5 +85,5 @@
 }
 
-// 
+//
 ////////////////////////////////////////////////////////////////////////////
 void t_orbCorr::writeEpoch(ostream* out, const QList<t_orbCorr>& corrList) {
@@ -113,5 +113,5 @@
 }
 
-// 
+//
 ////////////////////////////////////////////////////////////////////////////
 void t_orbCorr::readEpoch(const string& epoLine, istream& inStream, QList<t_orbCorr>& corrList) {
@@ -132,7 +132,7 @@
     getline(inStream, line);
     istringstream in(line.c_str());
-    
+
     in >> corr._prn      >> corr._iod
-       >> corr._xr[0]    >> corr._xr[1]    >> corr._xr[2]   
+       >> corr._xr[0]    >> corr._xr[1]    >> corr._xr[2]
        >> corr._dotXr[0] >> corr._dotXr[1] >> corr._dotXr[2];
 
@@ -201,5 +201,5 @@
 }
 
-// 
+//
 ////////////////////////////////////////////////////////////////////////////
 void t_satCodeBias::writeEpoch(ostream* out, const QList<t_satCodeBias>& biasList) {
@@ -218,4 +218,7 @@
            << biasList.size() << ' ' << satCodeBias._staID << endl;
     }
+    if (!satCodeBias._bias.size()) {
+      continue;
+    }
     *out << satCodeBias._prn.toString() << "   " << setw(2) << satCodeBias._bias.size();
     for (unsigned ii = 0; ii < satCodeBias._bias.size(); ii++) {
@@ -229,5 +232,5 @@
 }
 
-// 
+//
 ////////////////////////////////////////////////////////////////////////////
 void t_satCodeBias::readEpoch(const string& epoLine, istream& inStream, QList<t_satCodeBias>& biasList) {
@@ -248,5 +251,5 @@
     getline(inStream, line);
     istringstream in(line.c_str());
-    
+
     int numBias;
     in >> satCodeBias._prn >> numBias;
@@ -264,5 +267,5 @@
 }
 
-// 
+//
 ////////////////////////////////////////////////////////////////////////////
 void t_satPhaseBias::writeEpoch(ostream* out, const QList<t_satPhaseBias>& biasList) {
@@ -299,6 +302,6 @@
   out->flush();
 }
-  
-// 
+
+//
 ////////////////////////////////////////////////////////////////////////////
 void t_satPhaseBias::readEpoch(const string& epoLine, istream& inStream, QList<t_satPhaseBias>& biasList) {
@@ -347,5 +350,5 @@
 }
 
-// 
+//
 ////////////////////////////////////////////////////////////////////////////
 void t_vTec::write(ostream* out, const t_vTec& vTec) {
@@ -363,6 +366,6 @@
          << setw(2)  << layer._C.Nrows()-1 << ' '
          << setw(2)  << layer._C.Ncols()-1 << ' '
-         << setw(10) << setprecision(1) << layer._height << endl  
-         << setw(10) << setprecision(4) << layer._C 
+         << setw(10) << setprecision(1) << layer._height << endl
+         << setw(10) << setprecision(4) << layer._C
          << setw(10) << setprecision(4) << layer._S;
   }
@@ -370,5 +373,5 @@
 }
 
-// 
+//
 ////////////////////////////////////////////////////////////////////////////
 void t_vTec::read(const string& epoLine, istream& inStream, t_vTec& vTec) {
@@ -414,7 +417,7 @@
 }
 
-// 
-////////////////////////////////////////////////////////////////////////////
-t_corrSSR::e_type t_corrSSR::readEpoLine(const string& line, bncTime& epoTime, 
+//
+////////////////////////////////////////////////////////////////////////////
+t_corrSSR::e_type t_corrSSR::readEpoLine(const string& line, bncTime& epoTime,
                                          unsigned int& updateInt, int& numEntries,
                                          string& staID) {
@@ -427,5 +430,5 @@
   double sec;
 
-  inLine >> epoChar >> typeString 
+  inLine >> epoChar >> typeString
          >> year >> month >> day >> hour >> min >> sec >> updateInt >> numEntries >> staID;
 
