Index: /tags/ipp-pv3-20140717/Ohana/src/libautocode/def/lensing-ps1-v5.d
===================================================================
--- /tags/ipp-pv3-20140717/Ohana/src/libautocode/def/lensing-ps1-v5.d	(revision 37328)
+++ /tags/ipp-pv3-20140717/Ohana/src/libautocode/def/lensing-ps1-v5.d	(revision 37329)
@@ -2,5 +2,5 @@
 EXTNAME      DVO_LENSING_PS1_V5
 TYPE         BINTABLE
-SIZE         128
+SIZE         136
 DESCRIPTION  DVO Lensing Table 
 
@@ -44,4 +44,7 @@
 FIELD  averef,         AVE_REF,      unsigned int,   reference to average entry      
 
+FIELD imageID,	       IMAGE_ID,     unsigned int,   reference to DVO image ID
+FIELD padding,	       PADDING,      unsigned int,   reference to DVO image ID
+
 # 28 x float
 # 4 x int
Index: /tags/ipp-pv3-20140717/Ohana/src/libautocode/def/lensing.d
===================================================================
--- /tags/ipp-pv3-20140717/Ohana/src/libautocode/def/lensing.d	(revision 37328)
+++ /tags/ipp-pv3-20140717/Ohana/src/libautocode/def/lensing.d	(revision 37329)
@@ -2,5 +2,5 @@
 EXTNAME      DVO_LENSING
 TYPE         BINTABLE
-SIZE         128
+SIZE         136
 DESCRIPTION  DVO Lensing Table 
 
@@ -39,11 +39,14 @@
 FIELD fF_ApR6,       FLUX_AP_R6,     float,          Flux inside r = 6
 
-FIELD   detID,          DET_ID,       unsigned int,   detection ID
-FIELD   objID,          OBJ_ID,       unsigned int,   unique ID for object in table
-FIELD   catID,          CAT_ID,       unsigned int,   unique ID for table in which object was first realized
-FIELD  averef,         AVE_REF,       unsigned int,   reference to average entry      
+FIELD   detID,          DET_ID,      int,   	     detection ID
+FIELD   objID,          OBJ_ID,      int,   	     unique ID for object in table
+FIELD   catID,          CAT_ID,      int,   	     unique ID for table in which object was first realized
+FIELD  averef,         AVE_REF,      int,   	     reference to average entry      
+
+FIELD imageID,	       IMAGE_ID,     int,   	     reference to DVO image ID
+FIELD padding,	       PADDING,      int,   	     padding
 
 # 28 x float
-# 4 x int
-# = 128 bytes / detection
+# 5 x int + padding
+# = 136 bytes / detection
 # for 2.5G objects + 60 overlaps, expect 15TB for forced warp
Index: /tags/ipp-pv3-20140717/Ohana/src/libautocode/def/lensobj-ps1-v5.d
===================================================================
--- /tags/ipp-pv3-20140717/Ohana/src/libautocode/def/lensobj-ps1-v5.d	(revision 37328)
+++ /tags/ipp-pv3-20140717/Ohana/src/libautocode/def/lensobj-ps1-v5.d	(revision 37329)
@@ -43,7 +43,8 @@
 FIELD     E2,               E2,      float
 
-FIELD  objID,          OBJ_ID,       unsigned int,   unique ID for object in table
-FIELD  catID,          CAT_ID,       unsigned int,   unique ID for table in which object was first realized
-FIELD    pad,             PAD,       int
+FIELD    objID,          OBJ_ID,       unsigned int,   unique ID for object in table
+FIELD    catID,          CAT_ID,       unsigned int,   unique ID for table in which object was first realized
+FIELD photcode,         PHOTCODE,    short
+FIELD    Nmeas,            NMEAS,    short
 
 # 31 x float
Index: /tags/ipp-pv3-20140717/Ohana/src/libautocode/def/lensobj.d
===================================================================
--- /tags/ipp-pv3-20140717/Ohana/src/libautocode/def/lensobj.d	(revision 37328)
+++ /tags/ipp-pv3-20140717/Ohana/src/libautocode/def/lensobj.d	(revision 37329)
@@ -29,21 +29,22 @@
 FIELD  E2_sh_psf,      E2_SH_PSF,    float,          mean lensing shear psf stars E2
 
-FIELD F_ApR5,        FLUX_AP_R5,     float,          Flux inside r = 5
-FIELD dF_ApR5,       FLUX_ERR_AP_R5, float,          Flux inside r = 5
-FIELD sF_ApR5,       FLUX_STD_AP_R5, float,          Flux inside r = 5
-FIELD fF_ApR5,       FLUX_FIL_AP_R5, float,          Flux inside r = 5
+FIELD     F_ApR5,    FLUX_AP_R5,     float,          Flux inside r = 5
+FIELD    dF_ApR5,    FLUX_ERR_AP_R5, float,          Flux inside r = 5
+FIELD    sF_ApR5,    FLUX_STD_AP_R5, float,          Flux inside r = 5
+FIELD    fF_ApR5,    FLUX_FIL_AP_R5, float,          Flux inside r = 5
 
-FIELD F_ApR6,        FLUX_AP_R6,     float,          Flux inside r = 5
-FIELD dF_ApR6,       FLUX_ERR_AP_R6, float,          Flux inside r = 5
-FIELD sF_ApR6,       FLUX_AP_R6,     float,          Flux inside r = 5
-FIELD fF_ApR6,       FLUX_AP_R6,     float,          Flux inside r = 5
+FIELD     F_ApR6,    FLUX_AP_R6,     float,          Flux inside r = 5
+FIELD    dF_ApR6,    FLUX_ERR_AP_R6, float,          Flux inside r = 5
+FIELD    sF_ApR6,    FLUX_AP_R6,     float,          Flux inside r = 5
+FIELD    fF_ApR6,    FLUX_AP_R6,     float,          Flux inside r = 5
 
-FIELD  gamma,            GAMMA,      float
-FIELD     E1,               E1,      float
-FIELD     E2,               E2,      float
+FIELD      gamma,        GAMMA,      float
+FIELD         E1,           E1,      float
+FIELD         E2,           E2,      float
 
-FIELD  objID,          OBJ_ID,       unsigned int,   unique ID for object in table
-FIELD  catID,          CAT_ID,       unsigned int,   unique ID for table in which object was first realized
-FIELD    pad,             PAD,       int
+FIELD    objID,           OBJ_ID,    unsigned int,   unique ID for object in table
+FIELD    catID,           CAT_ID,    unsigned int,   unique ID for table in which object was first realized
+FIELD photcode,         PHOTCODE,    short
+FIELD    Nmeas,            NMEAS,    short
 
 # 31 x float
