Index: /trunk/FACT++/src/fitsCompressor.cc
===================================================================
--- /trunk/FACT++/src/fitsCompressor.cc	(revision 16844)
+++ /trunk/FACT++/src/fitsCompressor.cc	(revision 16845)
@@ -1116,4 +1116,5 @@
             {
                 heapSize += _catalog[i][j].first;
+//		cout << "heapSize: " << heapSize << endl;
                 //set the catalog offsets to their actual values
                 _catalog[i][j].second = compressedOffset;
@@ -1133,4 +1134,5 @@
     }
     writeHeader(true);
+
     ostringstream str;
     str << _checksum.val();
@@ -1730,4 +1732,5 @@
             continue;
         outFile.setHeaderKey(i->second.fitsString);
+//        cout << i->first << endl;
     }
 
@@ -1756,6 +1759,4 @@
             drsCalib16[i] = (int16_t)(drsCalibFloat[i]*4096.f/2000.f);
 
-        //assign it to the ouput file
-        outFile.setDrsCalib(drsCalib16);
 
         //get the start cells offsets
@@ -1773,6 +1774,10 @@
         if (startCellOffset == -1)
         {
-            cout << "Could not find StartCellData in input file " << fileNameIn << ". Aborting."<< endl;
-            return -1;
+            cout << "WARNING: Could not find StartCellData in input file " << fileNameIn << ". Doing it uncalibrated"<< endl;
+        }
+        else
+        {
+            //assign it to the ouput file
+            outFile.setDrsCalib(drsCalib16);
         }
     }
@@ -1858,5 +1863,6 @@
     }
 
-    delete[] drsCalib16;
+    if (drsCalib16 != NULL)
+        delete[] drsCalib16;
 
     if (displayText) cout << "Done." << endl;
@@ -1875,5 +1881,6 @@
     //get a compressed reader
 //TEMP try to copy the file too
-//    string copyName("/scratch/copyFile.fz");
+//    string copyName("/gpfs/scratch/fact/etienne/copyFile.fz");
+//    string copyName(fileNameOut+".copy");
     string copyName("");
     factfits verifyFile(fileNameOut, copyName, tableName, false);
@@ -2037,5 +2044,5 @@
     else
     {
-        if (displayText) cout << "Ok" << endl;
+        if (true) cout << "Ok" << endl;
     }
 
