		  
-- fields marked with + below have been verified by EAM in the ippToPsps output mysql tables

objID              + dvo = average.extID   [calculated in addstar]
ippObjID           + dvo = average.objID + (average.catID << 32) [NOTE: this is a change in definition]
surveyID           + ipptopsps : internal, from survey name
tessID             + smf : TESS_ID (table mapping)
projectionID       + smf : parse SKYCELL (skycell.NNN or skycell.MMMM.NNN)
skycellID          + smf : parse SKYCELL (skycell.NNN or skycell.MMMM.NNN)
randomStackObjID   + ipptopsps (RANDOM on sql into mysql)
stackDetectRowID   - set by PSPS
primaryDetection   + (dvo:measure.dbFlags >> 16)
bestDetection      - dvo * THIS CANNOT BE SET UNTIL LATER (after PV3 initial ingest to psps)
                    
dvoRegionID        + dvo = measure.catID
dataRelease        + ippToPsps : user input (skychunk.dataRelease)
--
--
--
--
gippDetectID       + dvopsps.ippDetectID = dvo:measure.detID = smf / IPP_IDET
gstackDetectID     + dvopsps.detectID = dvo:measure.extID [calculated in addstar: psps stack detect ID]
gstackMetaID       + ipptopsps : gpc1 db, matches cmf IMAGEID
--
gra                + dvo = measure.ra
gdec               + dvo = measure.dec
graErr             + dvo = X_PSF_SIG * PLTSCALE
gdecErr            + dvo = X_PSF_SIG * PLTSCALE
gPSFMag      	   + dvo = measure.Mpsf
gPSFMagErr   	   + dvo = measure.dMpsf
gApMag       	   + dvo = measure.Map
gApMagErr    	   + dvo = measure.dMap
gKronMag     	   + dvo = measure.Mkron
gKronMagErr  	   + dvo = measure.dMkron
gsky               + smf : SKY / exptime
gskyErr            + smf : SKY_SIGMA / exptime
ginfoFlag          + smf : FLAGS
ginfoFlag2         - smf + dvo : FLAGS2 | measure.flags << 13 *** we only include measure.dbflags, not secfilt.flags
gnFrames           + smf : N_FRAMES
