IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 1, 2012, 2:31:08 PM (14 years ago)
Author:
rhenders
Message:

better way of setting default RA/Dec limits if none specified in config

File:
1 edited

Legend:

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

    r32579 r33191  
    6060    else:
    6161
    62         if MINRA and MAXRA and MINDEC and MAXDEC:
    63             allIDs = gpc1Db.getIDsInThisDVODbForThisStage(DVOGPC1LABEL, batchType, MINRA, MAXRA, MINDEC, MAXDEC)
    64         else:
    65             allIDs = gpc1Db.getIDsInThisDVODbForThisStage(DVOGPC1LABEL, batchType)
     62        allIDs = gpc1Db.getIDsInThisDVODbForThisStage(
     63                DVOGPC1LABEL,
     64                batchType,
     65                MINRA,
     66                MAXRA,
     67                MINDEC,
     68                MAXDEC)
    6669
    6770        logger.infoPair("All %s items in DVO" % batchType, "%d" % len(allIDs))
     
    176179
    177180# get equatorial coord limits, if any
    178 MINRA = None
    179 MAXRA = None
    180 MINDEC = None
    181 MAXDEC = None
    182181try:
    183182    MINRA = float(configDoc.find("dvo/minRA").text)
     
    186185    MAXDEC = float(configDoc.find("dvo/maxDec").text)
    187186except:
    188     pass
     187    MINRA = 0.0
     188    MAXRA = 360.0
     189    MINDEC = -30.0
     190    MAXDEC = 90.0
    189191
    190192# prompt user: FORCE and PUBLISH is a dangerous combination
Note: See TracChangeset for help on using the changeset viewer.