Index: trunk/ippToPsps/jython/forcedwarpbatch.py
===================================================================
--- trunk/ippToPsps/jython/forcedwarpbatch.py	(revision 38865)
+++ trunk/ippToPsps/jython/forcedwarpbatch.py	(revision 38881)
@@ -226,5 +226,5 @@
         header   = self.header[num]
         self.logger.infoPair("found header","ok")
-#        photoCalID = str(self.scratchDb.getPhotoCalID(forcedWarpID))       
+        photoCalID = str(self.scratchDb.getPhotoCalID(header['IMAGEID']))       
 
         psfmodel_name = self.getKeyValue(header, 'PSFMODEL')
@@ -243,5 +243,5 @@
 	sqlLine.group("projectionID",  str(self.projectionID))
         sqlLine.group("skyCellID",     str(self.skycellID[num])) 
-#        sqlLine.group("photoCalID",    photoCalID)
+        sqlLine.group("photoCalID",    photoCalID)
 #        self.logger.infoPair("building sql ","2") 
       
@@ -261,5 +261,5 @@
         sqlLine.group("psfFwhm_mean",   self.getKeyFloat(header, "%.8f", 'FWHM_MAJ'))
         sqlLine.group("psfFwhm_max",    self.getKeyFloat(header, "%.8f", 'FW_MJ_UQ'))
-#        sqlLine.group("photoZero",        self.getKeyFloat(self.header, "%.8f", 'ZPT_OBS'))
+        sqlLine.group("photoZero",        self.getKeyFloat(self.header, "%.8f", 'FP.ZP'))
         #photoColor -- how do I set this? it's also not set in stack meta
         sqlLine.group("ctype1",                self.getKeyValue(header, 'CTYPE1'));
@@ -283,4 +283,7 @@
             self.logger.errorPair('failed sql: ', sql)
             raise
+
+            # note hardcoded pltscale
+        self.scratchDb.updateRecalStats("ForcedWarpMeta_"+forcedWarpID, header['IMAGEID'], "0.25");
 
         self.scratchDb.updateAllRows("ForcedWarpMeta_"+forcedWarpID, "batchID", str(self.batchID))
