IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 6, 2012, 3:19:54 PM (14 years ago)
Author:
heather
Message:

current working ipptopsps - has too much info/debug/print stuff and also funny out of range number hack

File:
1 edited

Legend:

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

    r34640 r34661  
    7575       self.skycell = self.skycell[8:12]
    7676       self.projectioncell = self.skycell
     77
     78       # proposed new values. Need to coordinate with the SkyCell table
     79       # this fits in 32 bits for 0 < tessID < 214
     80       # self.skycell = str( (tessID * (10000 * 1000)) + (int(self.projectioncell) * 1000) + cellID )
    7781
    7882       self.analysisVer = meta[2];
     
    611615               ,surveyID \
    612616               FROM StackDetection"
    613         self.logger.info(sql)
    614617        self.scratchDb.execute(sql)
    615618        # insert calibration information from dvoDetections into the Table
     
    623626            a.expTime = b.expTime, \
    624627            a.airMass = b.airMass   \
    625             WHERE a.objID = b.objID AND a.ippDetectID = b.ippDetectID"
    626         # XXXX: this qualifier assumes that there is only one stack being processed at a time
    627         self.logger.info(sql)
     628            WHERE a.stackDetectID = b.detectID"
    628629        self.scratchDb.execute(sql)
    629630        self.scratchDb.updateAllRows(tableName, "dataRelease", str(self.config.dataRelease))
     
    669670        self.scratchDb.execute("ALTER TABLE StackDetectionCalib CHANGE dec_ `dec` double")
    670671
    671 
    672 
    673672        return True
    674673
     
    696695        sql = "UPDATE " + table + " AS a, " + self.scratchDb.dvoDetectionTable + " AS b SET \
    697696               a.ippObjID = b.ippObjID, \
    698                a.stackDetectID = 10 * b.detectID + " + str(self.filterID) + ", \
     697               a.stackDetectID = b.detectID, \
    699698               a.objID = b.objID \
    700699               WHERE a.ippDetectID = b.ippDetectID \
     
    712711        sql = "UPDATE " + table + " AS a, " + self.scratchDb.dvoDetectionTable + " AS b SET \
    713712               a.ippObjID = b.ippObjID, \
    714                a.stackDetectID = 10 * b.detectID + " + str(self.filterID) + ", \
     713               a.stackDetectID = b.detectID, \
    715714               a.objID = b.objID, \
    716715               a.infoFlag = b.flags << 45 | a.infoFlag \
Note: See TracChangeset for help on using the changeset viewer.