Changeset 39094 for trunk/ippToPsps/jython/stackbatch.py
- Timestamp:
- Nov 9, 2015, 5:55:53 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/stackbatch.py (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/stackbatch.py
r39072 r39094 275 275 zpImage = zp 276 276 277 detectionThreshold = detectionThreshold + zpImage -2.5 * math.log10(expTime)277 detectionThreshold = detectionThreshold + zpImage + 2.5 * math.log10(expTime) 278 278 279 279 # insert stack metadata into table … … 345 345 self.scratchDb.addRowCountColumn("StackObjectThin", "row") 346 346 self.logger.infoPair("Adding unique psps ids to", "StackObjectThin") 347 self.generate StackDetectRowIDsAndPspsUniqueIDs()347 self.generatePspsUniqueIDs() 348 348 self.logger.infoPair("Dropping row column from", "StackObjectThin table") 349 349 self.scratchDb.dropColumn("StackObjectThin", "row") … … 553 553 # self.scratchDb.createIndex(tablename, "objID") 554 554 555 # objid556 # uniquepsps id555 # objid 556 # uniquepsps id 557 557 # ippobjid 558 558 # randomstackobjid 559 # stackdetectrowid560 559 # primarydetection 561 # bestdetection560 # bestdetection 562 561 563 562 #g / r / i /z / y … … 951 950 maxRadius = 5 952 951 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 953 957 # properly -999 these to start with. the default should take 954 958 # care of this, but does not? … … 1286 1290 self.scratchDb.execute(sql) 1287 1291 1288 def generate StackDetectRowIDsAndPspsUniqueIDs(self):1292 def generatePspsUniqueIDs(self): 1289 1293 sql = "UPDATE StackObjectThin set uniquePspsSTid = (("+str(self.batchID)+"*1000000000 ) + row)" 1290 1294 self.scratchDb.execute(sql) … … 1349 1353 self.scratchDb.addColumn(table, filter + "haveData", "tinyint") 1350 1354 1351 fields = "objID, ippObjID, randomStackObjID, primaryDetection, bestDetection, uniquePspsSTID, StackDetectRowID,"1355 fields = "objID, ippObjID, randomStackObjID, primaryDetection, bestDetection, uniquePspsSTID, " 1352 1356 1353 1357 for i in range(len(self.filters)):
Note:
See TracChangeset
for help on using the changeset viewer.
