Changeset 36201 for trunk/ippToPsps/jython/gpc1db.py
- Timestamp:
- Oct 9, 2013, 4:53:45 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/gpc1db.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/gpc1db.py
r35994 r36201 49 49 NB this uses Bill's potentially temporary 'skycells' database when finding RA/Dec for stacks. 50 50 ''' 51 def getItemsInThisDVODbForThisStage(self, dvoDb, batchType, minRA=-999, maxRA=999, minDec=-999, maxDec=999 ):51 def getItemsInThisDVODbForThisStage(self, dvoDb, batchType, minRA=-999, maxRA=999, minDec=-999, maxDec=999, tstart="0000-00-00 00:00:00", tend = "0000-00-00 00:00:00"): 52 52 53 53 self.logger.debugPair("GPC1 RA range", "%.2f -> %.2f" % (minRA, maxRA)) 54 54 self.logger.debugPair("GPC1 Dec range", "%.2f -> %.2f" % (minDec, maxDec)) 55 55 56 56 rows = [] 57 57 … … 80 80 AND addRun.state = 'full' \ 81 81 AND decl BETWEEN RADIANS(" + str(minDec) + ") AND RADIANS(" + str(maxDec) + ") \ 82 AND ra BETWEEN RADIANS(" + str(minRA) + ") AND RADIANS(" + str(maxRA) + ")" 82 AND ra BETWEEN RADIANS(" + str(minRA) + ") AND RADIANS(" + str(maxRA) + ") \ 83 AND dateobs >= '" + tstart + "'\ 84 AND dateobs <= '" + tend + "'" 83 85 84 86 elif batchType == "ST":
Note:
See TracChangeset
for help on using the changeset viewer.
