Index: /trunk/ippToPsps/config/tables.P2.vot
===================================================================
--- /trunk/ippToPsps/config/tables.P2.vot	(revision 38770)
+++ /trunk/ippToPsps/config/tables.P2.vot	(revision 38771)
@@ -185,5 +185,5 @@
       </FIELD>
       <FIELD name="astroScat" arraysize="1" datatype="float" unit="arcsec" default="-999">
-        <DESCRIPTION>Astrometric scatter relative to reference catalog.</DESCRIPTION>
+        <DESCRIPTION>Measurement of the calibration (not astrometric error) defined to be SQRT(AST_CDX^2 + AST_CDY^2)</DESCRIPTION>
       </FIELD>
       <FIELD name="photoScat" arraysize="1" datatype="float" unit="magnitudes" default="-999">
Index: /trunk/ippToPsps/jython/detectionbatch.py
===================================================================
--- /trunk/ippToPsps/jython/detectionbatch.py	(revision 38770)
+++ /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'))
