IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 5, 2011, 5:01:52 PM (15 years ago)
Author:
rhenders
Message:

now reading eq-coords from config, if there are any

File:
1 edited

Legend:

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

    r32453 r32495  
    5252
    5353    # get a master list of IDs in DVO for this batch type
    54     allIDs = gpc1Db.getIDsInThisDVODbForThisStage(DVOLABEL, batchType)
     54    if MINRA and MAXRA and MINDEC and MAXDEC:
     55        allIDs = gpc1Db.getIDsInThisDVODbForThisStage(DVOLABEL, batchType, MINRA, MAXRA, MINDEC, MAXDEC)
     56    else:
     57        allIDs = gpc1Db.getIDsInThisDVODbForThisStage(DVOLABEL, batchType)
    5558    prevList = allIDs
    5659    numEverything = len(allIDs)
     
    7275       numFail = len(fail)
    7376       numPending = len(pending)
     77
     78       #if stage == 'processed':
     79       #    for n in pending: print n
    7480
    7581       str = "\033[1;34m%5s\033[1;m \033[1;32m%5s\033[1;m \033[1;31m%5s\033[1;m  " % (getIntAsString(numPending), getIntAsString(numSuccess), getIntAsString(numFail))
     
    125131gpc1Db = Gpc1Db(logger, configDoc)
    126132
     133MINRA = None
     134MAXRA = None
     135MINDEC = None
     136MAXDEC = None
     137
    127138DVOLABEL = configDoc.find("dvo/gpc1Label").text
     139try:
     140    MINRA = float(configDoc.find("dvo/minRA").text)
     141    MAXRA = float(configDoc.find("dvo/maxRA").text)
     142    MINDEC = float(configDoc.find("dvo/minDec").text)
     143    MAXDEC = float(configDoc.find("dvo/maxDec").text)
     144except:
     145    pass
     146   
    128147EPOCH = configDoc.find("options/epoch").text
    129148
Note: See TracChangeset for help on using the changeset viewer.