Index: /trunk/ippToPsps/config/schema_browser.vot
===================================================================
--- /trunk/ippToPsps/config/schema_browser.vot	(revision 39080)
+++ /trunk/ippToPsps/config/schema_browser.vot	(revision 39081)
@@ -149,5 +149,4 @@
      <TABLE name="FitModel"> </TABLE>
      <TABLE name="Survey"> </TABLE>
-     <TABLE name="CameraConfig"> </TABLE>
      <TABLE name="PhotoCal"> </TABLE>
      <TABLE name="StackType"> </TABLE>
Index: /trunk/ippToPsps/config/tables.DF.vot
===================================================================
--- /trunk/ippToPsps/config/tables.DF.vot	(revision 39080)
+++ /trunk/ippToPsps/config/tables.DF.vot	(revision 39081)
@@ -4,5 +4,12 @@
   <RESOURCE>
     <TABLE name="DiffMeta">
-      <DESCRIPTION>Contains metadata related to a difference image constructed by subtracting the stacked image from the single epoch data.  The astrometric calibration of the reference stack is listed.</DESCRIPTION>
+
+      <DESCRIPTION>Contains metadata related to a difference image
+      constructed by subtracting a stacked image from a single epoch
+      image, or in the case of the MD Survey from a nightly stack
+      (stack made from all exposures in a single filter in a single
+      night).  The astrometric calibration of the reference stack is
+      listed.</DESCRIPTION>
+
       <PARAM arraysize="1" datatype="char" ucd="meta.bib.author" name="Author" value="PSPS"></PARAM>           
       <FIELD name="diffImageID" arraysize="1" datatype="long" unit="dimensionless" default="NA">
@@ -22,8 +29,8 @@
       </FIELD>
       <FIELD name="frameID" arraysize="1" datatype="int" unit="dimensionless" default="NA">
-        <DESCRIPTION>Frame/exposure identifier for the postitive image in warp-stack difference images.</DESCRIPTION>
+        <DESCRIPTION>Frame/exposure identifier for the postitive image in warp-stack difference images; not populated for stack-stack differences.</DESCRIPTION>
       </FIELD>
       <FIELD name="posImageID" arraysize="1" datatype="long" unit="dimensionless" default="NA">
-	<DESCRIPTION>Image identifier for the positive image.  For warp-stack difference images, this corresponds to the ForcedWarpToImage.forcedWarpID entry.</DESCRIPTION>
+	<DESCRIPTION>Image identifier for the positive image.  For warp-stack difference images, this corresponds to the ForcedWarpToImage.forcedWarpID entry.  For stack-stack difference images, this corresponds to StackMeta.stackImageID.  </DESCRIPTION>
       </FIELD>
       <FIELD name="negImageID" arraysize="1" datatype="long" unit="dimensionless" default="NA">
@@ -134,5 +141,5 @@
     </TABLE>
     <TABLE name="DiffDetection">
-      <DESCRIPTION>Contains the photometry of individual detections from the difference image.  The identifiers connecting the detection back to the difference image and to the object association are provided.  PSF, aperture, and Kron (1980) photometry are included, along with sky and detector coordinate positions.  Statistics  References: Kron, R. G. 1980, ApJS, 43, 305.</DESCRIPTION>
+      <DESCRIPTION>Contains the photometry of individual detections from a difference image.  The identifiers connecting the detection back to the difference image and to the object association are provided.  PSF, aperture, and Kron (1980) photometry are included, along with sky and detector coordinate positions.  Statistics  References: Kron, R. G. 1980, ApJS, 43, 305.</DESCRIPTION>
       <PARAM arraysize="1" datatype="char" ucd="meta.bib.author" name="Author" value="PSPS"></PARAM>
       <FIELD name="diffObjID" arraysize="1" datatype="long" unit="dimensionless" default="NA">
@@ -356,5 +363,5 @@
 
     <TABLE name="DiffDetEffMeta">
-      <DESCRIPTION>Contains the detection efficiency information for a given individual difference image.  Provides the number of recovered sources out of 500 and statistics about the magnitudes of the recovered sources for a range of magnitude offsets.</DESCRIPTION>
+      <DESCRIPTION>Contains the detection efficiency information for a given individual difference image.  Provides the number of recovered sources out of 500 injected sources and statistics about the magnitudes of the recovered sources for a range of magnitude offsets.</DESCRIPTION>
       <PARAM arraysize="1" datatype="char" ucd="meta.bib.author" name="Author" value="PSPS"></PARAM>
       <FIELD name="diffImageID" arraysize="1" datatype="long" unit="dimensionless" default="NA">
@@ -363,4 +370,7 @@
       <FIELD name="magref" arraysize="1" datatype="float" unit="magnitudes" default="NA">
         <DESCRIPTION>Detection efficiency reference magnitude.</DESCRIPTION>
+      </FIELD>
+      <FIELD name="nInjected" arraysize="1" datatype="int" unit="dimensionless" default="NA">
+        <DESCRIPTION>Number of fake sources injected in each magnitude bin.</DESCRIPTION>
       </FIELD>
       <FIELD name="offset01" arraysize="1" datatype="float" unit="magnitudes" default="NA">
Index: /trunk/ippToPsps/config/tables.FO.vot
===================================================================
--- /trunk/ippToPsps/config/tables.FO.vot	(revision 39080)
+++ /trunk/ippToPsps/config/tables.FO.vot	(revision 39081)
@@ -4,5 +4,16 @@
   <RESOURCE>
     <TABLE name="ForcedMeanObject">
-      <DESCRIPTION>Contains the mean of single-epoch photometric information for object sources detected in the stacked data, calculated as described in Magnier et al. (2013).  The objects associate forced warp detections within a one arcsecond radius.  PSF, Kron (1980), and SDSS aperture R5 (r = 3.00 arcsec), R6 (r = 4.63 arcsec), and R7 (r = 7.43 arcsec) apertures (Stoughton 2002) magnitudes and statistics are listed for all filters.  References: Kaiser, N., Squires, G., and Broadhurst, T. 1995, ApJ, 449, 460; Kron, R. G. 1980, ApJS, 43, 305; Magnier, E. A., Schlafly, E., Finkbeiner, D., et al. 2013, ApJS, 205, 20; Stoughton, C., Lupton, R. H., Bernardi, M., et al. 2002, AJ, 123, 485..</DESCRIPTION>
+      <DESCRIPTION>Contains the mean of single-epoch photometric
+      information for sources detected in the stacked data, calculated
+      as described in Magnier et al. (2013).  The mean is calculated
+      for detections associated into objects within a one arcsecond
+      correlation radius.  PSF, Kron (1980), and SDSS aperture R5 (r =
+      3.00 arcsec), R6 (r = 4.63 arcsec), and R7 (r = 7.43 arcsec)
+      apertures (Stoughton 2002) magnitudes and statistics are listed
+      for all filters.  References: Kaiser, N., Squires, G., and
+      Broadhurst, T. 1995, ApJ, 449, 460; Kron, R. G. 1980, ApJS, 43,
+      305; Magnier, E. A., Schlafly, E., Finkbeiner, D., et al. 2013,
+      ApJS, 205, 20; Stoughton, C., Lupton, R. H., Bernardi, M., et
+      al. 2002, AJ, 123, 485..</DESCRIPTION>
       <PARAM arraysize="1" datatype="char" ucd="meta.bib.author" name="Author" value="PSPS"></PARAM>
       <FIELD name="objID" arraysize="1" datatype="long" unit="dimensionless" default="NA">
Index: /trunk/ippToPsps/config/tables.FW.vot
===================================================================
--- /trunk/ippToPsps/config/tables.FW.vot	(revision 39080)
+++ /trunk/ippToPsps/config/tables.FW.vot	(revision 39081)
@@ -81,7 +81,4 @@
 	<DESCRIPTION>Locally derived photometric zero point for this warp image.</DESCRIPTION>
       </FIELD>
-      <FIELD name="photoColor" arraysize="1" datatype="float" unit="magnitudes" default="-999">
-	<DESCRIPTION>Locally derived photometric color term for this warp image.</DESCRIPTION>
-      </FIELD>
       <FIELD name="ctype1" arraysize="100" datatype="char" unit="dimensionless" default="">
         <DESCRIPTION>Name of astrometric projection in right ascension.</DESCRIPTION>
@@ -128,5 +125,13 @@
     </TABLE>
     <TABLE name="ForcedWarpMeasurement">
-      <DESCRIPTION>Contains single epoch forced photometry of individual measurements of objects detected in the stacked images.  The identifiers connecting the measurement back to the original image and to the object association are provided.  PSF, aperture, and Kron (1980) photometry are included, along with sky and detector coordinate positions.  References: Kron, R. G. 1980, ApJS, 43, 305. </DESCRIPTION>
+
+      <DESCRIPTION>Contains single epoch forced photometry of
+      individual measurements of objects detected in the stacked
+      images.  The identifiers connecting the measurement back to the
+      original image and to the object association are provided.  PSF,
+      aperture, and Kron (1980) photometry are included, along with
+      sky and detector coordinate positions.  References: Kron,
+      R. G. 1980, ApJS, 43, 305. </DESCRIPTION>
+
       <PARAM arraysize="1" datatype="char" ucd="meta.bib.author" name="Author" value="PSPS"></PARAM>
       <FIELD name="objID" arraysize="1" datatype="long" unit="dimensionless" default="NA">
@@ -294,5 +299,5 @@
     </TABLE>
     <TABLE name="ForcedWarpMasked">
-      <DESCRIPTION>Contains single epoch forced photometry of objects detected in the stacked images but are masked in a particular warp image.</DESCRIPTION>
+      <DESCRIPTION>Contains an entry for objects detected in the stacked images which were in the footprint of a single epoch exposure, but for which there are no unmasked pixels at that epoch.</DESCRIPTION>
       <PARAM arraysize="1" datatype="char" ucd="meta.bib.author" name="Author" value="PSPS"></PARAM>
       <FIELD name="objID" arraysize="1" datatype="long" unit="dimensionless" default="NA">
Index: /trunk/ippToPsps/config/tables.IN.vot
===================================================================
--- /trunk/ippToPsps/config/tables.IN.vot	(revision 39080)
+++ /trunk/ippToPsps/config/tables.IN.vot	(revision 39081)
@@ -4,5 +4,5 @@
   <RESOURCE>
     <TABLE name="Filter">
-      <DESCRIPTION>Contains a description of the optical filters used in exposures.</DESCRIPTION>
+      <DESCRIPTION>Contains a description of the optical filters used in the survey (Tonry et al 2012, ApJ 750, 99).</DESCRIPTION>
       <PARAM arraysize="1" datatype="char" ucd="meta.bib.author" name="Author" value="PSPS"></PARAM>
       <FIELD name="filterID" arraysize="1" datatype="unsignedByte">
@@ -11,7 +11,4 @@
       <FIELD name="filterType" arraysize="100" datatype="char">
         <DESCRIPTION>Filter name.</DESCRIPTION>
-      </FIELD>
-      <FIELD name="filterSpec" arraysize="100" datatype="char">
-        <DESCRIPTION>Filter specifications.</DESCRIPTION>
       </FIELD>
       <DATA>
@@ -26,5 +23,10 @@
     </TABLE>
     <TABLE name="FitModel">
-      <DESCRIPTION>Contains descriptions of the models used in fitting detections.  References:  de Vaucouleurs, G. 1948, Annales d'Astrophysique, 11, 247;  Sersic, J. L. 1963, Boletin de la Asociacion Argentina de Astronomia La Plata Argentina, 6, 41.</DESCRIPTION>
+      <DESCRIPTION>
+	Contains descriptions of the models used in fitting detections
+	in images, both PSF-like and extended galaxies.  References:
+	de Vaucouleurs, G. 1948, Annales d'Astrophysique, 11, 247;
+	Sersic, J. L. 1963, Boletin de la Asociacion Argentina de
+	Astronomia La Plata Argentina, 6, 41.</DESCRIPTION>
       <PARAM arraysize="1" datatype="char" ucd="meta.bib.author" name="Author" value="PSPS"></PARAM>
       <FIELD name="fitModelID" arraysize="1" datatype="short">
@@ -82,5 +84,5 @@
     </TABLE>
     <TABLE name="Survey">
-      <DESCRIPTION>Contains descriptions of the various project surveys.</DESCRIPTION>
+      <DESCRIPTION>Contains descriptions of the various PS1 Science Consortium Surveys.</DESCRIPTION>
       <PARAM arraysize="1" datatype="char" ucd="meta.bib.author" name="Author" value="PSPS"></PARAM>
       <FIELD name="surveyID" arraysize="1" datatype="unsignedByte">
@@ -130,26 +132,4 @@
       </DATA>
     </TABLE>
-    <TABLE name="CameraConfig">
-      <DESCRIPTION>Contains descriptions of the camera configuration changes.</DESCRIPTION>
-      <PARAM arraysize="1" datatype="char" ucd="meta.bib.author" name="Author" value="PSPS"></PARAM>
-      <FIELD name="cameraID" arraysize="1" datatype="short">
-        <DESCRIPTION>Camera identifier.</DESCRIPTION>
-      </FIELD>
-      <FIELD name="cameraConfigID" arraysize="1" datatype="short">
-        <DESCRIPTION>Camera configuration identifier.</DESCRIPTION>
-      </FIELD>
-      <FIELD name="endDate" arraysize="1" datatype="float" unit="days">
-        <DESCRIPTION>Modified Julian Date of the end of this configuration.</DESCRIPTION>
-      </FIELD>
-      <FIELD name="configDetails" arraysize="100" datatype="char">
-        <DESCRIPTION>Description of the camera configuration.</DESCRIPTION>
-      </FIELD>
-      <DATA>
-        <TABLEDATA>
-           <TR><TD>1</TD><TD>1</TD><TD>54000.0</TD></TR>
-           <TR><TD>1</TD><TD>2</TD><TD>54000.0</TD><TD>f0123456789abcde</TD></TR>
-        </TABLEDATA>
-      </DATA>
-    </TABLE>
     <TABLE name="PhotoCal">
       <DESCRIPTION>Contains photometric calibration information for each filter and detector image combinations.</DESCRIPTION>
@@ -164,11 +144,11 @@
         <DESCRIPTION>Photometry reduction code name.</DESCRIPTION>
       </FIELD>
-      <FIELD name="AB" arraysize="1" datatype="float">
+      <FIELD name="AB" arraysize="1" datatype="float" unit="magnitudes">
         <DESCRIPTION>AB magnitude.</DESCRIPTION>
       </FIELD>
-      <FIELD name="zeropoint" arraysize="1" datatype="float">
+      <FIELD name="zeropoint" arraysize="1" datatype="float" unit="magnitudes">
         <DESCRIPTION>Photometric zeropoint (excluding long term variation).</DESCRIPTION>
       </FIELD>
-      <FIELD name="extinction" arraysize="1" datatype="float">
+      <FIELD name="extinction" arraysize="1" datatype="float" unit="magnitudes / airmass">
         <DESCRIPTION>Photometric extinction term (excluding long term variation).</DESCRIPTION>
       </FIELD>
Index: /trunk/ippToPsps/config/tables.OB.vot
===================================================================
--- /trunk/ippToPsps/config/tables.OB.vot	(revision 39080)
+++ /trunk/ippToPsps/config/tables.OB.vot	(revision 39081)
@@ -4,5 +4,17 @@
   <RESOURCE>
     <TABLE name="ObjectThin">
-      <DESCRIPTION>Contains the positional information for objects in a number of coordinate systems.  The objects associate single epoch detections and the stacked detections within a one arcsecond radius.  The position of an object in the stack is used as the basis for coordinates when available, with the mean position from the single epoch data when it is not.  The right ascension and declination for both the stack and single epoch mean is provided.  The number of detections in each filter from single epoch data is listed, along with which filters the object has a stack detection.  References: Szalay, A. S., Gray, J., Fekete, G., et al. 2007, arXiv:cs/0701164.</DESCRIPTION>
+
+      <DESCRIPTION>Contains the positional information for objects in
+      a number of coordinate systems.  The objects associate single
+      epoch detections and the stacked detections within a one
+      arcsecond radius.  The mean position from the single epoch data
+      is used as the basis for coordinates when available, or the
+      position of an object in the stack when it is not.  The right
+      ascension and declination for both the stack and single epoch
+      mean is provided.  The number of detections in each filter from
+      single epoch data is listed, along with which filters the object
+      has a stack detection.  References: Szalay, A. S., Gray, J.,
+      Fekete, G., et al. 2007, arXiv:cs/0701164.</DESCRIPTION>
+
       <PARAM arraysize="1" datatype="char" ucd="meta.bib.author" name="Author" value="PSPS"></PARAM>
       <FIELD name="objName" arraysize="32" datatype="char" unit="dimensionless"  default="NA">
@@ -64,8 +76,8 @@
       </FIELD>
       <FIELD name="raStack" arraysize="1" datatype="double" unit="degrees" default="-999">
-        <DESCRIPTION>Right ascension mean from stack detections.</DESCRIPTION>
+        <DESCRIPTION>Right ascension from stack detections, weighted mean value across filters, in equinox J2000.  See StackObjectThin for stack epoch information.</DESCRIPTION>
       </FIELD>
       <FIELD name="decStack" arraysize="1" datatype="double" unit="degrees" default="-999">
-        <DESCRIPTION>Declination mean from stack detections.</DESCRIPTION>
+        <DESCRIPTION>Declination from stack detections, weighted mean value across filters, in equinox J2000.  See StackObjectThin for stack epoch information.</DESCRIPTION>
       </FIELD>
       <FIELD name="raStackErr" arraysize="1" datatype="float" unit="arcsec" default="-999">
@@ -76,8 +88,8 @@
       </FIELD>
       <FIELD name="raMean" arraysize="1" datatype="double" unit="degrees" default="-999">
-        <DESCRIPTION>Right ascension mean from single epoch detections.</DESCRIPTION>
+        <DESCRIPTION>Right ascension from single epoch detections (weighted mean) in equinox J2000 at the mean epoch given by epochMean.</DESCRIPTION>
       </FIELD>
       <FIELD name="decMean" arraysize="1" datatype="double" unit="degrees" default="-999">
-        <DESCRIPTION>Declination mean from single epoch detections.</DESCRIPTION>
+        <DESCRIPTION>Declination from single epoch detections (weighted mean) in equinox J2000 at the mean epoch given by epochMean.</DESCRIPTION>
       </FIELD>
       <FIELD name="raMeanErr" arraysize="1" datatype="float" unit="arcsec" default="-999">
@@ -86,4 +98,7 @@
       <FIELD name="decMeanErr" arraysize="1" datatype="float" unit="arcsec" default="-999">
         <DESCRIPTION>Declination standard deviation from single epoch detections.</DESCRIPTION>
+      </FIELD>
+      <FIELD name="epochMean" arraysize="1" datatype="double" unit="days" default="-999">
+        <DESCRIPTION>Modified Julian Date of the mean epoch corresponding to raMean, decMean (equinox J2000).</DESCRIPTION>
       </FIELD>
       <FIELD name="posMeanChisq" arraysize="1" datatype="float" unit="dimensionless" default="-999">
@@ -140,5 +155,15 @@
     </TABLE>
     <TABLE name="MeanObject">
-      <DESCRIPTION>Contains the mean photometric information for objects based on the single epoch data, calculated as described in Magnier et al (2013).  PSF, Kron (1980), and aperture magnitudes and statistics are listed for all filters.  References: Kron, R. G. 1980, ApJS, 43, 305; Magnier, E. A., Schlafly, E., Finkbeiner, D., et al. 2013, ApJS, 205, 20.</DESCRIPTION>
+
+      <DESCRIPTION>Contains the mean photometric information for
+      objects based on the single epoch data, calculated as described
+      in Magnier et al (2013).  To be included in this table, an
+      object must be bright enough to have been detected at least once
+      in an individual exposure.  PSF, Kron (1980), and aperture
+      magnitudes and statistics are listed for all filters.
+      References: Kron, R. G. 1980, ApJS, 43, 305; Magnier, E. A.,
+      Schlafly, E., Finkbeiner, D., et al. 2013, ApJS, 205,
+      20.</DESCRIPTION>
+
       <PARAM arraysize="1" datatype="char" ucd="meta.bib.author" name="Author" value="PSPS"></PARAM>
       <FIELD name="objID" arraysize="1" datatype="long" unit="dimensionless" default="NA">
Index: /trunk/ippToPsps/config/tables.P2.vot
===================================================================
--- /trunk/ippToPsps/config/tables.P2.vot	(revision 39080)
+++ /trunk/ippToPsps/config/tables.P2.vot	(revision 39081)
@@ -4,5 +4,10 @@
   <RESOURCE>
     <TABLE name="FrameMeta">
-      <DESCRIPTION>Contains metadata related to an individual exposure.  The camera configuration, telescope pointing, observation time, and astrometric solution from the detector focal plane (L,M) to the sky (RA,Dec) is provided.</DESCRIPTION>
+      <DESCRIPTION>Contains metadata related to an individual
+      exposure.  A "Frame" refers to the collection of all images
+      obtained by the 60 OTA devices in the camera in a single
+      exposure. The camera configuration, telescope pointing,
+      observation time, and astrometric solution from the detector
+      focal plane (L,M) to the sky (RA,Dec) is provided.</DESCRIPTION>
       <PARAM arraysize="1" datatype="char" ucd="meta.bib.author" name="Author" value="PSPS"></PARAM>
       <FIELD name="frameID" arraysize="1" datatype="int" unit="dimensionless" default="NA">
@@ -158,5 +163,5 @@
     </TABLE>
     <TABLE name="ImageMeta">
-      <DESCRIPTION>Contains metadata related to an individual OTA image that comprises a portion of the full exposure.  The characterization of the image quality, the detrends applied, and the astrometric solution from the raw pixels (X,y) to the detector focal plane (L,M) is provided.</DESCRIPTION>
+      <DESCRIPTION>Contains metadata related to an individual OTA image that comprises a portion of the full exposure.  The characterization of the image quality, the detrends applied, and the astrometric solution from the raw pixels (X,Y) to the detector focal plane (L,M) is provided.</DESCRIPTION>
       <PARAM arraysize="1" datatype="char" ucd="meta.bib.author" name="Author" value="PSPS"></PARAM>
       <FIELD name="imageID" arraysize="1" datatype="long" unit="dimensionless" default="NA">
@@ -167,5 +172,5 @@
       </FIELD>
       <FIELD name="ccdID" arraysize="1" datatype="short" unit="dimensionless" default="NA">
-        <DESCRIPTION>OTA identifier based on location in the focal plane.</DESCRIPTION>
+        <DESCRIPTION>OTA identifier based on location in the focal plane, specific to an individual device.</DESCRIPTION>
       </FIELD>
       <FIELD name="photoCalID" arraysize="1" datatype="int" unit="dimensionless" default="NA">
@@ -387,5 +392,5 @@
     </TABLE>
     <TABLE name="Detection">
-      <DESCRIPTION>Contains single epoch photometry of individual detections.  The identifiers connecting the detection back to the original image and to the object association are provided.  PSF, aperture, and Kron (1980) photometry are included, along with sky and detector coordinate positions.  References: Kron, R. G. 1980, ApJS, 43, 305.</DESCRIPTION>
+      <DESCRIPTION>Contains single epoch photometry of individual detections from a single exposure.  The identifiers connecting the detection back to the original image and to the object association are provided.  PSF, aperture, and Kron (1980) photometry are included, along with sky and detector coordinate positions.  References: Kron, R. G. 1980, ApJS, 43, 305.</DESCRIPTION>
       <PARAM arraysize="1" datatype="char" ucd="meta.bib.author" name="Author" value="PSPS"></PARAM>
       <FIELD name="objID" arraysize="1" datatype="long" unit="dimensionless" default="NA">
@@ -568,5 +573,5 @@
     </TABLE>
     <TABLE name="ImageDetEffMeta">
-      <DESCRIPTION>Contains the detection efficiency information for a given individual OTA image.  Provides the number of recovered sources out of 500 and statistics about the magnitudes of the recovered sources for a range of magnitude offsets.</DESCRIPTION>
+      <DESCRIPTION>Contains the detection efficiency information for a given individual OTA image.  Provides the number of recovered sources out of 500 injected fake source and statistics about the magnitudes of the recovered sources for a range of magnitude offsets.</DESCRIPTION>
       <PARAM arraysize="1" datatype="char" ucd="meta.bib.author" name="Author" value="PSPS"></PARAM>
       <FIELD name="imageID" arraysize="1" datatype="long" unit="dimensionless" default="NA">
@@ -578,4 +583,7 @@
       <FIELD name="magref" arraysize="1" datatype="float" unit="magnitudes" default="NA">
         <DESCRIPTION>Detection efficiency reference magnitude.</DESCRIPTION>
+      </FIELD>
+      <FIELD name="nInjected" arraysize="1" datatype="int" unit="dimensionless" default="NA">
+        <DESCRIPTION>Number of fake sources injected in each magnitude bin.</DESCRIPTION>
       </FIELD>
       <FIELD name="offset01" arraysize="1" datatype="float" unit="magnitudes" default="NA">
Index: /trunk/ippToPsps/config/tables.ST.vot
===================================================================
--- /trunk/ippToPsps/config/tables.ST.vot	(revision 39080)
+++ /trunk/ippToPsps/config/tables.ST.vot	(revision 39081)
@@ -6,5 +6,9 @@
     <!-- StackMeta Table ************************************************** -->
     <TABLE name="StackMeta">
-      <DESCRIPTION>Contains the metadata describing the stacked image produced from a set of single epoch exposures.  The astrometric and photometric calibration of the stacked image are listed.</DESCRIPTION>
+      <DESCRIPTION>Contains the metadata describing the stacked image
+      produced from the combination of a set of single epoch
+      exposures.  The nature of the stack is given by the StackTypeID.
+      The astrometric and photometric calibration of the stacked image
+      are listed.</DESCRIPTION>
       <PARAM arraysize="1" datatype="char" ucd="meta.bib.author" name="Author" value="PSPS"></PARAM>              
       <FIELD name="stackImageID" arraysize="1" datatype="long" unit="dimensionless" default="NA">
@@ -94,7 +98,4 @@
       <FIELD name="photoZero" arraysize="1" datatype="float" unit="magnitudes" default="-999">
         <DESCRIPTION>Locally derived photometric zero point for this stack.</DESCRIPTION>
-      </FIELD>
-      <FIELD name="photoColor" arraysize="1" datatype="float" unit="magnitudes" default="-999">
-        <DESCRIPTION>Locally derived photometric color term for this stack.</DESCRIPTION>
       </FIELD>
       <FIELD name="ctype1" arraysize="100" datatype="char" unit="dimensionless" default="">
@@ -170,7 +171,4 @@
 	<DESCRIPTION>Random value drawn from the interval between zero and one.</DESCRIPTION>
       </FIELD>
-      <FIELD name="stackDetectRowID" arraysize="1" datatype="long" unit="dimensionless" default="NA">
-	<DESCRIPTION>Identifies if this row is the primary detection, a secondary detection, and if it is the best detection.</DESCRIPTION>
-      </FIELD>
       <FIELD name="primaryDetection" arraysize="1" datatype="unsignedByte" unit="dimensionless" default="255">
         <DESCRIPTION>Identifies if this row is the primary stack detection.</DESCRIPTION>
@@ -207,4 +205,7 @@
         <DESCRIPTION>Declination error from g filter stack detection.</DESCRIPTION>
       </FIELD>
+      <FIELD name="gEpoch" arraysize="1" datatype="double" unit="days" default="-999">
+        <DESCRIPTION>Modified Julian Date of the mean epoch of images contributing to the the g-band stack (equinox J2000).</DESCRIPTION>
+      </FIELD>
       <FIELD name="gPSFMag" arraysize="1" datatype="float" unit="AB magnitudes" default="-999">
         <DESCRIPTION>PSF magnitude from g filter stack detection.</DESCRIPTION>
@@ -260,4 +261,7 @@
         <DESCRIPTION>Declination error from r filter stack detection.</DESCRIPTION>
       </FIELD>
+      <FIELD name="rEpoch" arraysize="1" datatype="double" unit="days" default="-999">
+        <DESCRIPTION>Modified Julian Date of the mean epoch of images contributing to the the r-band stack (equinox J2000).</DESCRIPTION>
+      </FIELD>
       <FIELD name="rPSFMag" arraysize="1" datatype="float" unit="AB magnitudes" default="-999">
         <DESCRIPTION>PSF magnitude from r filter stack detection.</DESCRIPTION>
@@ -313,4 +317,7 @@
         <DESCRIPTION>Declination error from i filter stack detection.</DESCRIPTION>
       </FIELD>
+      <FIELD name="iEpoch" arraysize="1" datatype="double" unit="days" default="-999">
+        <DESCRIPTION>Modified Julian Date of the mean epoch of images contributing to the the i-band stack (equinox J2000).</DESCRIPTION>
+      </FIELD>
       <FIELD name="iPSFMag" arraysize="1" datatype="float" unit="AB magnitudes" default="-999">
         <DESCRIPTION>PSF magnitude from i filter stack detection.</DESCRIPTION>
@@ -366,4 +373,7 @@
         <DESCRIPTION>Declination error from z filter stack detection.</DESCRIPTION>
       </FIELD>
+      <FIELD name="zEpoch" arraysize="1" datatype="double" unit="days" default="-999">
+        <DESCRIPTION>Modified Julian Date of the mean epoch of images contributing to the the z-band stack (equinox J2000).</DESCRIPTION>
+      </FIELD>
       <FIELD name="zPSFMag" arraysize="1" datatype="float" unit="AB magnitudes" default="-999">
         <DESCRIPTION>PSF magnitude from z filter stack detection.</DESCRIPTION>
@@ -418,4 +428,7 @@
       <FIELD name="ydecErr" arraysize="1" datatype="float" unit="arcsec" default="-999">
         <DESCRIPTION>Declination error from y filter stack detection.</DESCRIPTION>
+      </FIELD>
+      <FIELD name="yEpoch" arraysize="1" datatype="double" unit="days" default="-999">
+        <DESCRIPTION>Modified Julian Date of the mean epoch of images contributing to the the y-band stack (equinox J2000).</DESCRIPTION>
       </FIELD>
       <FIELD name="yPSFMag" arraysize="1" datatype="float" unit="AB magnitudes" default="-999">
@@ -470,7 +483,4 @@
 	<DESCRIPTION>Random value drawn from the interval between zero and one.</DESCRIPTION>
       </FIELD>
-      <FIELD name="stackDetectRowID" arraysize="1" datatype="long" unit="dimensionless" default="NA">
-	<DESCRIPTION>Identifies if this row is the primary detection, a secondary detection, and if it is the best detection.</DESCRIPTION>
-      </FIELD>
       <FIELD name="primaryDetection" arraysize="1" datatype="unsignedByte" unit="dimensionless" default="255">
         <DESCRIPTION>Identifies if this row is the primary stack detection.</DESCRIPTION>
@@ -1021,5 +1031,5 @@
     <!-- StackApFlx Table ************************************************** -->
     <TABLE name="StackApFlx">
-      <DESCRIPTION>Contains the unconvolved fluxes within the SDSS R5 (r = 3.00 arcsec), R6 (r = 4.63 arcsec), and R7 (r = 7.43 arcsec) apertures (Stoughton 2002).  Convolved fluxes within these same apertures are also provided for convolution targets of 6 sky pixels (1.5 arcsec) and 8 sky pixels (2.0 arcsec).  All filters are matched into a single row.  See StackObjectThin table for discussion of primary, secondary, and best detections.  References: Stoughton, C., Lupton, R. H., Bernardi, M., et al. 2002, AJ, 123, 485.</DESCRIPTION>
+      <DESCRIPTION>Contains the unconvolved fluxes within the SDSS R5 (r = 3.00 arcsec), R6 (r = 4.63 arcsec), and R7 (r = 7.43 arcsec) apertures (Stoughton 2002).  Convolved fluxes within these same apertures are also provided for images convolved to 6 sky pixels (1.5 arcsec) and 8 sky pixels (2.0 arcsec).  All filters are matched into a single row.  See StackObjectThin table for discussion of primary, secondary, and best detections.  References: Stoughton, C., Lupton, R. H., Bernardi, M., et al. 2002, AJ, 123, 485.</DESCRIPTION>
       <PARAM arraysize="1" datatype="char" ucd="meta.bib.author" name="Author" value="PSPS"></PARAM>
       <FIELD name="objID" arraysize="1" datatype="long" unit="dimensionless"  default="NA">
@@ -1034,7 +1044,4 @@
       <FIELD name="randomStackObjID" arraysize="1" datatype="double" unit="dimensionless" default="NA">
 	<DESCRIPTION>Random value drawn from the interval between zero and one.</DESCRIPTION>
-      </FIELD>
-      <FIELD name="stackDetectRowID" arraysize="1" datatype="long" unit="dimensionless" default="NA">
-	<DESCRIPTION>Identifies if this row is the primary detection, a secondary detection, and if it is the best detection.</DESCRIPTION>
       </FIELD>
       <FIELD name="primaryDetection" arraysize="1" datatype="unsignedByte" unit="dimensionless" default="255">
@@ -1660,7 +1667,4 @@
 	<DESCRIPTION>Random value drawn from the interval between zero and one.</DESCRIPTION>
       </FIELD>
-      <FIELD name="stackDetectRowID" arraysize="1" datatype="long" unit="dimensionless" default="NA">
-	<DESCRIPTION>Identifies if this row is the primary detection, a secondary detection, and if it is the best detection.</DESCRIPTION>
-      </FIELD>
       <FIELD name="primaryDetection" arraysize="1" datatype="unsignedByte" unit="dimensionless" default="255">
         <DESCRIPTION>Identifies if this row is the primary stack detection.</DESCRIPTION>
@@ -1845,7 +1849,4 @@
 	<DESCRIPTION>Random value drawn from the interval between zero and one.</DESCRIPTION>
       </FIELD>
-      <FIELD name="stackDetectRowID" arraysize="1" datatype="long" unit="dimensionless" default="NA">
-	<DESCRIPTION>Identifies if this row is the primary detection, a secondary detection, and if it is the best detection.</DESCRIPTION>
-      </FIELD>
       <FIELD name="primaryDetection" arraysize="1" datatype="unsignedByte" unit="dimensionless" default="255">
         <DESCRIPTION>Identifies if this row is the primary stack detection.</DESCRIPTION>
@@ -2126,7 +2127,4 @@
 	<DESCRIPTION>Random value drawn from the interval between zero and one.</DESCRIPTION>
       </FIELD>
-      <FIELD name="stackDetectRowID" arraysize="1" datatype="long" unit="dimensionless" default="NA">
-	<DESCRIPTION>Identifies if this row is the primary detection, a secondary detection, and if it is the best detection.</DESCRIPTION>
-      </FIELD>
       <FIELD name="primaryDetection" arraysize="1" datatype="unsignedByte" unit="dimensionless" default="255">
         <DESCRIPTION>Identifies if this row is the primary stack detection.</DESCRIPTION>
@@ -2407,7 +2405,4 @@
 	<DESCRIPTION>Random value drawn from the interval between zero and one.</DESCRIPTION>
       </FIELD>
-      <FIELD name="stackDetectRowID" arraysize="1" datatype="long" unit="dimensionless" default="NA">
-	<DESCRIPTION>Identifies if this row is the primary detection, a secondary detection, and if it is the best detection.</DESCRIPTION>
-      </FIELD>
       <FIELD name="primaryDetection" arraysize="1" datatype="unsignedByte" unit="dimensionless" default="255">
         <DESCRIPTION>Identifies if this row is the primary stack detection.</DESCRIPTION>
@@ -2704,5 +2699,18 @@
     <!-- StackApFlxFull Table ************************************************** -->
     <TABLE name="StackApFlxExGalUnc">
-      <DESCRIPTION>Contains the unconvolved fluxes within the SDSS R3 (r = 1.03 arcsec), R4 (r = 1.76 arcsec), R5 (r = 3.00 arcsec), R6 (r = 4.63 arcsec), R7 (r = 7.43 arcsec), R8 (r = 11.42 arcsec), R9 (r = 18.20 arcsec), R10 (r = 28.20 arcsec), and R11 (r = 44.21 arcsec) apertures (Stoughton 2002) for extended sources.  See StackObjectThin table for discussion of primary, secondary, and best detections.  References:  Stoughton, C., Lupton, R. H., Bernardi, M., et al. 2002, AJ, 123, 485.</DESCRIPTION>
+
+      <DESCRIPTION>Contains the unconvolved fluxes within the SDSS R3
+      (r = 1.03 arcsec), R4 (r = 1.76 arcsec), R5 (r = 3.00 arcsec),
+      R6 (r = 4.63 arcsec), R7 (r = 7.43 arcsec), R8 (r = 11.42
+      arcsec), R9 (r = 18.20 arcsec), R10 (r = 28.20 arcsec), and R11
+      (r = 44.21 arcsec) apertures (Stoughton 2002) for extended
+      sources.  These measurements are only provided for objects in
+      the extragalactic sky, i.e., they are not provided for objects
+      in the Galactic plane because they are not useful in crowded
+      areas.  See StackObjectThin table for discussion of primary,
+      secondary, and best detections.  References: Stoughton, C.,
+      Lupton, R. H., Bernardi, M., et al. 2002, AJ, 123,
+      485.</DESCRIPTION>
+
       <PARAM arraysize="1" datatype="char" ucd="meta.bib.author" name="Author" value="PSPS"></PARAM>
       <FIELD name="objID" arraysize="1" datatype="long" unit="dimensionless" default="NA">
@@ -2717,7 +2725,4 @@
       <FIELD name="randomStackObjID" arraysize="1" datatype="double" unit="dimensionless" default="NA">
 	<DESCRIPTION>Random value drawn from the interval between zero and one.</DESCRIPTION>
-      </FIELD>
-      <FIELD name="stackDetectRowID" arraysize="1" datatype="long" unit="dimensionless" default="NA">
-	<DESCRIPTION>Identifies if this row is the primary detection, a secondary detection, and if it is the best detection.</DESCRIPTION>
       </FIELD>
       <FIELD name="primaryDetection" arraysize="1" datatype="unsignedByte" unit="dimensionless" default="255">
@@ -3329,5 +3334,19 @@
     <!-- StackApFlxFullC6 Table ************************************************** -->
     <TABLE name="StackApFlxExGalCon6">
-      <DESCRIPTION>Contains the fluxes within the SDSS R3 (r = 1.03 arcsec), R4 (r = 1.76 arcsec), R5 (r = 3.00 arcsec), R6 (r = 4.63 arcsec), R7 (r = 7.43 arcsec), R8 (r = 11.42 arcsec), R9 (r = 18.20 arcsec), R10 (r = 28.20 arcsec), and R11 (r = 44.21 arcsec) apertures (Stoughton 2002) for extended sources after the images have been convolved to a target of 6 sky pixels (1.5 arcsec).  See StackObjectThin table for discussion of primary, secondary, and best detections.  References:  Stoughton, C., Lupton, R. H., Bernardi, M., et al. 2002, AJ, 123, 485.</DESCRIPTION>
+
+      <DESCRIPTION>Contains the fluxes within the SDSS R3 (r = 1.03
+      arcsec), R4 (r = 1.76 arcsec), R5 (r = 3.00 arcsec), R6 (r =
+      4.63 arcsec), R7 (r = 7.43 arcsec), R8 (r = 11.42 arcsec), R9 (r
+      = 18.20 arcsec), R10 (r = 28.20 arcsec), and R11 (r = 44.21
+      arcsec) apertures (Stoughton 2002) for extended sources after
+      the images have been convolved to a target of 6 sky pixels (1.5
+      arcsec).  These measurements are only provided for objects in
+      the extragalactic sky, i.e., they are not provided for objects
+      in the Galactic plane because they are not useful in crowded
+      areas.  See StackObjectThin table for discussion of primary,
+      secondary, and best detections.  References: Stoughton, C.,
+      Lupton, R. H., Bernardi, M., et al. 2002, AJ, 123,
+      485.</DESCRIPTION>
+
       <PARAM arraysize="1" datatype="char" ucd="meta.bib.author" name="Author" value="PSPS"></PARAM>
       <FIELD name="objID" arraysize="1" datatype="long" unit="dimensionless" default="NA">
@@ -3342,7 +3361,4 @@
       <FIELD name="randomStackObjID" arraysize="1" datatype="double" unit="dimensionless" default="NA">
 	<DESCRIPTION>Random value drawn from the interval between zero and one.</DESCRIPTION>
-      </FIELD>
-      <FIELD name="stackDetectRowID" arraysize="1" datatype="long" unit="dimensionless" default="NA">
-	<DESCRIPTION>Identifies if this row is the primary detection, a secondary detection, and if it is the best detection.</DESCRIPTION>
       </FIELD>
       <FIELD name="primaryDetection" arraysize="1" datatype="unsignedByte" unit="dimensionless" default="255">
@@ -3955,5 +3971,19 @@
     <!-- StackApFlxFullC8 Table ************************************************** -->
     <TABLE name="StackApFlxExGalCon8">
-      <DESCRIPTION>Contains the fluxes within the SDSS R3 (r = 1.03 arcsec), R4 (r = 1.76 arcsec), R5 (r = 3.00 arcsec), R6 (r = 4.63 arcsec), R7 (r = 7.43 arcsec), R8 (r = 11.42 arcsec), R9 (r = 18.20 arcsec), R10 (r = 28.20 arcsec), and R11 (r = 44.21 arcsec) apertures (Stoughton 2002) for extended sources after the images have been convolved to a target of 8 sky pixels (2.0 arcsec).  See StackObjectThin table for discussion of primary, secondary, and best detections.  References:  Stoughton, C., Lupton, R. H., Bernardi, M., et al. 2002, AJ, 123, 485.</DESCRIPTION>
+
+      <DESCRIPTION>Contains the fluxes within the SDSS R3 (r = 1.03
+      arcsec), R4 (r = 1.76 arcsec), R5 (r = 3.00 arcsec), R6 (r =
+      4.63 arcsec), R7 (r = 7.43 arcsec), R8 (r = 11.42 arcsec), R9 (r
+      = 18.20 arcsec), R10 (r = 28.20 arcsec), and R11 (r = 44.21
+      arcsec) apertures (Stoughton 2002) for extended sources after
+      the images have been convolved to a target of 8 sky pixels (2.0
+      arcsec).  These measurements are only provided for objects in
+      the extragalactic sky, i.e., they are not provided for objects
+      in the Galactic plane because they are not useful in crowded
+      areas.  See StackObjectThin table for discussion of primary,
+      secondary, and best detections.  References: Stoughton, C.,
+      Lupton, R. H., Bernardi, M., et al. 2002, AJ, 123,
+      485.</DESCRIPTION>
+
       <PARAM arraysize="1" datatype="char" ucd="meta.bib.author" name="Author" value="PSPS"></PARAM>
       <FIELD name="objID" arraysize="1" datatype="long" unit="dimensionless" default="NA">
@@ -3968,7 +3998,4 @@
       <FIELD name="randomStackObjID" arraysize="1" datatype="double" unit="dimensionless" default="NA">
 	<DESCRIPTION>Random value drawn from the interval between zero and one.</DESCRIPTION>
-      </FIELD>
-      <FIELD name="stackDetectRowID" arraysize="1" datatype="long" unit="dimensionless" default="NA">
-	<DESCRIPTION>Identifies if this row is the primary detection, a secondary detection, and if it is the best detection.</DESCRIPTION>
       </FIELD>
       <FIELD name="primaryDetection" arraysize="1" datatype="unsignedByte" unit="dimensionless" default="255">
@@ -4595,7 +4622,4 @@
 	<DESCRIPTION>Random value drawn from the interval between zero and one.</DESCRIPTION>
       </FIELD>
-      <FIELD name="stackDetectRowID" arraysize="1" datatype="long" unit="dimensionless" default="NA">
-	<DESCRIPTION>Identifies if this row is the primary detection, a secondary detection, and if it is the best detection.</DESCRIPTION>
-      </FIELD>
       <FIELD name="primaryDetection" arraysize="1" datatype="unsignedByte" unit="dimensionless" default="255">
         <DESCRIPTION>Identifies if this row is the primary stack detection.</DESCRIPTION>
@@ -4844,5 +4868,10 @@
     <!-- StackDetEffMeta Table ************************************************** -->
     <TABLE name="StackDetEffMeta">
-      <DESCRIPTION>Contains the detection efficiency information for a given stacked image.  Provides the number of recovered sources out of 500 and statistics about the magnitudes of the recovered sources for a range of magnitude offsets.</DESCRIPTION>
+
+      <DESCRIPTION>Contains the detection efficiency information for a
+      given stacked image.  Provides the number of recovered sources
+      out of 500 injected sources for each magnitude bin and statistics about the magnitudes of the recovered
+      sources for a range of magnitude offsets.</DESCRIPTION>
+
       <PARAM arraysize="1" datatype="char" ucd="meta.bib.author" name="Author" value="PSPS"></PARAM>
       <FIELD name="stackImageID" arraysize="1" datatype="long" unit="dimensionless" default="NA">
@@ -4851,4 +4880,7 @@
       <FIELD name="magref" arraysize="1" datatype="float" unit="magnitudes" default="NA">
         <DESCRIPTION>Detection efficiency reference magnitude.</DESCRIPTION>
+      </FIELD>
+      <FIELD name="nInjected" arraysize="1" datatype="int" unit="dimensionless" default="NA">
+        <DESCRIPTION>Number of fake sources injected in each magnitude bin.</DESCRIPTION>
       </FIELD>
       <FIELD name="offset01" arraysize="1" datatype="float" unit="magnitudes" default="NA">
