Index: trunk/Ohana/src/libdvo/include/dvo.h
===================================================================
--- trunk/Ohana/src/libdvo/include/dvo.h	(revision 39106)
+++ trunk/Ohana/src/libdvo/include/dvo.h	(revision 39125)
@@ -138,4 +138,11 @@
   ID_MEAS_PHOTOM_KRON    = 0x00400000,  // this measurement is used for the mean kron mag
 } DVOMeasureFlags;
+
+typedef enum {
+  ID_GALPHOT_FAIL_FIT       = 0x00000001, // fit failed to converge or was degenerate
+  ID_GALPHOT_TOO_FEW        = 0x00000002, // not enough points to fit the model
+  ID_GALPHOT_OUT_OF_RANGE   = 0x00000004, // fit minimum too far outside data range
+  ID_GALPHOT_BAD_ERROR      = 0x00000008, // invalid error (nan or inf)
+} DVOGalphotFlags;
 
 // XXX we used these names previously in markstar: replace with ID_MEAS_ARTIFACT
Index: trunk/Ohana/src/libdvo/src/dvo_catalog.c
===================================================================
--- trunk/Ohana/src/libdvo/src/dvo_catalog.c	(revision 39106)
+++ trunk/Ohana/src/libdvo/src/dvo_catalog.c	(revision 39125)
@@ -552,4 +552,5 @@
   galphot->imageID = -1;
   galphot->averef  = 0;
+  galphot->flags   = 0;
 
   galphot->photcode = 0;
Index: trunk/Ohana/src/libdvo/src/dvo_convert_PS1_V5.c
===================================================================
--- trunk/Ohana/src/libdvo/src/dvo_convert_PS1_V5.c	(revision 39106)
+++ trunk/Ohana/src/libdvo/src/dvo_convert_PS1_V5.c	(revision 39125)
@@ -1031,4 +1031,5 @@
     out[i].imageID	 = in[i].imageID;
     out[i].averef	 = in[i].averef;
+    out[i].flags	 = in[i].flags;
     out[i].photcode	 = in[i].photcode;
     out[i].modelType	 = in[i].modelType;
@@ -1065,4 +1066,5 @@
     out[i].imageID	 = in[i].imageID;
 //  out[i].averef	 = in[i].averef;
+//  out[i].flags	 = in[i].flags;
     out[i].photcode	 = in[i].photcode;
     out[i].modelType	 = in[i].modelType;
@@ -1097,4 +1099,5 @@
     out[i].imageID	 = in[i].imageID;
     out[i].averef	 = in[i].averef;
+    out[i].flags	 = in[i].flags;
     out[i].photcode	 = in[i].photcode;
     out[i].modelType	 = in[i].modelType;
Index: trunk/Ohana/src/libdvo/src/dvo_photcode_ops.c
===================================================================
--- trunk/Ohana/src/libdvo/src/dvo_photcode_ops.c	(revision 39106)
+++ trunk/Ohana/src/libdvo/src/dvo_photcode_ops.c	(revision 39125)
@@ -1944,14 +1944,15 @@
   }
 
-GALPHOT_FIELD(GAL_MAG, 	       mag)	       
-GALPHOT_FIELD(GAL_MAG_ERR,     magErr)    
-GALPHOT_FIELD(GAL_MAJ, 	       majorAxis)	       
+GALPHOT_FIELD(GAL_MAG, 	       mag) 
+GALPHOT_FIELD(GAL_MAG_ERR,     magErr) 
+GALPHOT_FIELD(GAL_MAJ, 	       majorAxis) 
 GALPHOT_FIELD(GAL_MAJ_ERR,     majorAxisErr)
-GALPHOT_FIELD(GAL_MIN, 	       minorAxis)	       
-GALPHOT_FIELD(GAL_MIN_ERR,     minorAxisErr)    
-GALPHOT_FIELD(GAL_THETA,       theta)      
-GALPHOT_FIELD(GAL_THETA_ERR,   thetaErr)  
+GALPHOT_FIELD(GAL_MIN, 	       minorAxis) 
+GALPHOT_FIELD(GAL_MIN_ERR,     minorAxisErr) 
+GALPHOT_FIELD(GAL_THETA,       theta) 
+GALPHOT_FIELD(GAL_THETA_ERR,   thetaErr) 
 GALPHOT_FIELD(GAL_INDEX,       index)      
 GALPHOT_FIELD(GAL_CHISQ,       chisq)      
 GALPHOT_FIELD(GAL_NPIX,        Npix)       
+GALPHOT_FIELD(GAL_FLAGS,       flags)       
 GALPHOT_FIELD(GAL_TYPE,        modelType)       
