Index: trunk/ippToPsps/jython/detectionbatch.py
===================================================================
--- trunk/ippToPsps/jython/detectionbatch.py	(revision 36744)
+++ trunk/ippToPsps/jython/detectionbatch.py	(revision 37106)
@@ -547,4 +547,33 @@
 
         self.scratchDb.updateAllRows(tableName, "dataRelease", str(self.skychunk.dataRelease))
+    '''
+    Populates the SkinnyObject table for this OTA
+    '''
+    def populateSkinnyObjectTable(self, ota):
+
+        tableName = "SkinnyObject_" + ota
+        
+        # drop then re-create table
+        self.scratchDb.dropTable(tableName)
+        sql = "CREATE TABLE " + tableName + " LIKE SkinnyObject"
+        try: self.scratchDb.execute(sql)
+        except: pass
+
+        # insert all detections into table
+        sql = "INSERT INTO " + tableName + " ( \
+               objID \
+               ,ippObjID \
+               ,surveyID \
+               ) \
+               SELECT \
+               objID \
+               ,ippObjID \
+               ,surveyID \
+               FROM Detection_" + ota
+        self.scratchDb.execute(sql)
+
+        self.scratchDb.updateAllRows(tableName, "dataRelease", str(self.skychunk.dataRelease))
+
+
 
     '''
@@ -854,5 +883,7 @@
         
         #self.logger.info("updated imagedata")
-        
+        self.populateSkinnyObjectTable(chipname)
+        self.logger.info("updated skinnyobject")
+ 
         self.populateDetectionCalibTable(chipname)
         #self.logger.info("updated detectioncalibtable")
@@ -865,5 +896,8 @@
         self.logger.info("export Detection")
 
-        
+        self.tablesToExport.append("SkinnyObject_" + chipname)
+        self.logger.info("export Skinny")
+
+
         tables.append("Detection_" + chipname)
         self.logger.info("updated detectioncalibtable")
