Index: trunk/ippToPsps/config/detection/map.xml
===================================================================
--- trunk/ippToPsps/config/detection/map.xml	(revision 31692)
+++ 	(revision )
@@ -1,181 +1,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<tabledata type="detection">
-  <table name="FrameMeta" ippfitsextension="">
-    <!--  DONE IN CODE <map pspsName="frameID" ippType="TLONG" ippName="" comment="unique exposure/frame identifier."/> -->
-    <!--  DONE IN CODE <map pspsName="frameName" ippType="TSTRING" ippName="" comment="frame name provided by camera software"/> -->
-    <!--  DONE IN CODE  <map pspsName="surveyID" ippType="TBYTE" ippName="" comment="survey flag identifier"/> -->
-    <!--  DONE IN CODE <map pspsName="filterID" ippType="TBYTE" ippName="" comment="filter identifier"/> -->
-    <!--  1? <map pspsName="cameraID" ippType="TSHORT" ippName="" comment="camera identifier"/> -->
-    <!--  1? <map pspsName="cameraConfigID" ippType="TSHORT" ippName="" comment="camera configuration identifier"/> -->
-    <!--  DONE IN CODE <map pspsName="telescopeID" ippType="TSHORT" ippName="" comment="telescope identifier"/> -->
-    <!--  **MISSING** <map pspsName="analysisVer" ippType="TSTRING" ippName="" comment="IPP software analysis release"/> -->
-    <!--  **MISSING** <map pspsName="p1Recip" ippType="TSTRING" ippName="" comment="IPP phase 1 MD5 Checksum"/> -->
-    <!--  **MISSING** <map pspsName="p2Recip" ippType="TSTRING" ippName="" comment="IPP phase 2 MD5 Checksum"/> -->
-    <!--  **MISSING** <map pspsName="p3Recip" ippType="TSTRING" ippName="" comment="IPP phase 3 MD5 Checksum"/> -->
-    <!--  DONE IN CODE <map pspsName="nOTA" ippType="TSHORT" ippName="" comment="number of valid OTA/CCD images in this exposure"/> -->
-          <map pspsName="photoScat" ippType="TFLOAT" ippName="ZPT_ERR" comment=" global photometric scatter (unit = mag)"/>
-    <!--  DONE IN CODE <map pspsName="numPhotoRef" ippType="TLONG" ippName="" comment="number of photometric reference sources"/> -->
-          <map pspsName="expStart" ippType="TDOUBLE" ippName="MJD-OBS" comment=" exposure start time in MJD (unit = day)"/>
-          <map pspsName="expTime" ippType="TFLOAT" ippName="EXPREQ" comment=" exposure time (unit = s)"/>
-          <map pspsName="airmass" ippType="TFLOAT" ippName="AIRMASS" comment="airmass at mid-exposure"/>
-          <map pspsName="raBore" ippType="TDOUBLE" ippName="RA" comment=" RA of telescope boresight (unit = deg)"/>
-          <map pspsName="decBore" ippType="TDOUBLE" ippName="DEC" comment=" DEC of telescope boresight (unit = deg)"/>
-          <map pspsName="ctype1" ippType="TSTRING" ippName="CTYPE1" comment="name of astrometric projection in RA"/> 
-          <map pspsName="ctype2" ippType="TSTRING" ippName="CTYPE2" comment="name of astrometric projection in DEC"/>
-          <map pspsName="crval1" ippType="TDOUBLE" ippName="CRVAL1" comment=" RA corresponding to reference pixel (unit = deg)"/>
-          <map pspsName="crval2" ippType="TDOUBLE" ippName="CRVAL2" comment=" DEC corresponding to reference pixel (unit = deg)"/>
-          <map pspsName="crpix1" ippType="TDOUBLE" ippName="CRPIX1" comment="reference pixel value for RA"/>
-          <map pspsName="crpix2" ippType="TDOUBLE" ippName="CRPIX2" comment="reference pixel value for DEC"/>
-          <map pspsName="cdelt1" ippType="TDOUBLE" ippName="CDELT1" comment="scale factor for RA"/> 
-          <map pspsName="cdelt2" ippType="TDOUBLE" ippName="CDELT2" comment="scale factor for DEC"/>
-          <map pspsName="pc001001" ippType="TDOUBLE" ippName="PC001001" comment="elements of rotation/Dcale matrix"/> 
-          <map pspsName="pc001002" ippType="TDOUBLE" ippName="PC001002" comment="elements of rotation/Dcale matrix"/> 
-          <map pspsName="pc002001" ippType="TDOUBLE" ippName="PC002001" comment="elements of rotation/Dcale matrix"/> 
-          <map pspsName="pc002002" ippType="TDOUBLE" ippName="PC002002" comment="elements of rotation/Dcale matrix"/> 
-          <map pspsName="polyOrder" ippType="TBYTE" ippName="NPLYTERM" comment="polynomial order of astrometry fit"/> 
-          <map pspsName="pca1x3y0" ippType="TDOUBLE" ippName="PCA1X3Y0" comment="polynomial coefficients for the astrometric fit"/> 
-          <map pspsName="pca1x2y1" ippType="TDOUBLE" ippName="PCA1X2Y1" comment="polynomial coefficients for the astrometric fit"/> 
-          <map pspsName="pca1x1y2" ippType="TDOUBLE" ippName="PCA1X1Y2" comment="polynomial coefficients for the astrometric fit"/> 
-          <map pspsName="pca1x0y3" ippType="TDOUBLE" ippName="PCA1X0Y3" comment="polynomial coefficients for the astrometric fit"/> 
-          <map pspsName="pca1x2y0" ippType="TDOUBLE" ippName="PCA1X2Y0" comment="polynomial coefficients for the astrometric fit"/> 
-          <map pspsName="pca1x1y1" ippType="TDOUBLE" ippName="PCA1X1Y1" comment="polynomial coefficients for the astrometric fit"/> 
-          <map pspsName="pca1x0y2" ippType="TDOUBLE" ippName="PCA1X0Y2" comment="polynomial coefficients for the astrometric fit"/> 
-          <map pspsName="pca2x3y0" ippType="TDOUBLE" ippName="PCA2X3Y0" comment="polynomial coefficients for the astrometric fit"/> 
-          <map pspsName="pca2x2y1" ippType="TDOUBLE" ippName="PCA2X2Y1" comment="polynomial coefficients for the astrometric fit"/> 
-          <map pspsName="pca2x1y2" ippType="TDOUBLE" ippName="PCA2X1Y2" comment="polynomial coefficients for the astrometric fit"/> 
-          <map pspsName="pca2x0y3" ippType="TDOUBLE" ippName="PCA2X0Y3" comment="polynomial coefficients for the astrometric fit"/> 
-          <map pspsName="pca2x2y0" ippType="TDOUBLE" ippName="PCA2X2Y0" comment="polynomial coefficients for the astrometric fit"/> 
-          <map pspsName="pca2x1y1" ippType="TDOUBLE" ippName="PCA2X1Y1" comment="polynomial coefficients for the astrometric fit"/> 
-          <map pspsName="pca2x0y2" ippType="TDOUBLE" ippName="PCA2X0Y2" comment="polynomial coefficients for the astrometric fit"/> 
-    <!--  **MISSING** <map pspsName="calibModNum" ippType="TSHORT" ippName="" comment="calibration modification number"/> -->
-    <!--  **MISSING** <map pspsName="dataRelease" ippType="TBYTE" ippName="" comment="Data release"/> -->
-  </table>
-  <table name="ImageMeta" ippfitsextension="">
-    <!--  DONE IN CODE <map pspsName="imageID" ippType="TLONGLONG" ippName="" comment="unique ID for each image, hashed from frameID and ccdID (ALEX)"/> -->
-    <!--  DONE IN CODE <map pspsName="frameID" ippType="TLONG" ippName="" comment="frame identifier, also known as exposure number"/> -->
-    <!--  DONE IN CODE <map pspsName="ccdID" ippType="TSHORT" ippName="" comment="ccd cell identifier in the focal plane"/> -->
-    <!--  DONE IN CODE <map pspsName="photoCalID" ippType="TLONG" ippName="" comment="photometry reduction code identifier"/> -->
-    <!--  DONE IN CODE <map pspsName="filterID" ippType="TBYTE" ippName="" comment="filter ID"/> -->
-    <!--  **MISSING** <map pspsName="bias" ippType="TFLOAT" ippName="" comment=" detector bias level (unit = ADU)"/> -->
-    <!--  **MISSING** <map pspsName="biasScat" ippType="TFLOAT" ippName="" comment=" scatter in bias level (unit = ADU)"/> -->
-          <map pspsName="sky" ippType="TFLOAT" ippName="MSKY_MN" comment=" mean sky level (unit = ADU)"/>
-          <map pspsName="skyScat" ippType="TFLOAT" ippName="MSKY_SIG" comment=" scatter in mean sky level (unit = ADU)"/>
-    <!--  DONE IN CODE <map pspsName="nDetect" ippType="TLONG" ippName="" comment="number of detections on CCD"/> -->
-          <map pspsName="magSat" ippType="TFLOAT" ippName="FSATUR" comment=" saturation magnitude level (unit = mag)"/>
-          <map pspsName="completMag" ippType="TFLOAT" ippName="FLIMIT" comment=" 95% completion level in mag (unit = mag)"/>
-          <map pspsName="astroScat" ippType="TFLOAT" ippName="CERROR" comment=" astrometric scatter for chip (unit = mag)"/>
-    <!-- DONE IN CODE <map pspsName="photoScat" ippType="TFLOAT" ippName="" comment="photometric scatter for chip"/> -->
-          <map pspsName="numAstroRef" ippType="TLONG" ippName="NASTRO" comment="number of astrometric reference sources"/>
-          <map pspsName="numPhotoRef" ippType="TLONG" ippName="NASTRO" comment="number of photometric reference sources"/>
-          <map pspsName="nx" ippType="TSHORT" ippName="CNAXIS1" comment="chip dimension in x"/>
-          <map pspsName="ny" ippType="TSHORT" ippName="CNAXIS2" comment="chip dimension in y"/>
-    <!--  **MISSING** <map pspsName="psfModelID" ippType="TLONG" ippName="" comment="PSF model identifier"/> -->
-    <!--  DONE IN CODE <map pspsName="psfFwhm" ippType="TFLOAT" ippName="" comment=" model psf full width at half maximum at chip center (unit = arcsec)"/> -->
-          <map pspsName="psfWidMajor" ippType="TFLOAT" ippName="FWHM_MAJ" comment=" model PSF parameters at chip center (unit = arcsec)"/>
-          <map pspsName="psfWidMinor" ippType="TFLOAT" ippName="FWHM_MIN" comment=" model PSF parameters at chip center (unit = arcsec)"/>
-          <map pspsName="psfTheta" ippType="TFLOAT" ippName="ANGLE" comment=" model PSF parameters at chip center (unit = deg)"/>
-    <!--  DONE IN CODE <map pspsName="momentFwhm" ippType="TFLOAT" ippName="" comment=" average PSF full width at half maximum from moments (unit = arcsec)"/> -->
-          <map pspsName="momentWidMajor" ippType="TFLOAT" ippName="IQ_FW1" comment=" average PSF parameters from moments (unit = arcsec)"/>
-          <map pspsName="momentWidMinor" ippType="TFLOAT" ippName="IQ_FW2" comment=" average PSF parameters from moments (unit = arcsec)"/>
-          <map pspsName="apResid" ippType="TFLOAT" ippName="APMIFIT" comment="corrected aperture residual"/>
-          <map pspsName="dapResid" ippType="TFLOAT" ippName="DAPMIFIT" comment="scatter of aperture corrections"/>
-          <map pspsName="detectorID" ippType="TSTRING" ippName="DETECTOR" comment="identifier for actual CCD chip"/> 
-    <!--  DONE IN CODE <map pspsName="qaFlags" ippType="TLONGLONG" ippName="" comment="Q/A flags for this OTA"/> -->
-          <map pspsName="detrend1" ippType="TSTRING" ippName="DETREND.MASK" comment="identifier of detrend image 1"/>
-          <map pspsName="detrend2" ippType="TSTRING" ippName="DETREND.DARK" comment="identifier of detrend image 2"/>
-          <map pspsName="detrend3" ippType="TSTRING" ippName="DETREND.FLAT" comment="identifier of detrend image 3"/>
-    <!--  <map pspsName="detrend4" ippType="TSTRING" ippName="DETREND.FRINGE" comment="identifier of detrend image 4"/> -->
-    <!--  **MISSING** <map pspsName="detrend5" ippType="TSTRING" ippName="" comment="identifier of detrend image 5"/> -->
-    <!--  **MISSING** <map pspsName="detrend6" ippType="TSTRING" ippName="" comment="identifier of detrend image 6"/> -->
-    <!--  **MISSING** <map pspsName="detrend7" ippType="TSTRING" ippName="" comment="identifier of detrend image 7"/> -->
-    <!--  **MISSING** <map pspsName="detrend8" ippType="TSTRING" ippName="" comment="identifier of detrend image 8"/> -->
-    <!--  DONE IN CODE <map pspsName="photoZero" ippType="TFLOAT" ippName="" comment=" local derived photometric zero point (unit = mag)"/> -->
-          <map pspsName="ctype1" ippType="TSTRING" ippName="CTYPE1" comment="name of astrometric projection in RA"/>
-          <map pspsName="ctype2" ippType="TSTRING" ippName="CTYPE2" comment="name of astrometric projection in DEC"/>
-          <map pspsName="crval1" ippType="TDOUBLE" ippName="CRVAL1" comment=" RA corresponding to reference pixel (unit = deg)"/>
-          <map pspsName="crval2" ippType="TDOUBLE" ippName="CRVAL2" comment=" DEC corresponding to reference pixel (unit = deg)"/>
-          <map pspsName="crpix1" ippType="TDOUBLE" ippName="CRPIX1" comment=" reference pixel value for RA (unit = pix)"/>
-          <map pspsName="crpix2" ippType="TDOUBLE" ippName="CRPIX2" comment=" reference pixel value for DEC (unit = pix)"/>
-          <map pspsName="cdelt1" ippType="TDOUBLE" ippName="CDELT1" comment="scale factor for RA"/>
-          <map pspsName="cdelt2" ippType="TDOUBLE" ippName="CDELT2" comment="scale factor for DEC"/>
-          <map pspsName="pc001001" ippType="TDOUBLE" ippName="PC001001" comment="elements of rotation/Dcale matrix"/>
-          <map pspsName="pc001002" ippType="TDOUBLE" ippName="PC001002" comment="elements of rotation/Dcale matrix"/>
-          <map pspsName="pc002001" ippType="TDOUBLE" ippName="PC002001" comment="elements of rotation/Dcale matrix"/>
-          <map pspsName="pc002002" ippType="TDOUBLE" ippName="PC002002" comment="elements of rotation/Dcale matrix"/>
-          <map pspsName="polyOrder" ippType="TBYTE" ippName="NPLYTERM" comment="polynomial order of astrometry fit"/>
-          <map pspsName="pca1x3y0" ippType="TDOUBLE" ippName="PCA1X3Y0" comment="polynomial coefficients for the astrometric fit"/>
-          <map pspsName="pca1x2y1" ippType="TDOUBLE" ippName="PCA1X2Y1" comment="polynomial coefficients for the astrometric fit"/>
-          <map pspsName="pca1x1y2" ippType="TDOUBLE" ippName="PCA1X1Y2" comment="polynomial coefficients for the astrometric fit"/>
-          <map pspsName="pca1x0y3" ippType="TDOUBLE" ippName="PCA1X0Y3" comment="polynomial coefficients for the astrometric fit"/>
-          <map pspsName="pca1x2y0" ippType="TDOUBLE" ippName="PCA1X2Y0" comment="polynomial coefficients for the astrometric fit"/>
-          <map pspsName="pca1x1y1" ippType="TDOUBLE" ippName="PCA1X1Y1" comment="polynomial coefficients for the astrometric fit"/>
-          <map pspsName="pca1x0y2" ippType="TDOUBLE" ippName="PCA1X0Y2" comment="polynomial coefficients for the astrometric fit"/>
-          <map pspsName="pca2x3y0" ippType="TDOUBLE" ippName="PCA2X3Y0" comment="polynomial coefficients for the astrometric fit"/>
-          <map pspsName="pca2x2y1" ippType="TDOUBLE" ippName="PCA2X2Y1" comment="polynomial coefficients for the astrometric fit"/>
-          <map pspsName="pca2x1y2" ippType="TDOUBLE" ippName="PCA2X1Y2" comment="polynomial coefficients for the astrometric fit"/>
-          <map pspsName="pca2x0y3" ippType="TDOUBLE" ippName="PCA2X0Y3" comment="polynomial coefficients for the astrometric fit"/>
-          <map pspsName="pca2x2y0" ippType="TDOUBLE" ippName="PCA2X2Y0" comment="polynomial coefficients for the astrometric fit"/>
-          <map pspsName="pca2x1y1" ippType="TDOUBLE" ippName="PCA2X1Y1" comment="polynomial coefficients for the astrometric fit"/>
-          <map pspsName="pca2x0y2" ippType="TDOUBLE" ippName="PCA2X0Y2" comment="polynomial coefficients for the astrometric fit"/>
-    <!--  **MISSING** <map pspsName="calibModNum" ippType="TSHORT" ippName="" comment="calibration modification number"/> -->
-    <!--  **MISSING** <map pspsName="dataRelease" ippType="TBYTE" ippName="" comment="Data release"/> -->
-  </table>
-  <table name="Detection" ippfitsextension="">
-    <!--  DONE IN CODE <map pspsName="objID" ippType="TLONGLONG" ippName="" comment="ODM object identifier"/> -->
-    <!--  DONE IN CODE <map pspsName="detectID" ippType="TLONGLONG" ippName="" comment="ODM detection identifier"/> -->
-    <!--  DONE IN CODE <map pspsName="ippObjID" ippType="TLONGLONG" ippName="" comment="object id generated by IPP"/> -->
-    <!--  DONE IN CODE <map pspsName="ippDetectID" ippType="TLONGLONG" ippName="" comment="detection id generated by IPP"/> -->
-    <!--  DONE IN CODE <map pspsName="filterID" ippType="TBYTE" ippName="" comment="filter ID: g=1, r=2, i=3, z=4, y=5, w=6, ..."/> -->
-    <!--  DONE IN CODE <map pspsName="surveyID" ippType="TBYTE" ippName="" comment="survey flag identifier"/> -->
-    <!--  DONE IN CODE <map pspsName="imageID" ippType="TLONGLONG" ippName="" comment="image id hash of frame identifier & OTA/CCD number"/> -->
-    <!--  DONE IN CODE <map pspsName="obsTime" ippType="TDOUBLE" ippName="" comment=" Time of mid observation (unit = day)"/> -->
-          <map pspsName="xPos" ippType="TFLOAT" ippName="X_PSF" comment=" measured x on CCD from PSF fit (unit = pix)"/> -->
-          <map pspsName="yPos" ippType="TFLOAT" ippName="Y_PSF" comment=" measured y on CCD from PSF fit (unit = pix)"/> -->
-          <map pspsName="xPosErr" ippType="TFLOAT" ippName="X_PSF_SIG" comment=" estimated error in x (unit = pix)"/> -->
-          <map pspsName="yPosErr" ippType="TFLOAT" ippName="Y_PSF_SIG" comment=" estimated error in y (unit = pix)"/> -->
-    <!--  DONE IN CODE <map pspsName="instFlux" ippType="TFLOAT" ippName="" comment=" PSF instrumental flux (unit = adu/s)"/> -->
-    <!--  DONE IN CODE<map pspsName="instFluxErr" ippType="TFLOAT" ippName="" comment=" estimated error in flux (unit = adu/s)"/> -->
-    <!--  DONE IN CODE <map pspsName="peakADU" ippType="TFLOAT" ippName="" comment=" peak count in source pixel (unit = adu)"/> -->
-          <map pspsName="psfWidMajor" ippType="TFLOAT" ippName="PSF_MAJOR" comment=" model PSF width in major axis (unit = arcsec)"/> -->
-          <map pspsName="psfWidMinor" ippType="TFLOAT" ippName="PSF_MINOR" comment=" model PSF width in minor axis (unit = arcsec)"/> -->
-          <map pspsName="psfTheta" ippType="TFLOAT" ippName="PSF_THETA" comment=" model PSF orientation angle (unit = deg)"/> -->
-    <!--  **MISSING** <map pspsName="psfLikelihood" ippType="TFLOAT" ippName="" comment="PSF likelihood"/> -->
-          <map pspsName="psfCf" ippType="TFLOAT" ippName="PSF_QF" comment="PSF coverage factor"/> -->
-          <map pspsName="momentXX" ippType="TFLOAT" ippName="MOMENTS_XX" comment=" moment XX (unit = arcsec)"/> -->
-          <map pspsName="momentXY" ippType="TFLOAT" ippName="MOMENTS_XY" comment=" moment XY (unit = arcsec)"/> -->
-          <map pspsName="momentYY" ippType="TFLOAT" ippName="MOMENTS_YY" comment=" momeny YY (unit = arcsec)"/> -->
-          <map pspsName="apMag" ippType="TFLOAT" ippName="AP_MAG" comment=" Aperture magnitude (unit = magnitude)"/> 
-    <!--  **MISSING** <map pspsName="apMagErr" ippType="TFLOAT" ippName="" comment=" Aperture magnitude error (unit = magnitude)"/> -->
-    <!--  **MISSING** <map pspsName="kronFlux" ippType="TFLOAT" ippName="" comment=" Kron flux (unit = magnitude)"/> -->
-    <!--  **MISSING** <map pspsName="kronFluxErr" ippType="TFLOAT" ippName="" comment=" Kron flux error (unit = magnitude)"/> -->
-    <!--  **MISSING** <map pspsName="kronRad" ippType="TFLOAT" ippName="" comment=" Kron radius (unit = arcsecs)"/> -->
-    <!--  **MISSING** <map pspsName="kronRadErr" ippType="TFLOAT" ippName="" comment=" Kron radius error (unit = arcsecs)"/> -->
-    <!--  **MISSING** <map pspsName="crLikelihood" ippType="TFLOAT" ippName="" comment="Likelihood the source is a cosmic ray"/> -->
-    <!--  **MISSING** <map pspsName="extendedLikelihood" ippType="TFLOAT" ippName="" comment="Likelihood the source is extended"/> -->
-    <!--  DONE IN CODE <map pspsName="infoFlag" ippType="TLONGLONG" ippName="" comment="flag indicating provenance information"/> -->
-          <map pspsName="sky" ippType="TFLOAT" ippName="SKY" comment=" PSF sky level at source (unit = adu)"/> -->
-          <map pspsName="skyErr" ippType="TFLOAT" ippName="SKY_SIGMA" comment=" estimated error in sky (unit = adu)"/> -->
-          <map pspsName="sgSep" ippType="TFLOAT" ippName="EXT_NSIGMA" comment="star/galaxy separator"/> -->
-    <!--  **MISSING** <map pspsName="activeFlag" ippType="TBYTE" ippName="" comment="indicates whether this detection/orphan is still a detection/orphan"/> -->
-    <!--  DONE IN CODE <map pspsName="assocDate" ippType="TSTRING" ippName="" comment="date object association assigned"/> -->
-    <!--  **MISSING** <map pspsName="historyModNum" ippType="TSHORT" ippName="" comment="modification number in the O-D association history"/> -->
-    <!--  **MISSING** <map pspsName="dataRelease" ippType="TBYTE" ippName="" comment="Data release when this detection was originally taken. Recalibrations do not affect this value."/> -->
-  </table>
-  <table name="SkinnyObject" ippfitsextension="">
-    <!--  DONE IN CODE <map pspsName="objID" ippType="TLONGLONG" ippName="" comment="ODM object identifier index"/> -->
-    <!--  DONE IN CODE <map pspsName="ippObjID" ippType="TLONGLONG" ippName="" comment="IPP object number"/> -->
-    <!--  **MISSING** <map pspsName="projectionCellID" ippType="TLONG" ippName="" comment="projection cell identifier at discovery time"/> -->
-    <!--  **MISSING** <map pspsName="dataRelease" ippType="TBYTE" ippName="" comment="Data release to propagate to the object"/> -->
-    <!--  DONE IN CODE <map pspsName="surveyID" ippType="TBYTE" ippName="" comment="surveyID </coluumn>"/> -->
-  </table>
-  <table name="ObjectCalColor" ippfitsextension="">
-    <!--  DONE IN CODE <map pspsName="objID" ippType="TLONGLONG" ippName="" comment="ODM object identifier"/> -->
-    <!--  DONE IN CODE <map pspsName="ippObjID" ippType="TLONGLONG" ippName="" comment="ipp object identifier"/> -->
-    <!--  DONE IN CODE <map pspsName="filterID" ippType="TBYTE" ippName="" comment="filter identifier"/> -->
-    <!--  **MISSING** <map pspsName="calColor" ippType="TFLOAT" ippName="" comment=" color adopted for magnitude calculation (unit = mag)"/> -->
-    <!--  **MISSING** <map pspsName="calColorErr" ippType="TFLOAT" ippName="" comment=" error in calibrating color (unit = mag)"/> -->
-    <!--  **MISSING** <map pspsName="calibModNum" ippType="TSHORT" ippName="" comment="calibration modification number"/> -->
-    <!--  **MISSING** <map pspsName="dataRelease" ippType="TBYTE" ippName="" comment="Data release when this color calibration was established"/> -->
-  </table>
-</tabledata>
Index: trunk/ippToPsps/config/detection/tables.xml
===================================================================
--- trunk/ippToPsps/config/detection/tables.xml	(revision 31692)
+++ 	(revision )
@@ -1,181 +1,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<tableDescriptions type="detection">
-  <table name="FrameMeta">
-    <column name="frameID" type="TLONG" default="0" comment="unique exposure/frame identifier."></column>
-    <column name="frameName" type="TSTRING" default=" " comment="frame name provided by camera software"></column>
-    <column name="surveyID" type="TBYTE" default="0" comment="survey flag identifier"></column>
-    <column name="filterID" type="TBYTE" default="0" comment="filter identifier"></column>
-    <column name="cameraID" type="TSHORT" default="0" comment="camera identifier"></column>
-    <column name="cameraConfigID" type="TSHORT" default="0" comment="camera configuration identifier"></column>
-    <column name="telescopeID" type="TSHORT" default="0" comment="telescope identifier"></column>
-    <column name="analysisVer" type="TSTRING" default=" " comment="IPP software analysis release"></column>
-    <column name="p1Recip" type="TSTRING" default=" " comment="IPP phase 1 MD5 Checksum"></column>
-    <column name="p2Recip" type="TSTRING" default=" " comment="IPP phase 2 MD5 Checksum"></column>
-    <column name="p3Recip" type="TSTRING" default=" " comment="IPP phase 3 MD5 Checksum"></column>
-    <column name="nOTA" type="TSHORT" default="-999" comment="number of valid OTA/CCD images in this exposure"></column>
-    <column name="photoScat" type="TFLOAT" default="-999" comment=" global photometric scatter (unit = mag)"></column>
-    <column name="numPhotoRef" type="TLONG" default="-999" comment="number of photometric reference sources"></column>
-    <column name="expStart" type="TDOUBLE" default="-999" comment=" exposure start time in MJD (unit = day)"></column>
-    <column name="expTime" type="TFLOAT" default="-999" comment=" exposure time (unit = s)"></column>
-    <column name="airmass" type="TFLOAT" default="-999" comment="airmass at mid-exposure"></column>
-    <column name="raBore" type="TDOUBLE" default="-999" comment=" RA of telescope boresight (unit = deg)"></column>
-    <column name="decBore" type="TDOUBLE" default="-999" comment=" DEC of telescope boresight (unit = deg)"></column>
-    <column name="ctype1" type="TSTRING" default=" " comment="name of astrometric projection in RA"></column>
-    <column name="ctype2" type="TSTRING" default=" " comment="name of astrometric projection in DEC"></column>
-    <column name="crval1" type="TDOUBLE" default="-999" comment=" RA corresponding to reference pixel (unit = deg)"></column>
-    <column name="crval2" type="TDOUBLE" default="-999" comment=" DEC corresponding to reference pixel (unit = deg)"></column>
-    <column name="crpix1" type="TDOUBLE" default="-999" comment="reference pixel value for RA"></column>
-    <column name="crpix2" type="TDOUBLE" default="-999" comment="reference pixel value for DEC"></column>
-    <column name="cdelt1" type="TDOUBLE" default="-999" comment="scale factor for RA"></column>
-    <column name="cdelt2" type="TDOUBLE" default="-999" comment="scale factor for DEC"></column>
-    <column name="pc001001" type="TDOUBLE" default="-999" comment="elements of rotation/Dcale matrix"></column>
-    <column name="pc001002" type="TDOUBLE" default="-999" comment="elements of rotation/Dcale matrix"></column>
-    <column name="pc002001" type="TDOUBLE" default="-999" comment="elements of rotation/Dcale matrix"></column>
-    <column name="pc002002" type="TDOUBLE" default="-999" comment="elements of rotation/Dcale matrix"></column>
-    <column name="polyOrder" type="TBYTE" default="255" comment="polynomial order of astrometry fit"></column>
-    <column name="pca1x3y0" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca1x2y1" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca1x1y2" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca1x0y3" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca1x2y0" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca1x1y1" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca1x0y2" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca2x3y0" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca2x2y1" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca2x1y2" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca2x0y3" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca2x2y0" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca2x1y1" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca2x0y2" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="calibModNum" type="TSHORT" default="0" comment="calibration modification number"></column>
-    <column name="dataRelease" type="TBYTE" default="0" comment="Data release"></column>
-  </table>
-  <table name="ImageMeta">
-    <column name="imageID" type="TLONGLONG" default="0" comment="unique ID for each image, hashed from frameID and ccdID (ALEX)"></column>
-    <column name="frameID" type="TLONG" default="0" comment="frame identifier, also known as exposure number"></column>
-    <column name="ccdID" type="TSHORT" default="0" comment="ccd cell identifier in the focal plane"></column>
-    <column name="photoCalID" type="TLONG" default="0" comment="photometry reduction code identifier"></column>
-    <column name="filterID" type="TBYTE" default="0" comment="filter ID"></column>
-    <column name="bias" type="TFLOAT" default="-999" comment=" detector bias level (unit = ADU)"></column>
-    <column name="biasScat" type="TFLOAT" default="-999" comment=" scatter in bias level (unit = ADU)"></column>
-    <column name="sky" type="TFLOAT" default="-999" comment=" mean sky level (unit = ADU)"></column>
-    <column name="skyScat" type="TFLOAT" default="-999" comment=" scatter in mean sky level (unit = ADU)"></column>
-    <column name="nDetect" type="TLONG" default="-999" comment="number of detections on CCD"></column>
-    <column name="magSat" type="TFLOAT" default="-999" comment=" saturation magnitude level (unit = mag)"></column>
-    <column name="completMag" type="TFLOAT" default="-999" comment=" 95% completion level in mag (unit = mag)"></column>
-    <column name="astroScat" type="TFLOAT" default="-999" comment=" astrometric scatter for chip (unit = mag)"></column>
-    <column name="photoScat" type="TFLOAT" default="-999" comment="photometric scatter for chip"></column>
-    <column name="numAstroRef" type="TLONG" default="-999" comment="number of astrometric reference sources"></column>
-    <column name="numPhotoRef" type="TLONG" default="-999" comment="number of photometric reference sources"></column>
-    <column name="nx" type="TSHORT" default="-999" comment="chip dimension in x"></column>
-    <column name="ny" type="TSHORT" default="-999" comment="chip dimension in y"></column>
-    <column name="psfModelID" type="TLONG" default="-999" comment="PSF model identifier"></column>
-    <column name="psfFwhm" type="TFLOAT" default="-999" comment=" model psf full width at half maximum at chip center (unit = arcsec)"></column>
-    <column name="psfWidMajor" type="TFLOAT" default="-999" comment=" model PSF parameters at chip center (unit = arcsec)"></column>
-    <column name="psfWidMinor" type="TFLOAT" default="-999" comment=" model PSF parameters at chip center (unit = arcsec)"></column>
-    <column name="psfTheta" type="TFLOAT" default="-999" comment=" model PSF parameters at chip center (unit = deg)"></column>
-    <column name="momentFwhm" type="TFLOAT" default="-999" comment=" average PSF full width at half maximum from moments (unit = arcsec)"></column>
-    <column name="momentWidMajor" type="TFLOAT" default="-999" comment=" average PSF parameters from moments (unit = arcsec)"></column>
-    <column name="momentWidMinor" type="TFLOAT" default="-999" comment=" average PSF parameters from moments (unit = arcsec)"></column>
-    <column name="apResid" type="TFLOAT" default="-999" comment="corrected aperture residual"></column>
-    <column name="dapResid" type="TFLOAT" default="-999" comment="scatter of aperture corrections"></column>
-    <column name="detectorID" type="TSTRING" default=" " comment="identifier for actual CCD chip"></column>
-    <column name="qaFlags" type="TLONGLONG" default="-999" comment="Q/A flags for this OTA"></column>
-    <column name="detrend1" type="TSTRING" default=" " comment="identifier of detrend image 1"></column>
-    <column name="detrend2" type="TSTRING" default=" " comment="identifier of detrend image 2"></column>
-    <column name="detrend3" type="TSTRING" default=" " comment="identifier of detrend image 3"></column>
-    <column name="detrend4" type="TSTRING" default=" " comment="identifier of detrend image 4"></column>
-    <column name="detrend5" type="TSTRING" default=" " comment="identifier of detrend image 5"></column>
-    <column name="detrend6" type="TSTRING" default=" " comment="identifier of detrend image 6"></column>
-    <column name="detrend7" type="TSTRING" default=" " comment="identifier of detrend image 7"></column>
-    <column name="detrend8" type="TSTRING" default=" " comment="identifier of detrend image 8"></column>
-    <column name="photoZero" type="TFLOAT" default="-999" comment=" local derived photometric zero point (unit = mag)"></column>
-    <column name="ctype1" type="TSTRING" default=" " comment="name of astrometric projection in RA"></column>
-    <column name="ctype2" type="TSTRING" default=" " comment="name of astrometric projection in DEC"></column>
-    <column name="crval1" type="TDOUBLE" default="-999" comment=" RA corresponding to reference pixel (unit = deg)"></column>
-    <column name="crval2" type="TDOUBLE" default="-999" comment=" DEC corresponding to reference pixel (unit = deg)"></column>
-    <column name="crpix1" type="TDOUBLE" default="-999" comment=" reference pixel value for RA (unit = pix)"></column>
-    <column name="crpix2" type="TDOUBLE" default="-999" comment=" reference pixel value for DEC (unit = pix)"></column>
-    <column name="cdelt1" type="TDOUBLE" default="-999" comment="scale factor for RA"></column>
-    <column name="cdelt2" type="TDOUBLE" default="-999" comment="scale factor for DEC"></column>
-    <column name="pc001001" type="TDOUBLE" default="-999" comment="elements of rotation/Dcale matrix"></column>
-    <column name="pc001002" type="TDOUBLE" default="-999" comment="elements of rotation/Dcale matrix"></column>
-    <column name="pc002001" type="TDOUBLE" default="-999" comment="elements of rotation/Dcale matrix"></column>
-    <column name="pc002002" type="TDOUBLE" default="-999" comment="elements of rotation/Dcale matrix"></column>
-    <column name="polyOrder" type="TBYTE" default="255" comment="polynomial order of astrometry fit"></column>
-    <column name="pca1x3y0" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca1x2y1" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca1x1y2" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca1x0y3" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca1x2y0" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca1x1y1" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca1x0y2" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca2x3y0" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca2x2y1" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca2x1y2" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca2x0y3" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca2x2y0" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca2x1y1" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="pca2x0y2" type="TDOUBLE" default="-999" comment="polynomial coefficients for the astrometric fit"></column>
-    <column name="calibModNum" type="TSHORT" default="0" comment="calibration modification number"></column>
-    <column name="dataRelease" type="TBYTE" default="0" comment="Data release"></column>
-  </table>
-  <table name="Detection">
-    <column name="objID" type="TLONGLONG" default="0" comment="ODM object identifier"></column>
-    <column name="detectID" type="TLONGLONG" default="0" comment="ODM detection identifier"></column>
-    <column name="ippObjID" type="TLONGLONG" default="0" comment="object id generated by IPP"></column>
-    <column name="ippDetectID" type="TLONGLONG" default="0" comment="detection id generated by IPP"></column>
-    <column name="filterID" type="TBYTE" default="0" comment="filter ID: g=1, r=2, i=3, z=4, y=5, w=6, ..."></column>
-    <column name="surveyID" type="TBYTE" default="0" comment="survey flag identifier"></column>
-    <column name="imageID" type="TLONGLONG" default="0" comment="image id hash of frame identifier &amp; OTA/CCD number"></column>
-    <column name="obsTime" type="TDOUBLE" default="-999" comment=" Time of mid observation (unit = day)"></column>
-    <column name="xPos" type="TFLOAT" default="-999" comment=" measured x on CCD from PSF fit (unit = pix)"></column>
-    <column name="yPos" type="TFLOAT" default="-999" comment=" measured y on CCD from PSF fit (unit = pix)"></column>
-    <column name="xPosErr" type="TFLOAT" default="-999" comment=" estimated error in x (unit = pix)"></column>
-    <column name="yPosErr" type="TFLOAT" default="-999" comment=" estimated error in y (unit = pix)"></column>
-    <column name="instFlux" type="TFLOAT" default="-999" comment=" PSF instrumental flux (unit = adu/s)"></column>
-    <column name="instFluxErr" type="TFLOAT" default="-999" comment=" estimated error in flux (unit = adu/s)"></column>
-    <column name="peakADU" type="TFLOAT" default="-999" comment=" peak count in source pixel (unit = adu)"></column>
-    <column name="psfWidMajor" type="TFLOAT" default="-999" comment=" model PSF width in major axis (unit = arcsec)"></column>
-    <column name="psfWidMinor" type="TFLOAT" default="-999" comment=" model PSF width in minor axis (unit = arcsec)"></column>
-    <column name="psfTheta" type="TFLOAT" default="-999" comment=" model PSF orientation angle (unit = deg)"></column>
-    <column name="psfLikelihood" type="TFLOAT" default="-999" comment="PSF likelihood"></column>
-    <column name="psfCf" type="TFLOAT" default="-999" comment="PSF coverage factor"></column>
-    <column name="momentXX" type="TFLOAT" default="-999" comment=" moment XX (unit = arcsec)"></column>
-    <column name="momentXY" type="TFLOAT" default="-999" comment=" moment XY (unit = arcsec)"></column>
-    <column name="momentYY" type="TFLOAT" default="-999" comment=" momeny YY (unit = arcsec)"></column>
-    <column name="apMag" type="TFLOAT" default="-999" comment=" Aperture magnitude (unit = magnitude)"></column>
-    <column name="apMagErr" type="TFLOAT" default="-999" comment=" Aperture magnitude error (unit = magnitude)"></column>
-    <column name="kronFlux" type="TFLOAT" default="-999" comment=" Kron flux (unit = magnitude)"></column>
-    <column name="kronFluxErr" type="TFLOAT" default="-999" comment=" Kron flux error (unit = magnitude)"></column>
-    <column name="kronRad" type="TFLOAT" default="-999" comment=" Kron radius (unit = arcsecs)"></column>
-    <column name="kronRadErr" type="TFLOAT" default="-999" comment=" Kron radius error (unit = arcsecs)"></column>
-    <column name="crLikelihood" type="TFLOAT" default="-999" comment="Likelihood the source is a cosmic ray"></column>
-    <column name="extendedLikelihood" type="TFLOAT" default="-999" comment="Likelihood the source is extended"></column>
-    <column name="infoFlag" type="TLONGLONG" default="-999" comment="flag indicating provenance information"></column>
-    <column name="sky" type="TFLOAT" default="-999" comment=" PSF sky level at source (unit = adu)"></column>
-    <column name="skyErr" type="TFLOAT" default="-999" comment=" estimated error in sky (unit = adu)"></column>
-    <column name="sgSep" type="TFLOAT" default="-999" comment="star/galaxy separator"></column>
-    <column name="activeFlag" type="TBYTE" default="-999" comment="indicates whether this detection/orphan is still a detection/orphan"></column>
-    <column name="assocDate" type="TSTRING" default="28881231" comment="date object association assigned"></column>
-    <column name="historyModNum" type="TSHORT" default="0" comment="modification number in the O-D association history"></column>
-    <column name="dataRelease" type="TBYTE" default="0" comment="Data release when this detection was originally taken. Recalibrations do not affect this value."></column>
-  </table>
-  <table name="SkinnyObject">
-    <column name="objID" type="TLONGLONG" default="0" comment="ODM object identifier index"></column>
-    <column name="ippObjID" type="TLONGLONG" default="0" comment="IPP object number"></column>
-    <column name="projectionCellID" type="TLONG" default="-999" comment="projection cell identifier at discovery time"></column>
-    <column name="dataRelease" type="TBYTE" default="0" comment="Data release to propagate to the object"></column>
-    <column name="surveyID" type="TBYTE" default="255" comment="surveyID &lt;/coluumn&gt;"></column>
-  </table>
-  <table name="ObjectCalColor">
-    <column name="objID" type="TLONGLONG" default="0" comment="ODM object identifier"></column>
-    <column name="ippObjID" type="TLONGLONG" default="0" comment="ipp object identifier"></column>
-    <column name="filterID" type="TBYTE" default="0" comment="filter identifier"></column>
-    <column name="calColor" type="TFLOAT" default="0" comment=" color adopted for magnitude calculation (unit = mag)"></column>
-    <column name="calColorErr" type="TFLOAT" default="0" comment=" error in calibrating color (unit = mag)"></column>
-    <column name="calibModNum" type="TSHORT" default="0" comment="calibration modification number"></column>
-    <column name="dataRelease" type="TBYTE" default="0" comment="Data release when this color calibration was established"></column>
-  </table>
-</tableDescriptions>
