- Timestamp:
- Jul 31, 2012, 11:38:18 AM (14 years ago)
- Location:
- branches/eam_branches/ipp-20120627/ippToPsps
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
jython/scratchdb.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120627/ippToPsps
- Property svn:mergeinfo deleted
-
branches/eam_branches/ipp-20120627/ippToPsps/jython/scratchdb.py
r34103 r34241 593 593 return orderedFilters 594 594 595 596 def getRaDecRangesFromdvoSkyTable(self, name): 597 598 sql = "SELECT R_MIN, R_MAX, D_MIN, D_MAX FROM dvoSkyTable WHERE NAME = '" + name + "' limit 1" 599 try: 600 rs = self.executeQuery(sql) 601 rs.first() 602 raMin = rs.getFloat(1) 603 raMax = rs.getFloat(2) 604 decMin = rs.getFloat(3) 605 decMax = rs.getFloat(4) 606 607 except: 608 self.logger.errorPair("no ra/decs found for", name) 609 raMin = -999 610 raMax = -999 611 decMin = -999 612 decMax = -999 613 614 return raMin, raMax, decMin, decMax 615 616 def getFromdvoSkyTable(self, column, name): 617 618 sql = "SELECT "+column + " FROM dvoSkyTable WHERE NAME = '" + name + "' limit 1" 619 try: 620 rs = self.executeQuery(sql) 621 rs.first() 622 res = rs.getDouble(1) 623 624 except: 625 self.logger.errorPair("no ra/decs found for", name) 626 res = -999 627 628 629 return res
Note:
See TracChangeset
for help on using the changeset viewer.
