IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32579 for trunk/ippToPsps


Ignore:
Timestamp:
Oct 27, 2011, 1:40:40 PM (15 years ago)
Author:
rhenders
Message:

Now reading ra/dec coords from config when queueing-up

File:
1 edited

Legend:

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

    r32468 r32579  
    5555        logger.errorPair("Problem loading IDs from config under", "options/ids/id")
    5656
    57     # no config dictated IDs, so get from DVO instead
    5857    if len(allIDs) > 0:
    5958        logger.infoPair("Using config IDs (not DVO)", "%d" % len(allIDs))
     59    # no config dictated IDs, so get from DVO instead
    6060    else:
    61         allIDs = gpc1Db.getIDsInThisDVODbForThisStage(DVOGPC1LABEL, batchType)
     61
     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)
     66
    6267        logger.infoPair("All %s items in DVO" % batchType, "%d" % len(allIDs))
    6368
     
    170175SURVEY = configDoc.find("options/survey").text
    171176
     177# get equatorial coord limits, if any
     178MINRA = None
     179MAXRA = None
     180MINDEC = None
     181MAXDEC = None
     182try:
     183    MINRA = float(configDoc.find("dvo/minRA").text)
     184    MAXRA = float(configDoc.find("dvo/maxRA").text)
     185    MINDEC = float(configDoc.find("dvo/minDec").text)
     186    MAXDEC = float(configDoc.find("dvo/maxDec").text)
     187except:
     188    pass
     189
    172190# prompt user: FORCE and PUBLISH is a dangerous combination
    173191if FORCE and PUBLISH and not QUEUE_IN:
Note: See TracChangeset for help on using the changeset viewer.