IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 7, 2014, 2:27:23 PM (12 years ago)
Author:
eugene
Message:

only select Chip detections for simtest camera; only use XYnn for gpc1; fix insert for objects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140717/ippToPsps/jython/objectbatch.py

    r37175 r37204  
    326326        # sqlLine.group("gcobjID",       "EXT_ID_GC")  # drop this one?
    327327        sqlLine.group("ippObjID",        "OBJ_ID + (CAT_ID << 32)") # NOTE: shift by 32 bits exactly
    328         sqlLine.group("surveyID",        str(self.surveyID))
    329         sqlLine.group("skyCellID",       "-999") # XXX This does not make sense
     328        sqlLine.group("surveyID",        "'" + str(self.surveyID) + "'")
     329        sqlLine.group("skyCellID",       "'-999'") # XXX This does not make sense
    330330        sqlLine.group("randomID",        "FLOOR(RAND()*9223372036854775807)") # XXX where does this number come from??
    331         sqlLine.group("batchID",         str(self.batchID))
     331        sqlLine.group("batchID",         "'" + str(self.batchID) + "'")
    332332        sqlLine.group("dvoRegionID",     "DVO_REGION") # XXX add to dvopsps output for cpt
    333         sqlLine.group("dataRelease",     str(self.skychunk.dataRelease))
     333        sqlLine.group("dataRelease",     "'" + str(self.skychunk.dataRelease) + "'")
    334334        sqlLine.group("objInfoFlag",     "FLAGS")
    335335        sqlLine.group("qualityFlag",     "FLAGS >> 24 & 0xFF")
    336         sqlLine.group("consistencyFlag", "0")
     336        sqlLine.group("consistencyFlag", "'0'")
    337337        sqlLine.group("raStack",         "RA_STK")
    338338        sqlLine.group("decStack",        "DEC_STK")
     
    343343        sqlLine.group("raMeanErr",       "RA_ERR")
    344344        sqlLine.group("decMeanErr",      "DEC_ERR")
    345         sqlLine.group("raMeanStd",       "-999") # XXX I do not calculate this, use chisq?
    346         sqlLine.group("decMeanStd",      "-999")
    347         sqlLine.group("nStackObjectRows", "0") # XXX I need to add / define this in dvopsps
    348         sqlLine.group("nStackDetections", "0")
    349         sqlLine.group("nDetections",      "0")
    350         sql = sqlLine.make(") SELECT ", " FROM " + cptTableName)
     345        sqlLine.group("raMeanStd",       "'-999'") # XXX I do not calculate this, use chisq?
     346        sqlLine.group("decMeanStd",      "'-999'")
     347        sqlLine.group("nStackObjectRows", "'0'") # XXX I need to add / define this in dvopsps
     348        sqlLine.group("nStackDetections", "'0'")
     349        sqlLine.group("nDetections",      "'0'")
     350        sql = sqlLine.makeRaw(") SELECT ", " FROM " + cptTableName)
    351351
    352352        try:
Note: See TracChangeset for help on using the changeset viewer.