IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 18, 2015, 9:55:43 PM (11 years ago)
Author:
heather
Message:

SAS39 final tweaks (added infoFlag3)

File:
1 edited

Legend:

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

    r38397 r38602  
    163163     
    164164       # make some generic tables
    165            sql = "CREATE TABLE DiffMeta_"+str(num)+" like DiffMeta"
    166            try: self.scratchDb.execute(sql)
    167            except: raise
    168            sql = "CREATE TABLE DiffToImage_"+str(num)+" like DiffToImage"
    169            try: self.scratchDb.execute(sql)
    170            except: raise
    171            sql = "CREATE TABLE DiffDetection_"+str(num)+" like DiffDetection"
    172            try: self.scratchDb.execute(sql)
    173            except: raise
     165           #sql = "CREATE TABLE DiffMeta_"+str(num)+" like DiffMeta"
     166           #try: self.scratchDb.execute(sql)
     167           #except: raise
     168           #sql = "CREATE TABLE DiffToImage_"+str(num)+" like DiffToImage"
     169           #try: self.scratchDb.execute(sql)
     170           #except: raise
     171           #sql = "CREATE TABLE DiffDetection_"+str(num)+" like DiffDetection"
     172           #try: self.scratchDb.execute(sql)
     173           #except: raise
    174174
    175175
     
    199199        diffSkyFileID = self.number[num]
    200200        self.logger.infoPair("Proccesing table", "DiffMeta_"+str(num))
     201
     202        sql = "CREATE TABLE DiffMeta_"+str(num)+" like DiffMeta"
     203        try: self.scratchDb.execute(sql)
     204        except: raise
    201205
    202206        sqlLine = sqlUtility("INSERT INTO DiffMeta_"+str(num)+" (")
     
    246250        ippTableName =  "SkyChip_psf_"+str(num)
    247251        diffSkyFileID = self.number[num]
     252        sql = "CREATE TABLE DiffDetection_"+str(num)+" like DiffDetection"
     253        try: self.scratchDb.execute(sql)
     254        except: raise
    248255        #results['ORIGINALTOTAL'] = self.scratchDb.getRowCount(ippTableName)
    249256
     
    405412        self.logger.infoPair("Procesing table", "DiffToImage")
    406413
     414        sql = "CREATE TABLE DiffToImage_"+str(num)+" like DiffToImage"
     415        try: self.scratchDb.execute(sql)
     416        except: raise
     417        #sql = "CREATE TABLE DiffDetection_"+str(num)+" like DiffDetection"
     418        #try: self.scratchDb.execute(sql)
     419        #except: raise
    407420        imageIDs = self.gpc1Db.getImageIDsForThisDiffID(int(diffSkyFileID))
    408421
     
    481494               a.airmass      = b.airmass, \
    482495               a.expTime      = b.expTime, \
    483                a.infoFlag2    = (b.flags << 13) | a.infoFlag2 \
     496               a.infoFlag3    = b.flags \
    484497               WHERE a.ippDetectID = b.ippDetectID \
    485498               AND b.imageID = " + str(imageID)
Note: See TracChangeset for help on using the changeset viewer.