IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31406


Ignore:
Timestamp:
Apr 28, 2011, 4:26:13 PM (15 years ago)
Author:
rhenders
Message:

now skipping dodgy OTAs

File:
1 edited

Legend:

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

    r31403 r31406  
    529529                    self.scratchDb.insertNewDvoImage(header['SOURCEID'], header['IMAGEID'])
    530530
     531                # check we have valid sourceID/imageID pair from the header
     532                if 'SOURCEID' not in header or 'IMAGEID' not in header:
     533                    self.logger.error("Can't read SOURCEID/IMAGEID pair from " + ota + " header")
     534                    continue
     535
    531536                # store these for later
    532537                sourceIDs[ota] = header['SOURCEID']
     
    555560
    556561                ota = "XY%d%d" % (x, y)
     562                if ota not in sourceIDs: continue
     563
    557564                self.logger.info("******************* Dealing with OTA " + ota + " *******************")
    558565
     
    633640gpc1Db = Gpc1Db(logger)
    634641camIDs = gpc1Db.getIDsInThisDVODbForThisStage("MD04.V2", "cam")
    635 
    636642logger.info("Found %d exposures" % len(camIDs))
    637643
Note: See TracChangeset for help on using the changeset viewer.