Index: branches/eam_branches/ipp-20140717/Ohana/src/libautocode/def/average-ps1-v5.d
===================================================================
--- branches/eam_branches/ipp-20140717/Ohana/src/libautocode/def/average-ps1-v5.d	(revision 37224)
+++ branches/eam_branches/ipp-20140717/Ohana/src/libautocode/def/average-ps1-v5.d	(revision 37225)
@@ -2,5 +2,5 @@
 EXTNAME      DVO_AVERAGE_PS1_V5
 TYPE         BINTABLE
-SIZE         184
+SIZE         192
 DESCRIPTION  DVO Average Object Table
 
@@ -53,4 +53,10 @@
 FIELD refColorRed,    REF_COLOR_RED,  float,   	    color of astrometry ref stars
 
+FIELD tessID,         TESS_ID,       char,	    ID of tessellation for primary skycell
+FIELD skycellID,      SKYCELL_ID,    char,    	    ID of skycell for primary skycell
+FIELD projectionID,   PROJECTION_ID, short,	    ID of projection for primary skycell
+
+FIELD dummy,          DUMMY,         int,           unassigned bytes
+
 # 'flags' was called 'code' prior to 2009.02.07
 FIELD flags,          FLAGS,       uint32_t,        average object flags (star; ghost; etc)
Index: branches/eam_branches/ipp-20140717/Ohana/src/libautocode/def/average.d
===================================================================
--- branches/eam_branches/ipp-20140717/Ohana/src/libautocode/def/average.d	(revision 37224)
+++ branches/eam_branches/ipp-20140717/Ohana/src/libautocode/def/average.d	(revision 37225)
@@ -2,5 +2,5 @@
 EXTNAME      DVO_AVERAGE
 TYPE         BINTABLE
-SIZE         184
+SIZE         192
 DESCRIPTION  DVO Average Object Table
 
@@ -53,4 +53,10 @@
 FIELD refColorRed,    REF_COLOR_RED,  float,   	    color of astrometry ref stars
 
+FIELD tessID,         TESS_ID,       char,	    ID of tessellation for primary skycell
+FIELD skycellID,      SKYCELL_ID,    char,    	    ID of skycell for primary skycell
+FIELD projectionID,   PROJECTION_ID, short,	    ID of projection for primary skycell
+
+FIELD dummy,          DUMMY,         int,           unassigned bytes
+
 # 'flags' was called 'code' prior to 2009.02.07
 FIELD flags,          FLAGS,       uint32_t,        average object flags (star; ghost; etc)
Index: branches/eam_branches/ipp-20140717/Ohana/src/libautocode/def/measure-ps1-v5.d
===================================================================
--- branches/eam_branches/ipp-20140717/Ohana/src/libautocode/def/measure-ps1-v5.d	(revision 37224)
+++ branches/eam_branches/ipp-20140717/Ohana/src/libautocode/def/measure-ps1-v5.d	(revision 37225)
@@ -68,5 +68,5 @@
 FIELD psfNdof,        PSF_NDOF,      int,            psf degrees of freedom
 FIELD psfNpix,        PSF_NPIX,      int,            psf number of pixels
-FIELD crNsigma,       CR_NSIGMA,     float,          Nsigma deviation towards CR
+FIELD photFlags2,     PHOT_FLAGS,    int,            flags supplied by photometry program
 FIELD extNsigma,      EXT_NSIGMA,    float,          Nsigma deviation towards EXT
 
Index: branches/eam_branches/ipp-20140717/Ohana/src/libautocode/def/measure.d
===================================================================
--- branches/eam_branches/ipp-20140717/Ohana/src/libautocode/def/measure.d	(revision 37224)
+++ branches/eam_branches/ipp-20140717/Ohana/src/libautocode/def/measure.d	(revision 37225)
@@ -66,5 +66,5 @@
 FIELD psfNdof,        PSF_NDOF,      int,            psf degrees of freedom
 FIELD psfNpix,        PSF_NPIX,      int,            psf number of pixels
-FIELD crNsigma,       CR_NSIGMA,     float,          Nsigma deviation towards CR
+FIELD photFlags2,     PHOT_FLAGS,    int,            flags supplied by photometry program
 FIELD extNsigma,      EXT_NSIGMA,    float,          Nsigma deviation towards EXT
 
Index: branches/eam_branches/ipp-20140717/Ohana/src/libautocode/def/secfilt-ps1-v5.d
===================================================================
--- branches/eam_branches/ipp-20140717/Ohana/src/libautocode/def/secfilt-ps1-v5.d	(revision 37224)
+++ branches/eam_branches/ipp-20140717/Ohana/src/libautocode/def/secfilt-ps1-v5.d	(revision 37225)
@@ -2,5 +2,5 @@
 EXTNAME      DVO_SECFILT_PS1_V5
 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
@@ -42,4 +46,7 @@
 FIELD  dFapStk,       FLUX_AP_STK_ERR,   float,    mean flux ap error
 
+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
@@ -66,4 +73,7 @@
 FIELD  NusedApWrp,    NUSED_AP_WRP,      short,    number of detections used in average
 
+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
 
Index: branches/eam_branches/ipp-20140717/Ohana/src/libautocode/def/secfilt.d
===================================================================
--- branches/eam_branches/ipp-20140717/Ohana/src/libautocode/def/secfilt.d	(revision 37224)
+++ branches/eam_branches/ipp-20140717/Ohana/src/libautocode/def/secfilt.d	(revision 37225)
@@ -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
