IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 9, 2015, 5:55:53 PM (11 years ago)
Author:
eugene
Message:

2.5log(exptime) should be added, not subtracted, from deteff; fix the assignment of skycell/projection/tess ID in diff and forcedwarp; get zpImage from header for Diffs (dvo does NOT calculate); apply platescale to GalShape sizes; remove StackDetectRowID

File:
1 edited

Legend:

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

    r39072 r39094  
    275275            zpImage = zp
    276276
    277         detectionThreshold = detectionThreshold + zpImage - 2.5 * math.log10(expTime)
     277        detectionThreshold = detectionThreshold + zpImage + 2.5 * math.log10(expTime)
    278278       
    279279        # insert stack metadata into table
     
    345345        self.scratchDb.addRowCountColumn("StackObjectThin", "row")
    346346        self.logger.infoPair("Adding unique psps ids to", "StackObjectThin")
    347         self.generateStackDetectRowIDsAndPspsUniqueIDs()
     347        self.generatePspsUniqueIDs()
    348348        self.logger.infoPair("Dropping row column from", "StackObjectThin table")
    349349        self.scratchDb.dropColumn("StackObjectThin", "row")
     
    553553        # self.scratchDb.createIndex(tablename, "objID")
    554554
    555         #objid
    556         #uniquepsps id
     555        # objid
     556        # uniquepsps id
    557557        # ippobjid
    558558        # randomstackobjid
    559         # stackdetectrowid
    560559        # primarydetection
    561         #bestdetection
     560        # bestdetection
    562561
    563562        #g / r / i /z / y
     
    951950            maxRadius = 5
    952951
     952        # XXX : by setting these to -999 here, the values are then
     953        # modified downstream to apply exposure time and zero point
     954        # factors (or platescale terms).  this means they will not
     955        # have the correct -999 values in the end.
     956
    953957        # properly -999 these to start with.  the default should take
    954958        # care of this, but does not?
     
    12861290        self.scratchDb.execute(sql)
    12871291
    1288     def generateStackDetectRowIDsAndPspsUniqueIDs(self):
     1292    def generatePspsUniqueIDs(self):
    12891293        sql = "UPDATE StackObjectThin set uniquePspsSTid = (("+str(self.batchID)+"*1000000000 ) + row)"
    12901294        self.scratchDb.execute(sql)
     
    13491353            self.scratchDb.addColumn(table, filter + "haveData", "tinyint")
    13501354
    1351         fields = "objID, ippObjID, randomStackObjID, primaryDetection, bestDetection, uniquePspsSTID, StackDetectRowID, "
     1355        fields = "objID, ippObjID, randomStackObjID, primaryDetection, bestDetection, uniquePspsSTID, "
    13521356
    13531357        for i in range(len(self.filters)):
Note: See TracChangeset for help on using the changeset viewer.