Index: trunk/ippToPsps/jython/detectionbatch.py
===================================================================
--- trunk/ippToPsps/jython/detectionbatch.py	(revision 38765)
+++ trunk/ippToPsps/jython/detectionbatch.py	(revision 38771)
@@ -198,4 +198,9 @@
         psfFwhm = 0.5*(float(psfFwhmMajor) + float(psfFwhmMinor))
 
+        ast_cdx = self.getKeyFloat(header, "%.8f",'AST_CDX')
+        ast_cdy = self.getKeyFloat(header, "%.8f",'AST_CDY')
+        astroscat = sqrt(ast_cdx^2 + ast_cdy^2)
+                        
+        
         # insert image metadata into table
         sqlLine = sqlUtility("INSERT INTO " + tableName + "(")
@@ -208,5 +213,5 @@
         sqlLine.group("skyScat",          self.getKeyFloat(header, "%.8f", 'MSKY_SIG'))
         sqlLine.group("completMag",       self.getKeyFloat(header, "%.8f", 'FLIMIT'))
-        sqlLine.group("astroScat",        self.getKeyFloat(header, "%.8f", 'CERROR'))
+        sqlLine.group("astroScat",        astroscat)
         sqlLine.group("photoScat",        self.getKeyFloat(self.header, "%.8f", 'ZPT_ERR'))
         sqlLine.group("numAstroRef",      self.getKeyValue(header, 'NASTRO'))
