IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 21, 2015, 11:54:38 AM (11 years ago)
Author:
heather
Message:

various changes, mostly related to changing dataRelease to processingVersion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/jython/stackbatch.py

    r38602 r38763  
    252252        sqlLine.group("skyCellID",     str(self.skycellID))           
    253253        sqlLine.group("photoCalID",    photoCalID)
    254         sqlLine.group("analysisVer",   str(self.analysisVer))
     254        sqlLine.group("analysisVer",   str(self.analysisVer))
     255        sqlLine.group("completMag",       self.getKeyFloat(header, "%.8f", 'FLIMIT'))
    255256        sqlLine.group("expTime",       self.getKeyFloat(header, "%.5f", 'EXPTIME')) 
    256257        sqlLine.group("psfModelID",    psfmodel)           
     
    270271        sqlLine.group("pc002001",      self.getKeyFloat(header, "%.8e", 'PC002001'))
    271272        sqlLine.group("pc002002",      self.getKeyFloat(header, "%.8e", 'PC002002'))
    272         sqlLine.group("dataRelease",   str(self.skychunk.dataRelease))
     273        sqlLine.group("processingVersion",   str(self.skychunk.processingVersion))
    273274
    274275        sql = sqlLine.make(") VALUES ( ", ")")
     
    288289        self.logger.infoPair("Procesing table", "StackObjectThin")
    289290
    290         # insert the per-object data (IDs, random stack ID, dataRelease, etc)
     291        # insert the per-object data (IDs, random stack ID, processingVersion, etc)
    291292        self.selectDvoObjIDs()
    292293
     
    363364#            sqlLine.group("a."+filter+"skyErr",        "b.SKY_SIGMA / " + str(exptime))
    364365            sqlLine.group("a."+filter+"infoFlag",      "b.FLAGS")
    365             sqlLine.group("a."+filter+"infoFlag2",     "b.FLAGS2 | a."+filter+"infoFlag2")
     366            sqlLine.group("a."+filter+"infoFlag2",     "b.FLAGS2")
    366367            sqlLine.group("a."+filter+"nFrames",       "b.N_FRAMES")
    367368
     
    10661067    '''
    10671068    select objID (psps object ID) from dvo restricted to this set of imageIDs. also insert
    1068     ippObjID and several constants (for a skycell): surveyID, skyCellId, dataRelease
     1069    ippObjID and several constants (for a skycell): surveyID, skyCellId, processingVersion
    10691070    '''
    10701071    def selectDvoObjIDs(self):
     
    10851086 #       sqlLine.group("projectionID",     "'" + str(self.projectionID) + "'")
    10861087 #       sqlLine.group("skyCellID",        "'" + str(self.skycellID) + "'")
    1087  #       sqlLine.group("dataRelease",      "'" + str(self.skychunk.dataRelease) + "'")
     1088 #       sqlLine.group("processingVersion",      "'" + str(self.skychunk.processingVersion) + "'")
    10881089   #     sqlLine.group("randomStackObjID", "FLOOR(RAND()*9223372036854775807)")
    10891090
     
    11221123              , projectionID = '" + str(self.projectionID) + "'\
    11231124              , skycellID = '" + str(self.skycellID) + "'\
    1124               , dataRelease = '" + str(self.skychunk.dataRelease)  +"'"
     1125              , processingVersion = '" + str(self.skychunk.processingVersion)  +"'"
    11251126             
    11261127        try: self.scratchDb.execute(sql)
Note: See TracChangeset for help on using the changeset viewer.