IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33766 for trunk


Ignore:
Timestamp:
Apr 12, 2012, 8:13:14 AM (14 years ago)
Author:
rhenders
Message:

usng Bill's new skycell table within gpc1

File:
1 edited

Legend:

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

    r33764 r33766  
    7373
    7474            stage = "staticsky"
    75             sql = "SELECT DISTINCT stack_id, ra, decl FROM staticskyInput \
     75            sql = "SELECT DISTINCT stack_id, radeg, decdeg FROM staticskyInput \
    7676                   JOIN addRun ON(staticskyInput.sky_id = addRun.stage_id) \
    7777                   JOIN minidvodbRun USING(minidvodb_name) \
    7878                   JOIN minidvodbProcessed USING(minidvodb_id) \
    79                    JOIN  stackRun USING(stack_id) JOIN skycells.skycell USING(skycell_id) \
     79                   JOIN  stackRun USING(stack_id) JOIN skycell USING(skycell_id) \
    8080                   WHERE minidvodbRun.minidvodb_group = '" + dvoDb + "' \
    8181                   AND minidvodbRun.state = 'merged' \
     
    8383                   AND addRun.stage = '" + stage + "' \
    8484                   AND addRun.state = 'full' \
    85                    AND decl BETWEEN " + str(minDec) + " AND " + str(maxDec) + " \
    86                    AND ra BETWEEN " + str(minRA) + " AND " + str(maxRA)
     85                   AND decdeg BETWEEN " + str(minDec) + " AND " + str(maxDec) + " \
     86                   AND radeg BETWEEN " + str(minRA) + " AND " + str(maxRA)
    8787
    8888        try:
Note: See TracChangeset for help on using the changeset viewer.