- Timestamp:
- Nov 10, 2015, 3:29:51 PM (11 years ago)
- Location:
- trunk/ippToPsps/jython
- Files:
-
- 2 edited
-
objectbatch.py (modified) (1 diff)
-
stackbatch.py (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/objectbatch.py
r39075 r39099 428 428 sqlLine.group("raMean", "RA_MEAN") 429 429 sqlLine.group("decMean", "DEC_MEAN") 430 sqlLine.group("epochMean", "EPOCH_MEAN") 430 431 sqlLine.group("raMeanErr", "RA_ERR") 431 432 sqlLine.group("decMeanErr", "DEC_ERR") -
trunk/ippToPsps/jython/stackbatch.py
r39097 r39099 64 64 self.headerSet = {} 65 65 self.md5sum = {} 66 self.stackEpochs = {} 66 67 67 68 # we have two sets of imageIDs here: … … 113 114 self.logger.infoPair(filter + " imageID = ", imageID) 114 115 self.imageIDs[filter] = imageID 116 117 self.stackEpochs[filter] = self.getKeyFloat(header, "%.10f", 'MJD-OBS') 115 118 116 119 ## MEH -- md5sum test … … 374 377 self.logger.infoPair("selecting imageID", imageID) 375 378 379 stackEpoch = self.stackEpochs[filter] 380 376 381 # at this point, the StackObjectThin table includes objID and ippObjID 377 382 … … 390 395 sqlLine.group("a."+filter+"ra", "b.ra") 391 396 sqlLine.group("a."+filter+"dec", "b.dec_") 397 398 sqlLine.group("a."+filter+"Epoch", str(stackEpoch)) 392 399 393 400 sqlLine.group("a."+filter+"PSFMag", "b.Mpsf") … … 1351 1358 sql = "insert into StackObjectThin (objID, ippDetectID, ippObjID) select distinct objID, ippDetectID, ippObjID from dvoDetectionFull " + whereClause; 1352 1359 1360 self.logger.debugPair("sql 1", sql) 1353 1361 self.scratchDb.execute(sql) 1354 1362 … … 1361 1369 , processingVersion = '" + str(self.skychunk.processingVersion) +"'" 1362 1370 1371 self.logger.debugPair("sql 2", sql) 1363 1372 self.scratchDb.execute(sql) 1364 1373 … … 1366 1375 1367 1376 for filter in self.filters: 1368 sql = "update StackObjectThin join "+self.scratchDb.dvoDetectionTable +" using (objID, ippDetectID) set "+filter+"ippDetectID = ippDetectID \ 1377 if self.stackIDs[filter] <= 0: continue # stackIDs[filter] not set if we do not have the data 1378 1379 imageID = self.imageIDs[filter] 1380 1381 sql = "update StackObjectThin join "+self.scratchDb.dvoDetectionTable +" using (objID, ippObjID, ippDetectID) set "+filter+"ippDetectID = ippDetectID \ 1369 1382 where " + self.scratchDb.dvoDetectionTable + ".imageID = " + str(imageID) 1383 1384 self.logger.debugPair("sql f", sql) 1370 1385 self.scratchDb.execute(sql) 1371 1386
Note:
See TracChangeset
for help on using the changeset viewer.
