Changeset 39097 for trunk/ippToPsps/jython/detectionbatch.py
- Timestamp:
- Nov 10, 2015, 3:09:38 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/detectionbatch.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/detectionbatch.py
r39094 r39097 372 372 sqlLine = sqlUtility("INSERT INTO " + tableName + "(") 373 373 374 nInjected = int(self.getKeyInt(header, 0, 'DETEFF.NUM')) 375 detectionThreshold = self.getKeyFloat(header, "%.8f", 'DETEFF.MAGREF') 376 expTime = self.getKeyFloat(header, "%.8f", 'EXPTIME') 377 zp = self.getKeyFloat(header, "%.8f", 'ZPT_OBS') 378 379 zpImage = self.scratchDb.getImageZeroPoint(self.imageIDs[ota]) 380 381 # XXX zp correction should come from DVO 382 detectionThreshold = detectionThreshold + zpImage + 2.5 * math.log10(expTime) 383 384 374 385 sqlLine.group("frameID", str(self.expID)) 375 sqlLine.group("magref", self.getKeyFloat(header,"%.8f","DETEFF.MAGREF")) 386 sqlLine.group("magref", detectionThreshold) 387 sqlLine.group("nInjected", nInjected) 376 388 sql = sqlLine.make(") VALUES ( ", ")") 377 389 … … 1063 1075 ## regex only works for -stilts import 1064 1076 regex = ".*" 1065 1077 1066 1078 ## for a quick test, just do the first chip: 1067 1079 if self.config.test and self.config.camera == "gpc1":
Note:
See TracChangeset
for help on using the changeset viewer.
