Index: /trunk/ippToPsps/jython/fits.py
===================================================================
--- /trunk/ippToPsps/jython/fits.py	(revision 39660)
+++ /trunk/ippToPsps/jython/fits.py	(revision 39661)
@@ -5,4 +5,5 @@
 import shutil
 import hashlib
+import time 
 from subprocess import call, PIPE, Popen
 
@@ -20,5 +21,4 @@
     '''
     def __init__(self, logger, config, originalPath):
-
        # set class variables
        self.originalPath = originalPath
@@ -27,8 +27,26 @@
        self.header = None
 
+       numtries = 0
+       success = 0
+
+       while (numtries < 5 and success == 0):
+           numtries = numtries +1
+           self.logger.infoPair("Attempting to read file, attempt #",str(numtries))
+           if os.path.isfile(self.originalPath):
+               success = 1
+               self.logger.infoPair("success to read file", self.originalPath)
+           else:  #if it fails, wait 30 seconds before looping
+               time.sleep(30)
+
+       if success == 0:
+           self.logger.errorPair("Cannot read file", self.originalPath)
+           return           
+
        # does this file even exist?
-       if not os.path.isfile(self.originalPath): 
-           self.logger.errorPair("Cannot read file", self.originalPath)
-           return
+       #if not os.path.isfile(self.originalPath): 
+        #   self.logger.errorPair("Cannot read file", self.originalPath)
+         #  return
+
+
 
        # ok, we have a file, now copy it locally to save on NFS overhead
Index: /trunk/ippToPsps/jython/objectbatch.py
===================================================================
--- /trunk/ippToPsps/jython/objectbatch.py	(revision 39660)
+++ /trunk/ippToPsps/jython/objectbatch.py	(revision 39661)
@@ -318,5 +318,5 @@
         sqlLine.group("decMeanErr",      "DEC_ERR")
         sqlLine.group("posMeanChisq",    "CHISQ_POS")
-        sqlLine.group("nStackObjectRows", "'0'") # XXX I need to add / define this in dvopsps
+        sqlLine.group("nStackObjectRows", "'-999'") # XXX I need to add / define this in dvopsps # HAF set to -999 as required for pv3
         sqlLine.group("nStackDetections", "'0'")
         sqlLine.group("nDetections",      "'0'")
