Index: trunk/Ohana/src/libautocode/def/secfilt.d
===================================================================
--- trunk/Ohana/src/libautocode/def/secfilt.d	(revision 37116)
+++ trunk/Ohana/src/libautocode/def/secfilt.d	(revision 37246)
@@ -2,5 +2,5 @@
 EXTNAME      DVO_SECFILT
 TYPE         BINTABLE
-SIZE         160
+SIZE         176
 DESCRIPTION  DVO SecFilt : Secondary Filter Data 
 
@@ -15,4 +15,8 @@
 FIELD  sMkron,        MAG_KRON_STDEV,  float,      standard deviation of kron mags,       mags
 
+# XXX I could add these fields to secfilt or calculate in dvopsps?
+FIELD  psfQfMax,      PSF_QF_MAX,      float,      best psfQf for this filter
+FIELD  psfQfPerfMax,  PSF_QF_PERF_MAX, float,      best psfQfPerfect for this filter
+
 # these statistics are PSF-specific      
 FIELD  Mstdev,        MAG_STDEV,       float,      standard deviation of measurements,    mags
@@ -21,8 +25,8 @@
 FIELD  Mchisq,        MAG_CHI,         float,      chisq on average mag,                  value
 
-FIELD  Ncode,         NCODE,           short,      number of detections in band
-FIELD  Nused,         NUSED,           short,      number of detections used in average
-FIELD  NusedKron,     NUSED_KRON,      short,      number of detections used in average
-FIELD  NusedAp,       NUSED_AP,        short,      number of detections used in average
+FIELD  Ncode,         NCODE,           short,      number of detections in band (gpc1 chip only)
+FIELD  Nused,         NUSED,           short,      number of detections used to calculate secfilt.M
+FIELD  NusedKron,     NUSED_KRON,      short,      number of detections used to calculate secfilt.Mkron
+FIELD  NusedAp,       NUSED_AP,        short,      number of detections used to calculate secfilt.Map
 
 FIELD  flags,         FLAGS,           uint32_t,   photometry flags
@@ -42,6 +46,9 @@
 FIELD  dFapStk,       FLUX_AP_STK_ERR,   float,    mean flux ap error
 
-FIELD  stackPrmryOff, STACK_PRIMARY_OFF,  int,     measure entry which is primary stack detection
-FIELD  stackBestOff,  STACK_BEST_OFF,     int,     measure entry which is best stack detection
+FIELD  Nstack,        NSTACK,            short,    number of measurements in band (gpc1 stack only)
+FIELD  NstackDet,     NSTACK_DET,        short,    number of stack detections in band (gpc1 stack only)
+
+FIELD  stackPrmryOff, STACK_PRIMARY_OFF, int,      measure entry which is primary stack detection
+FIELD  stackBestOff,  STACK_BEST_OFF,    int,      measure entry which is best stack detection
 
 ## *** this section is for forced-warp mean values ***
@@ -66,5 +73,8 @@
 FIELD  NusedApWrp,    NUSED_AP_WRP,      short,    number of detections used in average
 
-FIELD  ubercalDist,   UBERCAL_DIST,    short,      number of images from an ubercal-image
+FIELD  Nwarp,         NWARP,             short,    number of measurements in band (gpc1 warp only)
+FIELD  NwarpGood,     NWARP_GOOD,        short,    number of meas with psf_qf > 0.85 in band (gpc1 warp only)
+
+FIELD  ubercalDist,   UBERCAL_DIST,      short,    number of images from an ubercal-image
 
 # *** 20090206 : new fields : M_20, M_80; dropped dummy
