Changeset 37577 for trunk/ippToPsps/jython/objectbatch.py
- Timestamp:
- Nov 10, 2014, 3:00:51 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/objectbatch.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/objectbatch.py
r37246 r37577 336 336 sqlLine.group("ippObjID", "OBJ_ID + (CAT_ID << 32)") # NOTE: shift by 32 bits exactly 337 337 sqlLine.group("surveyID", "'" + str(self.surveyID) + "'") 338 sqlLine.group("randomID", "FLOOR(RAND( )*9223372036854775807)") # XXX where does this number come from??338 sqlLine.group("randomID", "FLOOR(RAND("+str(self.batchID)+")*9223372036854775807)") # XXX where does this number come from?? 339 339 sqlLine.group("batchID", "'" + str(self.batchID) + "'") 340 340 sqlLine.group("dvoRegionID", "CAT_ID") … … 410 410 411 411 sql = "DELETE FROM ObjectThin where \ 412 ObjectThin.decMean > " + str(decMax) + "or \413 ObjectThin.decMean < " + str(decMin) + "or \414 ObjectThin.raMean > " + str(raMax) + "or \415 ObjectThin.raMean < " + str(raMin)412 ObjectThin.decMean > (" + str(decMax) + " + .0033) or \ 413 ObjectThin.decMean < (" + str(decMin) + " - .0033) or \ 414 ObjectThin.raMean > (" + str(raMax) + " + .0033) or \ 415 ObjectThin.raMean < (" + str(raMin) + " - .0033)" 416 416 self.logger.infoPair("Deleting", str(nToDelete) + " objects outside of ra/dec range") 417 417
Note:
See TracChangeset
for help on using the changeset viewer.
