Index: trunk/ippToPsps/jython/detectionbatch.py
===================================================================
--- trunk/ippToPsps/jython/detectionbatch.py	(revision 38809)
+++ trunk/ippToPsps/jython/detectionbatch.py	(revision 38810)
@@ -194,6 +194,10 @@
         else: ccdID = 0
 
-        psfFwhmMajor = self.getKeyFloat(header, "%.8f", 'FWHM_MAJ')
-        psfFwhmMinor = self.getKeyFloat(header, "%.8f", 'FWHM_MIN')
+        # XXX hard-wired platescale : 0.257
+        pltscale = 0.257
+        pltscale2 = pltscale * pltscale
+
+        psfFwhmMajor = pltscale * self.getKeyFloat(header, "%.8f", 'FWHM_MAJ')
+        psfFwhmMinor = pltscale * self.getKeyFloat(header, "%.8f", 'FWHM_MIN')
         psfFwhm = 0.5*(float(psfFwhmMajor) + float(psfFwhmMinor))
 
@@ -204,5 +208,4 @@
         ast_cdy = self.getKeyFloat(header, "%.8f",'AST_CDY')
         astroscat = sqrt(ast_cdx^2 + ast_cdy^2)
-                        
         
         # insert image metadata into table
@@ -222,6 +225,6 @@
         sqlLine.group("numAstroRef",      self.getKeyValue(header, 'NASTRO'))
         sqlLine.group("numPhotoRef",      self.getKeyValue(header, 'NASTRO'))
-        sqlLine.group("nAxis1",               self.getKeyInt(header, 0, 'NAXIS1'))
-        sqlLine.group("nAxis2",               self.getKeyInt(header, 0, 'NAXIS2'))
+        sqlLine.group("nAxis1",           self.getKeyInt(header, 0, 'NAXIS1'))
+        sqlLine.group("nAxis2",           self.getKeyInt(header, 0, 'NAXIS2'))
         sqlLine.group("psfModelID"        psfmodelID)
         sqlLine.group("psfFwhm",          str(psfFwhm))
@@ -229,10 +232,10 @@
         sqlLine.group("psfWidMinor",      psfFwhmMinor)
         sqlLine.group("psfTheta",         self.getKeyFloat(header, "%.8f", 'ANGLE'))
-        sqlLine.group("momentMajor",      self.getKeyFloat(header, "%.8f", 'IQ_FW1'))
-        sqlLine.group("momentMinor",      self.getKeyFloat(header, "%.8f", 'IQ_FW2'))
-        sqlLine.group("momentM2C",        self.getKeyFloat(header, "%.8f", 'IQ_M2C'))
-        sqlLine.group("momentM2S",        self.getKeyFloat(header, "%.8f", 'IQ_M2S'))
-        sqlLine.group("momentM3",         self.getKeyFloat(header, "%.8f", 'IQ_M3'))
-        sqlLine.group("momentM4",         self.getKeyFloat(header, "%.8f", 'IQ_M4'))
+        sqlLine.group("momentMajor",      pltscale * self.getKeyFloat(header, "%.8f", 'IQ_FW1'))
+        sqlLine.group("momentMinor",      pltscale * self.getKeyFloat(header, "%.8f", 'IQ_FW2'))
+        sqlLine.group("momentM2C",        pltscale2 * self.getKeyFloat(header, "%.8f", 'IQ_M2C'))
+        sqlLine.group("momentM2S",        pltscale2 * self.getKeyFloat(header, "%.8f", 'IQ_M2S'))
+        sqlLine.group("momentM3",         pltscale2 * self.getKeyFloat(header, "%.8f", 'IQ_M3'))
+        sqlLine.group("momentM4",         pltscale2 * self.getKeyFloat(header, "%.8f", 'IQ_M4'))
         sqlLine.group("apResid",          self.getKeyFloat(header, "%.8f", 'APMIFIT'))
         sqlLine.group("dapResid",         self.getKeyFloat(header, "%.8f", 'DAPMIFIT'))
