Index: /trunk/ippToPsps/config/init/data.xml
===================================================================
--- /trunk/ippToPsps/config/init/data.xml	(revision 28225)
+++ /trunk/ippToPsps/config/init/data.xml	(revision 28226)
@@ -101463,5 +101463,61 @@
   <row stackTypeID="9" description="stack type 9" />
   <row stackTypeID="10" description="stack type 10" />
-  </table>
+ </table>
+
+ <table name="ImageFlags">
+   <row name="NEW" value="0x0000" description="no relphot / relastro attempted" />
+   <row name="NOCAL" value="0x0001" description="used within relphot to mean 'don't apply fit'" />
+   <row name="POOR" value="0x0002" description="relphot says image is bad" />
+   <row name="SKIP" value="0x0004" description="external information image is bad" />
+   <row name="FEW" value="0x0008" description="currently too few measurements for good value" />
+ </table>
+
+ <table name="DetectionFlags">
+   <row name="DEFAULT" value="0x00000000" description="Initial value: resets all bits" />
+   <row name="PSFMODEL" value="0x00000001" description="Source fitted with a psf model (linear or non-linear)" />
+   <row name="EXTMODEL" value="0x00000002" description="Source fitted with an extended-source model" />
+   <row name="FITTED" value="0x00000004" description="Source fitted with non-linear model (PSF or EXT; good or bad)" />
+   <row name="FITFAIL" value="0x00000008" description="Fit (non-linear) failed (non-converge, off-edge, run to zero)" />
+   <row name="POORFIT" value="0x00000010" description="Fit succeeds, but low-SN, high-Chisq, or large (for PSF -- drop?)" />
+   <row name="PAIR" value="0x00000020" description="Source fitted with a double psf" />
+   <row name="PSFSTAR" value="0x00000040" description="Source used to define PSF model" />
+   <row name="SATSTAR" value="0x00000080" description="Source model peak is above saturation" />
+   <row name="BLEND" value="0x00000100" description="Source is a blend with other sourcers" />
+   <row name="EXTERNALPOS" value="0x00000200" description="Source based on supplied input position" />
+   <row name="BADPSF" value="0x00000400" description="Failed to get good estimate of object's PSF" />
+   <row name="DEFECT" value="0x00000800" description="Source is thought to be a defect" />
+   <row name="SATURATED" value="0x00001000" description="Source is thought to be saturated pixels (bleed trail)" />
+   <row name="CR_LIMIT" value="0x00002000" description="Source has crNsigma above limit" />
+   <row name="EXT_LIMIT" value="0x00004000" description="Source has extNsigma above limit" />
+   <row name="MOMENTS_FAILURE" value="0x00008000" description="could not measure the moments" />
+   <row name="SKY_FAILURE" value="0x00010000" description="could not measure the local sky" />
+   <row name="SKYVAR_FAILURE" value="0x00020000" description="could not measure the local sky variance" />
+   <row name="MOMENTS_SN" value="0x00040000" description="moments not measured due to low S/N" />
+   <row name="BIG_RADIUS" value="0x00100000" description="poor moments for small radius, try large radius" />
+   <row name="AP_MAGS" value="0x00200000" description="source has an aperture magnitude" />
+   <row name="BLEND_FIT" value="0x00400000" description="source was fitted as a blend" />
+   <row name="EXTENDED_FIT" value="0x00800000" description="full extended fit was used" />
+   <row name="EXTENDED_STATS" value="0x01000000" description="extended aperture stats calculated" />
+   <row name="LINEAR_FIT" value="0x02000000" description="source fitted with the linear fit" />
+   <row name="NONLINEAR_FIT" value="0x04000000" description="source fitted with the non-linear fit" />
+   <row name="RADIAL_FLUX" value="0x08000000" description="radial flux measurements calculated" />
+   <row name="SIZE_SKIPPED" value="0x10000000" description="size could not be determined" />
+   <row name="ON_SPIKE" value="0x20000000" description="peak lands on diffraction spike" />
+   <row name="ON_GHOST" value="0x40000000" description="peak lands on ghost or glint" />
+   <row name="OFF_CHIP" value="0x80000000" description="peak lands off edge of chip" />
+   <row name="NOCAL" value="0x000100000000" description="detection ignored for this analysis (photcode, time range) -- internal only" />
+   <row name="POOR_PHOTOM" value="0x000200000000" description="detection is photometry outlier" />
+   <row name="SKIP_PHOTOM" value="0x000400000000" description="detection was ignored for photometry measurement" />
+   <row name="MEAS_AREA" value="0x000800000000" description="detection near image edge" />
+   <row name="POOR_ASTROM" value="0x001000000000" description="detection is astrometry outlier" />
+   <row name="SKIP_ASTROM" value="0x002000000000" description="detection was ignored for astrometry measurement" />
+   <row name="USED_OBJ" value="0x004000000000" description="detection was used during opdate objects" />
+   <row name="USED_CHIP" value="0x008000000000" description="detection was used during update chips" />
+   <row name="BLEND_MEAS" value="0x010000000000" description="detection is within radius of multiple objects" />
+   <row name="BLEND_OBJ" value="0x020000000000" description="multiple detections within radius of object" />
+   <row name="BLEND_MEAS_X" value="0x100000000000" description="detection is within radius of multiple objects across catalogs" />
+   <row name="ARTIFACT" value="0x200000000000" description="detection is thought to be non-astronomical" />
+ </table>
+
 
   <table name="PhotoCal">
Index: /trunk/ippToPsps/config/init/tables.xml
===================================================================
--- /trunk/ippToPsps/config/init/tables.xml	(revision 28225)
+++ /trunk/ippToPsps/config/init/tables.xml	(revision 28226)
@@ -112,3 +112,13 @@
     <column name="description" type="TSTRING" default=" " comment="survey description"></column>
   </table>
+  <table name="ImageFlags">
+    <column name="name" type="TSTRING" default=" " comment="Name of flag"></column>
+    <column name="value" type="TLONGLONG" default="0" comment="Flag value"></column>
+    <column name="description" type="TSTRING" default=" " comment="Description of the flag"></column>
+  </table>
+  <table name="DetectionFlags">
+    <column name="name" type="TSTRING" default=" " comment="Name of flag"></column>
+    <column name="value" type="TLONGLONG" default="0" comment="Flag value"></column>
+    <column name="description" type="TSTRING" default=" " comment="Description of the flag"></column>
+  </table>
 </tableDescriptions>
Index: /trunk/ippToPsps/scripts/pspsSchema2xml.pl
===================================================================
--- /trunk/ippToPsps/scripts/pspsSchema2xml.pl	(revision 28225)
+++ /trunk/ippToPsps/scripts/pspsSchema2xml.pl	(revision 28226)
@@ -122,4 +122,6 @@
     parseTable("Region");
     parseTable("StackType");
+    parseTable("ImageFlags");
+    parseTable("DetectionFlags");
 }
 
