Index: /trunk/BNC/bncgetthread.cpp
===================================================================
--- /trunk/BNC/bncgetthread.cpp	(revision 3547)
+++ /trunk/BNC/bncgetthread.cpp	(revision 3548)
@@ -78,7 +78,5 @@
   _rawFile      = rawFile;
   _format       = rawFile->format();
-  if (!_staID.isEmpty()) {
-    _staID        = rawFile->staID();
-  }
+  _staID        = rawFile->staID();
   _rawOutput    = false;
   _ntripVersion = "N";
Index: /trunk/BNC/bncmain.cpp
===================================================================
--- /trunk/BNC/bncmain.cpp	(revision 3547)
+++ /trunk/BNC/bncmain.cpp	(revision 3548)
@@ -152,5 +152,5 @@
     else {
       app.setMode(bncApp::batchPostProcessing);
-      bncRawFile*   rawFile   = new bncRawFile(rawFileName, "unset", 
+      bncRawFile*   rawFile   = new bncRawFile(rawFileName, "", 
                                                bncRawFile::input);
       bncGetThread* getThread = new bncGetThread(rawFile);
Index: /trunk/BNC/bncrawfile.cpp
===================================================================
--- /trunk/BNC/bncrawfile.cpp	(revision 3547)
+++ /trunk/BNC/bncrawfile.cpp	(revision 3548)
@@ -55,4 +55,5 @@
   _fileName   = fileName; expandEnvVar(_fileName);
   _format     = "unset";
+  _staID      = staID;
   _inpFile    = 0;
   _outFile    = 0;
@@ -72,5 +73,4 @@
   // ---------------------
   else {    
-    _staID = staID;
     QDate currDate = currentDateAndTimeGPS().date();
     _currentFileName = _fileName + "_" + currDate.toString("yyMMdd");
