Index: trunk/Ohana/src/dvopsps/src/insert_diffobj_dvopsps_catalog.c
===================================================================
--- trunk/Ohana/src/dvopsps/src/insert_diffobj_dvopsps_catalog.c	(revision 37923)
+++ trunk/Ohana/src/dvopsps/src/insert_diffobj_dvopsps_catalog.c	(revision 37924)
@@ -124,4 +124,5 @@
 		 "NUSED_KRON_WRP      SMALLINT,  "    
 		 "NUSED_AP_WRP        SMALLINT,  "    
+		 "PSF_QF_PERF_MAX     FLOAT, "           
 
 		 "FLUX_PSF_WRP        FLOAT,  "             
@@ -178,4 +179,5 @@
 		 "NUSED_KRON_WRP, "    
 		 "NUSED_AP_WRP, "    
+		 "PSF_QF_PERF_MAX, "           
 
 		 "FLUX_PSF_WRP, "             
@@ -253,4 +255,5 @@
     PrintIOBuffer (sec_buffer, "%hd,  ", secfilt->NusedKronWrp);        
     PrintIOBuffer (sec_buffer, "%hd,  ", secfilt->NusedApWrp);        
+    PRINT_FLOAT(sec_buffer, secfilt->psfQfPerfMax, "%.6f,");       
 
     // use %e?
Index: trunk/Ohana/src/relphot/src/setMrelCatalog.c
===================================================================
--- trunk/Ohana/src/relphot/src/setMrelCatalog.c	(revision 37923)
+++ trunk/Ohana/src/relphot/src/setMrelCatalog.c	(revision 37924)
@@ -729,4 +729,7 @@
     }
 
+    float psfQfMax = 0.0;
+    float psfQfPerfMax = 0.0;
+
     off_t meas = measureOffset;
 
@@ -773,4 +776,10 @@
       float Fcal = MagToFlux(-Mcal);
 
+      // these are only used below if IS_DIFF_DB
+      if (IS_DIFF_DB) {
+	if (measure[k].psfQF     > psfQfMax)     psfQfMax     = measure[k].psfQF;
+	if (measure[k].psfQFperf > psfQfPerfMax) psfQfPerfMax = measure[k].psfQFperf;
+      }
+
       // in the calculations below, 
       // ...list gives the error per measurement, wlist gives the weight
@@ -836,4 +845,10 @@
     liststats (Fpsflist, dpsflist, wpsflist, Npsf, psfstats);
 
+    if (IS_DIFF_DB) {
+      // for non DIFF_DB, these are set in setMrelAverageExposure
+      secfilt[Nsec].psfQfMax     = psfQfMax;
+      secfilt[Nsec].psfQfPerfMax = psfQfPerfMax;
+    }
+
     secfilt[Nsec].FpsfWrp  = psfstats->mean;
     secfilt[Nsec].dFpsfWrp = psfstats->error;
