Index: trunk/ippToPsps/jython/batch.py
===================================================================
--- trunk/ippToPsps/jython/batch.py	(revision 31352)
+++ trunk/ippToPsps/jython/batch.py	(revision 31405)
@@ -32,8 +32,9 @@
     "../config/2/tables.vot"
     '''
-    def __init__(self, logger, batchType, inputFitsPath="", survey=""):
+    def __init__(self, logger, batchType, inputFitsPath="", survey="", useFullTables=False):
 
         # set up logging
         self.logger = logger
+        self.logger.info("-------------------------------------------------------------------------------")
         self.logger.debug("Batch class constructor")
 
@@ -43,4 +44,5 @@
         self.inputFitsPath = inputFitsPath
         self.survey = survey
+        self.useFullTables = useFullTables
 
         # TODO
@@ -53,5 +55,5 @@
         self.gpc1Db = Gpc1Db(self.logger)
         self.ippToPspsDb = IppToPspsDb(logger)
-        self.scratchDb = ScratchDb(logger)
+        self.scratchDb = ScratchDb(logger, self.useFullTables)
 
         if self.survey != "":
@@ -92,6 +94,6 @@
             # TODO close file?
 
-        # create DVO table
-        self.scratchDb.createDvoTables()
+        # create DVO tables if accessing DVO directly
+        if not self.useFullTables: self.scratchDb.createDvoTables()
 
     '''
@@ -315,5 +317,5 @@
              self.tablesToExport.append(table.name)
 
-         self.indexPspsTables()
+         self.alterPspsTables();
 
     '''
@@ -323,9 +325,10 @@
         self.logger.warn("indexIppTables not implemented")
 
-    '''
-    Subclass should implement this to index PSPS tables
+
+    '''
+    Alter PSPS tables
     '''   
-    def indexPspsTables(self):
-        self.logger.warn("indexPspsTables not implemented")
+    def alterPspsTables(self):
+        self.logger.warn("alterPspsTables not implemented")
 
     '''
@@ -370,5 +373,5 @@
     def exportPspsTablesToFits(self, regex="(.*)"):
 
-        self.logger.info("Exporting all PSPS tables to FITS")
+        self.logger.info("Replacing NULLs with -999 then exporting all PSPS tables to FITS")
         _tables = []
 
@@ -381,6 +384,4 @@
            # get everything from table
            _table = stilts.tread(self.scratchDb.url + '#SELECT * FROM ' + table)
-
-           self.logger.info("   Replacing NULLs with weird PSPS -999 constant for " + table)
 
            # replace nulls and empty fields with weird PSPS -999 pseudo-null
