IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 1, 2013, 1:27:47 PM (13 years ago)
Author:
eugene
Message:

fix the plotter stuff (HAF); use boxes scaled by cos(DEC); use ranges for ra float comparisons; use installed perl programs (in PATH); do not attempt to re-publish automatically

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/jython/ipptopspsdb.py

    r35204 r35217  
    12141214                self.logger.errorPair("No outstanding boxes to steal", "no stripe obtained")
    12151215
     1216        # tests against ra_center need to use a finite box
     1217        minRA = raCenter - 0.01
     1218        maxRA = raCenter + 0.01
     1219
    12161220        self.logger.infoPair("Using RA stripe", "%f" % raCenter)
    12171221        sql = "SELECT DISTINCT id \
    12181222               FROM box \
    12191223               JOIN pending ON (id = box_id) \
    1220                WHERE ra_center = " + str(raCenter) + " \
     1224               WHERE ra_center BETWEEN " + str(minRA) + " AND " + str(maxRA) + " \
    12211225               AND batch_type = '" + batchType + "' \
    12221226               AND skychunk = '" + self.skychunk.name + "' \
     
    12801284                self.logger.errorPair("No outstanding boxes to steal", "no stripe obtained")
    12811285
     1286        # tests against ra_center need to use a finite box
     1287        minRA = raCenter - 0.01
     1288        maxRA = raCenter + 0.01
     1289
    12821290        self.logger.infoPair("Using RA stripe", "%f" % raCenter)
    12831291        sql = "SELECT DISTINCT id \
    12841292               FROM box \
    12851293               JOIN pending ON (id = box_id) \
    1286                WHERE ra_center = " + str(raCenter) + " \
     1294               WHERE ra_center BETWEEN " + str(minRA) + " AND " + str(maxRA) + " \
    12871295               AND skychunk = '" + self.skychunk.name + "' \
    12881296               ORDER BY dec_center DESC"
Note: See TracChangeset for help on using the changeset viewer.