# Note zpFactor = 3630.78*pow(10, -0.4*zp)

objID
uniquePspsP2id
detectID
ippObjID
ippDetectID     IPP_IDET
filterID
surveyID
imageID
randomDetID
dvoRegionID
obsTime
xPos            X_PSF
yPos            Y_PSF
xPosErr         X_PSF_SIG
yPosErr         Y_PSF_SIG
pltScale        PLTSCALE
posAngle        POSANGLE
ra
dec
raErr           X_PSF_SIG               *abs(PLTSCALE)
decErr          Y_PSF_SIG               *abs(PLTSCALE)
extNSigma       EXT_NSIGMA
zp
telluricExt
expTime
airMass
psfFlux         PSF_INST_FLUX 		*zpFactor/expTime
psfFluxErr      PSF_INST_FLUX_SIG	*zpFactor/expTime
psfMajorFWHM    PSF_FWHM_MAJ            *abs(PLTSCALE)
psfMinorFWHM    PSF_FWHM_MIN            *abs(PLTSCALE)
psfTheta        PSF_THETA
psfCore         PSF_CORE
psfQf           PSF_QF
psfQfPerfect    PSF_QF_PERFECT
psfChiSq        PSF_CHISQ
psfLikelihood                                                 # actually psfLikelihood(EXT_NSIGMA). We assume the formula is ok.
momentXX        MOMENTS_XX		*PLTSCALE*PLTSCALE
momentXY        MOMENTS_XY		*PLTSCALE*PLTSCALE
momentYY        MOMENTS_YY		*PLTSCALE*PLTSCALE
momentR1        MOMENTS_R1              *abs(PLTSCALE)
momentRH        MOMENTS_RH              *sqrt(abs(PLTSCALE))
momentM3C       MOMENTS_M3C		*PLTSCALE*PLTSCALE
momentM3S       MOMENTS_M3S		*PLTSCALE*PLTSCALE
momentM4C       MOMENTS_M4C		*PLTSCALE*PLTSCALE
momentM4S       MOMENTS_M4S		*PLTSCALE*PLTSCALE
apFlux          AP_FLUX		        *zpFactor/expTime
apFluxErr       AP_FLUX_SIG		*zpFactor/expTime
apFillF         AP_NPIX                 /(3.14159265359*pow(AP_MAG_RADIUS-0.5,2))
apRadius        AP_MAG_RADIUS           *abs(PLTSCALE)
kronFlux        KRON_FLUX		*zpFactor/expTime
kronFluxErr     KRON_FLUX_ERR		*zpFactor/expTime
kronRad         MOMENTS_R1              *2.5*abs(PLTSCALE)
sky             SKY                     /PLTSCALE/PLTSCALE*zpFactor/expTime
skyErr          SKY_SIGMA               /PLTSCALE/PLTSCALE*zpFactor/expTime
infoFlag        FLAGS
infoFlag2       FLAGS2
infoFlag3
processingVersion

