Changeset 33527
- Timestamp:
- Mar 15, 2012, 11:45:05 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/gpc1db.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/gpc1db.py
r33516 r33527 41 41 ''' 42 42 Gets a list of ids, ra and dec in this DVO database for this stage, could be cam or staticsky, and a box can be defined with equatorial coordinates 43 NB this uses Bill's potentially temporary 'skycells' database when finding RA/Dec for stacks. 43 44 ''' 44 45 def getItemsInThisDVODbForThisStage(self, dvoDb, batchType, minRA=-999, maxRA=999, minDec=-999, maxDec=999): … … 72 73 73 74 stage = "staticsky_multi" 74 # no way to get RA/Decl for stacks, so default to provided min RA/Dec 75 sql = "SELECT DISTINCT stack_id, " + str(minRA) + ", " + str(minDec) + " FROM staticskyInput \ 75 sql = "SELECT DISTINCT stack_id, ra, decl FROM staticskyInput \ 76 76 JOIN addRun ON(staticskyInput.sky_id = addRun.stage_id) \ 77 77 JOIN minidvodbRun USING(minidvodb_name) \ 78 78 JOIN minidvodbProcessed USING(minidvodb_id) \ 79 JOIN stackRun USING(stack_id) JOIN skycells.skycell USING(skycell_id) \ 79 80 WHERE minidvodbRun.minidvodb_group = '" + dvoDb + "' \ 80 81 AND minidvodbRun.state = 'merged' \ 81 82 AND minidvodbProcessed.fault = 0 \ 82 83 AND addRun.stage = '" + stage + "' \ 83 AND addRun.state = 'full'" 84 AND addRun.state = 'full' \ 85 AND decl BETWEEN " + str(minDec) + " AND " + str(maxDec) + " \ 86 AND ra BETWEEN " + str(minRA) + " AND " + str(maxRA) 84 87 85 88 try:
Note:
See TracChangeset
for help on using the changeset viewer.
